helm

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Metadata *ChartMeta `json:"metadata"`
}

Chart represents a single helm chart

type ChartMeta

type ChartMeta struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

ChartMeta is the metadata of a Helm chart

type Helm

type Helm struct {
	Releases  []*Release
	Version   string
	Kube      *kube
	Namespace string
	Store     string
	Instance  *api.Instance
}

Helm represents all current releases that we can find in the cluster

func NewHelm

func NewHelm(version, store, namespace string, instance *api.Instance) *Helm

NewHelm returns a basic helm struct with the version of helm requested

func NewHelmWithKubeClient

func NewHelmWithKubeClient(version, store, namespace string, instance *api.Instance, kubeClient kubernetes.Interface) *Helm

NewHelmWithKubeClient returns a helm struct with version of helm requested and uses the passed in kube client as the cluster to operate on

func (*Helm) FindVersions

func (h *Helm) FindVersions() error

FindVersions is the primary method in the package. It ties together all the functionality

type Release

type Release struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Chart     *Chart `json:"chart"`
	Manifest  string `json:"manifest"`
}

Release represents a single helm release

Jump to

Keyboard shortcuts

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