rules

package
v0.1.68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImagesDir = "images"
)
View Source
const (
	PatchesRuleName = "patches"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DistrolessRule added in v0.1.8

type DistrolessRule struct {
	pkg.RuleMeta
	pkg.PrefixRule
}

func NewDistrolessRule added in v0.1.8

func NewDistrolessRule(cfg *pkg.ImageLinterConfig) *DistrolessRule

func (*DistrolessRule) CheckImageNamesInDockerFiles added in v0.1.8

func (r *DistrolessRule) CheckImageNamesInDockerFiles(modulePath string, errorList *errors.LintRuleErrorsList)

type ImageRule added in v0.1.8

type ImageRule struct {
	pkg.RuleMeta
	pkg.PrefixRule
}

func NewImageRule added in v0.1.8

func NewImageRule(cfg *pkg.ImageLinterConfig) *ImageRule

func (*ImageRule) CheckImageNamesInDockerFiles added in v0.1.8

func (r *ImageRule) CheckImageNamesInDockerFiles(modulePath string, errorList *errors.LintRuleErrorsList)

type PatchesRule added in v0.1.8

type PatchesRule struct {
	pkg.RuleMeta
	pkg.BoolRule
}

func NewPatchesRule added in v0.1.8

func NewPatchesRule(disable bool) *PatchesRule

func (*PatchesRule) CheckPatches added in v0.1.8

func (r *PatchesRule) CheckPatches(moduleDir string, errorList *errors.LintRuleErrorsList)

type WerfRule added in v0.1.8

type WerfRule struct {
	pkg.RuleMeta
	pkg.BoolRule
}

func NewWerfRule added in v0.1.8

func NewWerfRule(disable bool) *WerfRule

func (*WerfRule) LintWerfFile added in v0.1.8

func (r *WerfRule) LintWerfFile(moduleName, data string, errorList *errors.LintRuleErrorsList)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL