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) GetImages() error
- func (image *Images) GetImagesFromRelease() ([]byte, error)
- func (image *Images) GetRelease() string
- func (image *Images) GetTemplates(template []byte) []string
- func (image *Images) GetWriter() *bufio.Writer
- func (image *Images) SetChart(chart string)
- func (image *Images) SetLogger(logLevel string)
- func (image *Images) SetRelease(release string)
- func (image *Images) SetWriter(writer io.Writer)
- func (image *Images) ToJSON(imagesFiltered []*k8s.Image) error
- func (image *Images) ToYAML(imagesFiltered []*k8s.Image) error
- type ValueFiles
Constants ¶
View Source
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 ¶
func GetImagesFromKind ¶
func GetLoglevel ¶
GetLoglevel sets the loglevel to the kind of log asked for.
func GetUniqEntries ¶
Types ¶
type Images ¶
type Images struct { // Registries are list of registry names which we have filter out from Registries []string Kind []string Values []string StringValues []string FileValues []string ExtraImagesFiles []string ImageRegex string ValueFiles ValueFiles LogLevel string FromRelease bool UniqueImages bool KubeVersion string ChartVersionConstraint string PostRenderer postrender.PostRenderer JSON bool YAML bool Table bool // contains filtered or unexported fields }
Images represents GetImages.
func (*Images) FilterImagesByRegistries ¶
func (*Images) GetImages ¶
GetImages fetches all available images from the specified chart. Also filters identified images, to get just unique ones.
func (*Images) GetImagesFromRelease ¶
GetImagesFromRelease should get the manifest from the selected release.
func (*Images) GetRelease ¶
func (*Images) GetTemplates ¶
func (*Images) SetRelease ¶
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
Click to show internal directories.
Click to hide internal directories.