pkg

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

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 Contains

func Contains(slice []string, image string) bool

func FilteredImages

func FilteredImages(images, registries []string) []string

func GetImagesFromKind

func GetImagesFromKind(kinds []*k8s.Image) ([]string, error)

func GetLoglevel

func GetLoglevel(level string) log.Level

GetLoglevel sets the loglevel to the kind of log asked for.

func GetUniqEntries

func GetUniqEntries(slice []string) []string

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
	JSONValues             []string
	LiteralValues          []string
	ExtraImagesFiles       []string
	ImageRegex             string
	ValueFiles             ValueFiles
	LogLevel               string
	FromRelease            bool
	UniqueImages           bool
	SortImages             bool
	IncludeTestImages      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 (image *Images) FilterImagesByRegistries(images []*k8s.Image) []*k8s.Image

func (*Images) GetChart

func (image *Images) GetChart() string

func (*Images) GetImages

func (image *Images) GetImages() error

GetImages fetches all available images from the specified chart. Also filters identified images, to get just unique ones.

func (*Images) GetImagesFromRelease

func (image *Images) GetImagesFromRelease() ([]byte, error)

GetImagesFromRelease should get the manifest from the selected release.

func (*Images) GetRelease

func (image *Images) GetRelease() string

func (*Images) GetTemplates

func (image *Images) GetTemplates(template []byte) []string

func (*Images) GetWriter

func (image *Images) GetWriter() *bufio.Writer

func (*Images) SetChart

func (image *Images) SetChart(chart string)

func (*Images) SetLogger

func (image *Images) SetLogger(logLevel string)

func (*Images) SetRelease

func (image *Images) SetRelease(rel string)

func (*Images) SetWriter

func (image *Images) SetWriter(writer io.Writer)

func (*Images) ToJSON

func (image *Images) ToJSON(imagesFiltered []*k8s.Image) error

func (*Images) ToYAML

func (image *Images) ToYAML(imagesFiltered []*k8s.Image) error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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