Documentation ¶
Index ¶
- Constants
- func Contains(slice []string, image string) bool
- func FilteredImages(images, registries []string) []string
- func GetImagesFromKind(kinds []*k8s.Image) []string
- func GetLoglevel(level string) log.Level
- func GetUniqEntries(slice []string) []string
- type Images
- func (image *Images) FilterImagesByRegistries(images []*k8s.Image) []*k8s.Image
- func (image *Images) GetChart() string
- func (image *Images) GetImage(currentKind, kubeKindTemplate string) ([]*k8s.Image, error)
- func (image *Images) GetImages() error
- func (image *Images) GetRelease() string
- func (image *Images) GetResourcesToSkip() []Skip
- func (image *Images) GetTemplates(template []byte) []string
- func (image *Images) SetChart(chart string)
- func (image *Images) SetLogger(logLevel string)
- func (image *Images) SetOutputFormats()
- func (image *Images) SetRelease(release string)
- func (image *Images) SetRenderer()
- type Skip
- type ValueFiles
Constants ¶
const ( // ImageRegex is the default regex, that is used to split one big helm template to multiple templates. // Splitting templates eases the task of identifying Kubernetes objects. ImageRegex = `---\n# Source:\s.*.` )
Variables ¶
This section is empty.
Functions ¶
func FilteredImages ¶ added in v0.1.0
func GetImagesFromKind ¶ added in v0.1.0
GetImagesFromKind returns list of images from array of k8s.Image.
func GetLoglevel ¶ added in v0.0.7
GetLoglevel sets the loglevel to the kind of log asked for.
func GetUniqEntries ¶ added in v0.1.0
Types ¶
type Images ¶
type Images struct { Registries []string `json:"registries,omitempty" yaml:"registries,omitempty"` Kind []string `json:"kind,omitempty" yaml:"kind,omitempty"` Values []string `json:"values,omitempty" yaml:"values,omitempty"` StringValues []string `json:"string_values,omitempty" yaml:"string_values,omitempty"` FileValues []string `json:"file_values,omitempty" yaml:"file_values,omitempty"` ShowOnly []string `json:"show_only,omitempty" yaml:"show_only,omitempty"` Skip []string `json:"skip,omitempty" yaml:"skip,omitempty"` Version string `json:"version,omitempty" yaml:"version,omitempty"` ImageRegex string `json:"image_regex,omitempty" yaml:"image_regex,omitempty"` ValueFiles ValueFiles `json:"value_files,omitempty" yaml:"value_files,omitempty"` LogLevel string `json:"log_level,omitempty" yaml:"log_level,omitempty"` OutputFormat string `json:"output_format,omitempty" yaml:"output_format,omitempty"` SkipTests bool `json:"skip_tests,omitempty" yaml:"skip_tests,omitempty"` SkipCRDS bool `json:"skip_crds,omitempty" yaml:"skip_crds,omitempty"` FromRelease bool `json:"from_release,omitempty" yaml:"from_release,omitempty"` UniqueImages bool `json:"unique_images,omitempty" yaml:"unique_images,omitempty"` NoColor bool `json:"no_color,omitempty" yaml:"no_color,omitempty"` Validate bool `json:"validate,omitempty" yaml:"validate,omitempty"` // contains filtered or unexported fields }
Images represents GetImages.
func (*Images) FilterImagesByRegistries ¶ added in v0.1.0
FilterImagesByRegistries filters images those are part of registries list passed.
func (*Images) GetImage ¶ added in v0.1.4
GetImage returns []*k8s.Image from the kubernetes manifests.
func (*Images) GetImages ¶
GetImages fetches all available images from the specified chart. Also filters identified images, to get just unique ones.
func (*Images) GetRelease ¶ added in v0.1.0
GetRelease returns the release set under Images.
func (*Images) GetResourcesToSkip ¶ added in v0.1.4
GetResourcesToSkip returns the skip from translating the flags.
func (*Images) GetTemplates ¶ added in v0.1.0
GetTemplates returns the split manifests fetched from one big template string fetched from `helm template`.
func (*Images) SetOutputFormats ¶ added in v0.1.2
func (image *Images) SetOutputFormats()
func (*Images) SetRelease ¶ added in v0.0.7
SetRelease sets release passed.
func (*Images) SetRenderer ¶ added in v0.1.2
func (image *Images) SetRenderer()
SetRenderer sets renderer to Images.
type ValueFiles ¶
type ValueFiles []string
func (*ValueFiles) Set ¶
func (v *ValueFiles) Set(value string) error
func (*ValueFiles) String ¶
func (v *ValueFiles) String() string
func (*ValueFiles) Type ¶
func (v *ValueFiles) Type() string
func (*ValueFiles) Valid ¶
func (v *ValueFiles) Valid() error