Documentation ¶
Overview ¶
Package linter implements a Dockerfile linter
Index ¶
Constants ¶
View Source
const ( DockerfileTargetType = "dockerfile" ImageTargetType = "image" )
View Source
const ( StatusUnknown = "unknown" StatusRunning = "running" StatusComplete = "complete" StatusTimedOut = "timeout" StatusFailed = "failed" )
Variables ¶
View Source
var (
ErrBadParams = errors.New("bad params")
)
Functions ¶
func ListChecks ¶
Types ¶
type CheckContext ¶
type CheckContext struct { DockerfilePath string Dockerfile *spec.Dockerfile BuildContextDir string Dockerignore *dockerignore.Matcher }
type CheckSelector ¶
type CheckState ¶
type Options ¶
type Options struct { DockerfilePath string Dockerfile *spec.Dockerfile SkipBuildContext bool BuildContextDir string SkipDockerignore bool //to disable .dockerignore parsing Dockerignore *dockerignore.Matcher Selector CheckSelector Config map[string]*check.Options }
Click to show internal directories.
Click to hide internal directories.