helm

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	CheckIndex(*repo.ChartRepository) bool
	GetChart(name, version, endpoint string) ([]byte, error)
	GetCharts(*repo.ChartRepository) (map[string]repo.ChartVersions, error)
	Install(args Args) (*release.Release, error)
	Rollback(version int, args Args) error
	Test(args Args) (*release.Release, error)
	Uninstall(args Args) (*release.UninstallReleaseResponse, error)
	Upgrade(args Args) (*release.Release, error)
}

Agent is the interface we use to talk to helm packages

type Args added in v0.4.0

type Args struct {
	Name      string
	Namespace string
	Endpoint  string
	Token     string
	Chart     *chart.Chart
	Values    map[string]interface{}
	Wait      bool
	Logger    func(string, ...interface{})
}

Args are arguments common to the install, upgrade, etc. commands

type DefaultAgent

type DefaultAgent struct{}

DefaultAgent is the default implementation of the Agent interface

func (DefaultAgent) CheckIndex

func (a DefaultAgent) CheckIndex(r *repo.ChartRepository) bool

CheckIndex checks the index.yaml file at the repo's endpoint

func (DefaultAgent) GetChart added in v0.4.0

func (a DefaultAgent) GetChart(name, version, endpoint string) ([]byte, error)

GetChart downloads a single chart from a particular chart repo

func (DefaultAgent) GetCharts

GetCharts gets all charts from a particular chart repo

func (DefaultAgent) Install added in v0.4.0

func (a DefaultAgent) Install(args Args) (*release.Release, error)

Install is the equivalent of `helm install`

func (DefaultAgent) Rollback added in v0.4.0

func (a DefaultAgent) Rollback(version int, args Args) error

Rollback is the equivalent of `helm rollback`

func (DefaultAgent) Test added in v0.4.0

func (a DefaultAgent) Test(args Args) (*release.Release, error)

Test is the equivalent of `helm test`

func (DefaultAgent) Uninstall added in v0.4.0

func (a DefaultAgent) Uninstall(args Args) (*release.UninstallReleaseResponse, error)

Uninstall is the equivalent of `helm uninstall`

func (DefaultAgent) Upgrade added in v0.4.0

func (a DefaultAgent) Upgrade(args Args) (*release.Release, error)

Upgrade is the equivalent of `helm upgrade`

Jump to

Keyboard shortcuts

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