helm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartRef

func ChartRef(hostname string, namespace string, name string, tagname string) string

Types

type Fake

type Fake struct {
	// contains filtered or unexported fields
}

Fake implementation

func NewEmptyFake

func NewEmptyFake() *Fake

func NewFake

func NewFake(release *release.Release, resources []*unstructured.Unstructured) *Fake

func (*Fake) ChartLoad

func (r *Fake) ChartLoad(ref string) (*chart.Chart, error)

ChartLoad helm chart from cache

func (*Fake) ChartPull

func (r *Fake) ChartPull(ref string) error

ChartPull helm chart from repo

func (*Fake) ChartPush

func (r *Fake) ChartPush(chart *chart.Chart, ref string) error

ChartPush helm chart to repo

func (*Fake) ChartRemove

func (r *Fake) ChartRemove(ref string) error

ChartRemove helm chart from cache

func (*Fake) ChartSave

func (r *Fake) ChartSave(chart *chart.Chart, ref string) error

ChartSave helm chart from cache

func (*Fake) GetResources

func (r *Fake) GetResources(kubeNamespace string, releaseName string) ([]*unstructured.Unstructured, error)

GetResources returns allocated resources for the specified release (their current state)

func (*Fake) Install

func (r *Fake) Install(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Install helm release

func (*Fake) RegistryLogin

func (r *Fake) RegistryLogin(hostname string, username string, password string, insecure bool) error

RegistryLogin to docker registry v2

func (*Fake) RegistryLogout

func (r *Fake) RegistryLogout(hostname string) error

RegistryLogout to docker registry v2

func (*Fake) Status

func (r *Fake) Status(kubeNamespace string, releaseName string) (*release.Release, error)

Status of helm release

func (*Fake) Uninstall

func (r *Fake) Uninstall(kubeNamespace string, releaseName string) (*release.UninstallReleaseResponse, error)

Uninstall helm release

func (*Fake) Upgrade

func (r *Fake) Upgrade(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Upgrade helm release

type Impl

type Impl struct {
}

Impl implementation

func (*Impl) ChartLoad

func (r *Impl) ChartLoad(ref string) (*chart.Chart, error)

ChartLoad helm chart from cache

func (*Impl) ChartPull

func (r *Impl) ChartPull(ref string) error

ChartPull helm chart from repo

func (*Impl) ChartPush

func (r *Impl) ChartPush(chart *chart.Chart, ref string) error

ChartPush helm chart to repo

func (*Impl) ChartRemove

func (r *Impl) ChartRemove(ref string) error

ChartRemove helm chart from cache

func (*Impl) ChartSave

func (r *Impl) ChartSave(chart *chart.Chart, ref string) error

ChartSave helm chart from cache

func (*Impl) GetResources

func (r *Impl) GetResources(kubeNamespace string, releaseName string) ([]*unstructured.Unstructured, error)

GetResources returns allocated resources for the specified release (their current state)

func (*Impl) Install

func (r *Impl) Install(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Install helm release

func (*Impl) RegistryLogin

func (r *Impl) RegistryLogin(hostname string, username string, password string, insecure bool) error

RegistryLogin to docker registry v2

func (*Impl) RegistryLogout

func (r *Impl) RegistryLogout(hostname string) error

RegistryLogout to docker registry v2

func (*Impl) Status

func (r *Impl) Status(kubeNamespace string, releaseName string) (*release.Release, error)

Status of helm release

func (*Impl) Uninstall

func (r *Impl) Uninstall(kubeNamespace string, releaseName string) (*release.UninstallReleaseResponse, error)

Uninstall helm release

func (*Impl) Upgrade

func (r *Impl) Upgrade(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)

Upgrade helm release

type Interface

type Interface interface {
	Uninstall(kubeNamespace string, releaseName string) (*release.UninstallReleaseResponse, error)
	Install(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)
	Upgrade(chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error)
	Status(kubeNamespace string, releaseName string) (*release.Release, error)
	RegistryLogin(hostname string, username string, password string, insecure bool) error
	RegistryLogout(hostname string) error
	ChartRemove(ref string) error
	ChartSave(chart *chart.Chart, ref string) error
	ChartLoad(ref string) (*chart.Chart, error)
	ChartPush(chart *chart.Chart, ref string) error
	ChartPull(ref string) error
	GetResources(kubeNamespace string, releaseName string) ([]*unstructured.Unstructured, error)
}

Interface of a helm chart

Jump to

Keyboard shortcuts

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