rules

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 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
}

func NewDistrolessRule added in v0.1.8

func NewDistrolessRule(cfg *config.ImageSettings) *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 *config.ImageSettings) *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
}

func NewWerfRule added in v0.1.8

func NewWerfRule() *WerfRule

func (*WerfRule) LintWerfFile added in v0.1.8

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

Jump to

Keyboard shortcuts

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