helm

package
v0.0.0-...-9b5a78d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url, fpath string) error

func FindChartRepo

func FindChartRepo(chartName, chartVer string) string

func FindReleaseSecret

func FindReleaseSecret(namespace, kind, name string, rawObj []byte) ([]byte, error)

func GenerateMessageFromRawObj

func GenerateMessageFromRawObj(rawObj []byte, filter, mutableAttrs string) string

func GetHelmPackageFilePath

func GetHelmPackageFilePath(chartName, chartVersion string) string

func GetHelmPackageURL

func GetHelmPackageURL(chartName, chartVersion string) string

func GetHelmProvFilePath

func GetHelmProvFilePath(chartName, chartVersion string) string

func GetHelmProvURL

func GetHelmProvURL(chartName, chartVersion string) string

func GetHelmReleaseMetadata

func GetHelmReleaseMetadata(rawBytes []byte) ([]string, error)

func GetHelmValuesFilePath

func GetHelmValuesFilePath(chartName, chartVersion string) string

func GetHelmValuesSignatureFilePath

func GetHelmValuesSignatureFilePath(chartName, chartVersion string) string

func GetPackageDir

func GetPackageDir() string

func IsReleaseSecret

func IsReleaseSecret(kind, name string) bool

func MatchReleaseSecret

func MatchReleaseSecret(rls, hrm string) bool

func ParseManifest

func ParseManifest(manifest []byte) []map[string]interface{}

func VerifyChartAndProv

func VerifyChartAndProv(chart, prov []byte, keyPathList []string) (bool, *common.SignerInfo, string, error)

func VerifyPackage

func VerifyPackage(filePath, provPath, keyringPath string) (*common.SignerInfo, error)

Types

type HelmInfo

type HelmInfo struct {
	ChartName    string
	ChartVersion string
	Package      PackageInfo
	Values       ValuesInfo
}

func GetPackageInfo

func GetPackageInfo(rawBytes []byte, chartRepo, chartDir string) (*HelmInfo, error)

type PackageInfo

type PackageInfo struct {
	FileUrl  string
	FilePath string
	ProvUrl  string
	ProvPath string
}

type ReleaseObject

type ReleaseObject struct {
	Data *release.Release `json:"data"`
}

func DecodeReleaseSecretFromRawBytes

func DecodeReleaseSecretFromRawBytes(rawBytes []byte) *ReleaseObject

func NewReleaseObject

func NewReleaseObject(data *release.Release) *ReleaseObject

type ValuesInfo

type ValuesInfo struct {
	Message     string
	Signature   string
	EmptyConfig bool
}

Jump to

Keyboard shortcuts

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