Documentation ¶
Index ¶
- type ImageLint
- type ImageLintConfig
- func (imc *ImageLintConfig) CanIgnoreImage(line string) bool
- func (imc *ImageLintConfig) Init(dir string) error
- func (imc *ImageLintConfig) OnFail(message, image string)
- func (imc *ImageLintConfig) OnNotIdentifed(message, image string)
- func (imc *ImageLintConfig) OnPass(message, image string)
- func (imc *ImageLintConfig) OnPullFail(message, image string)
- func (imc *ImageLintConfig) ReadFile(path string) error
- func (imc *ImageLintConfig) ShowFailSummary()
- func (imc *ImageLintConfig) ShowNotIdentifiedSummary()
- func (imc *ImageLintConfig) ShowPassSummary()
- func (imc *ImageLintConfig) ShowPullFailedSummary()
- func (imc *ImageLintConfig) ShowSummary()
- type Position
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageLintConfig ¶
type ImageLintConfig struct { IncludeExts []string `yaml:"includeExts"` MatchPattern []string `yaml:"matchPattern"` IncludeLines []string `yaml:"includeLines"` IgnoreImages []string `yaml:"ignoreImages"` SuccessValidators []string `yaml:"succesValidators"` FailureValidators []string `yaml:"failureValidators"` ImageMap map[string][]ImageLint // consists map as the key and file details as values }
func New ¶
func New(configFile string) (*ImageLintConfig, error)
func NewFromContent ¶
func NewFromContent(content []byte) (*ImageLintConfig, error)
func (*ImageLintConfig) CanIgnoreImage ¶ added in v0.2.0
func (imc *ImageLintConfig) CanIgnoreImage(line string) bool
func (*ImageLintConfig) Init ¶
func (imc *ImageLintConfig) Init(dir string) error
func (*ImageLintConfig) OnFail ¶
func (imc *ImageLintConfig) OnFail(message, image string)
func (*ImageLintConfig) OnNotIdentifed ¶
func (imc *ImageLintConfig) OnNotIdentifed(message, image string)
func (*ImageLintConfig) OnPass ¶
func (imc *ImageLintConfig) OnPass(message, image string)
func (*ImageLintConfig) OnPullFail ¶
func (imc *ImageLintConfig) OnPullFail(message, image string)
func (*ImageLintConfig) ReadFile ¶
func (imc *ImageLintConfig) ReadFile(path string) error
func (*ImageLintConfig) ShowFailSummary ¶
func (imc *ImageLintConfig) ShowFailSummary()
func (*ImageLintConfig) ShowNotIdentifiedSummary ¶
func (imc *ImageLintConfig) ShowNotIdentifiedSummary()
func (*ImageLintConfig) ShowPassSummary ¶
func (imc *ImageLintConfig) ShowPassSummary()
func (*ImageLintConfig) ShowPullFailedSummary ¶
func (imc *ImageLintConfig) ShowPullFailedSummary()
func (*ImageLintConfig) ShowSummary ¶
func (imc *ImageLintConfig) ShowSummary()
Click to show internal directories.
Click to hide internal directories.