rules

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 15 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
	// contains filtered or unexported fields
}

func NewDistrolessRule added in v0.1.8

func NewDistrolessRule(cfg *pkg.ImageLinterConfig,
	m pkg.Module, errorList *errors.LintRuleErrorsList) *DistrolessRule

func (*DistrolessRule) Check added in v0.2.0

func (r *DistrolessRule) Check(_ context.Context)

type ImageRule added in v0.1.8

type ImageRule struct {
	pkg.RuleMeta
	pkg.PrefixRule
	// contains filtered or unexported fields
}

func NewImageRule added in v0.1.8

func NewImageRule(cfg *pkg.ImageLinterConfig,
	m pkg.Module, errorList *errors.LintRuleErrorsList) *ImageRule

NOTE: the exclusion list is SkipDistrolessFilePathPrefix, not SkipImageFilePathPrefix. Kept as-is; see pkg/linters/README.md.

func (*ImageRule) Check added in v0.2.0

func (r *ImageRule) Check(_ context.Context)

type PatchesRule added in v0.1.8

type PatchesRule struct {
	pkg.RuleMeta
	pkg.BoolRule
	// contains filtered or unexported fields
}

func NewPatchesRule added in v0.1.8

func NewPatchesRule(disable bool,
	m pkg.Module, errorList *errors.LintRuleErrorsList) *PatchesRule

func (*PatchesRule) Check added in v0.2.0

func (r *PatchesRule) Check(_ context.Context)

type WerfRule added in v0.1.8

type WerfRule struct {
	pkg.RuleMeta
	pkg.BoolRule
	// contains filtered or unexported fields
}

func NewWerfRule added in v0.1.8

func NewWerfRule(disable bool,
	m pkg.Module, errorList *errors.LintRuleErrorsList) *WerfRule

func (*WerfRule) Check added in v0.2.0

func (r *WerfRule) Check(_ context.Context)

Jump to

Keyboard shortcuts

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