util

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 10 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(left string, right string) (int, error)

func CreateInstallParams

func CreateInstallParams(chart string, buildId string) (release string, namespace string)

func FileExists

func FileExists(file string) bool

func Flatten

func Flatten(items []interface{}) ([]string, error)

func PrintDelimiterLine

func PrintDelimiterLine(delimiterChar string)

func RandomString

func RandomString(length int) string

RandomString string creates a random string of numbers and lower-case ascii characters with the specified length.

func StringSliceContains

func StringSliceContains(slice []string, s string) bool

Types

type ChartUtils

type ChartUtils struct{}

func (ChartUtils) IsChartDir

func (u ChartUtils) IsChartDir(dir string) bool

func (ChartUtils) ReadChartYaml

func (u ChartUtils) ReadChartYaml(dir string) (*ChartYaml, error)

type ChartYaml

type ChartYaml struct {
	Name        string `yaml:"name"`
	Version     string `yaml:"version"`
	Deprecated  bool   `yaml:"deprecated"`
	Maintainers []Maintainer
}

func ReadChartYaml

func ReadChartYaml(yamlBytes []byte) (*ChartYaml, error)

type DirectoryLister

type DirectoryLister struct{}

func (DirectoryLister) ListChildDirs

func (l DirectoryLister) ListChildDirs(parentDir string, test func(dir string) bool) ([]string, error)

ListChildDirs lists subdirectories of parentDir matching the test function.

type Maintainer

type Maintainer struct {
	Name  string `yaml:"name"`
	Email string `yaml:"email"`
}

Jump to

Keyboard shortcuts

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