proxy

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TillerPort = 44134

	TillerConnectionTimeout int64 = 300
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	ListReleases(opts ...helm.ReleaseListOption) (*rls.ListReleasesResponse, error)
	InstallRelease(chStr, namespace string, opts ...helm.InstallOption) (*rls.InstallReleaseResponse, error)
	InstallReleaseFromChart(chart *chart.Chart, namespace string, opts ...helm.InstallOption) (*rls.InstallReleaseResponse, error)
	DeleteRelease(rlsName string, opts ...helm.DeleteOption) (*rls.UninstallReleaseResponse, error)
	ReleaseStatus(rlsName string, opts ...helm.StatusOption) (*rls.GetReleaseStatusResponse, error)
	UpdateRelease(rlsName, chStr string, opts ...helm.UpdateOption) (*rls.UpdateReleaseResponse, error)
	UpdateReleaseFromChart(rlsName string, chart *chart.Chart, opts ...helm.UpdateOption) (*rls.UpdateReleaseResponse, error)
	RollbackRelease(rlsName string, opts ...helm.RollbackOption) (*rls.RollbackReleaseResponse, error)
	ReleaseContent(rlsName string, opts ...helm.ContentOption) (*rls.GetReleaseContentResponse, error)
	ReleaseHistory(rlsName string, opts ...helm.HistoryOption) (*rls.GetHistoryResponse, error)
	GetVersion(opts ...helm.VersionOption) (*rls.GetVersionResponse, error)
	PingTiller() error
}

Interface is an interface for tiller proxy. It is almost the same as helm interface but without RunReleaseTest function.

type Proxy

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

Proxy is a wrapper for tiller client for accessing it through kubernetes api.

func New

func New(client corev1.CoreV1Interface, restConf *rest.Config, tillerNamespace string) (*Proxy, error)

New creates a new helm client.

func (*Proxy) DeleteRelease

func (p *Proxy) DeleteRelease(rlsName string, opts ...helm.DeleteOption) (*rls.UninstallReleaseResponse, error)

func (*Proxy) GetVersion

func (p *Proxy) GetVersion(opts ...helm.VersionOption) (*rls.GetVersionResponse, error)

func (*Proxy) InstallRelease

func (p *Proxy) InstallRelease(chStr, namespace string, opts ...helm.InstallOption) (*rls.InstallReleaseResponse, error)

func (*Proxy) InstallReleaseFromChart

func (p *Proxy) InstallReleaseFromChart(chart *chart.Chart, namespace string, opts ...helm.InstallOption) (*rls.InstallReleaseResponse, error)

func (*Proxy) ListReleases

func (p *Proxy) ListReleases(opts ...helm.ReleaseListOption) (*rls.ListReleasesResponse, error)

func (*Proxy) PingTiller

func (p *Proxy) PingTiller() error

func (*Proxy) ReleaseContent

func (p *Proxy) ReleaseContent(rlsName string, opts ...helm.ContentOption) (*rls.GetReleaseContentResponse, error)

func (*Proxy) ReleaseHistory

func (p *Proxy) ReleaseHistory(rlsName string, opts ...helm.HistoryOption) (*rls.GetHistoryResponse, error)

func (*Proxy) ReleaseStatus

func (p *Proxy) ReleaseStatus(rlsName string, opts ...helm.StatusOption) (*rls.GetReleaseStatusResponse, error)

func (*Proxy) RollbackRelease

func (p *Proxy) RollbackRelease(rlsName string, opts ...helm.RollbackOption) (*rls.RollbackReleaseResponse, error)

func (*Proxy) UpdateRelease

func (p *Proxy) UpdateRelease(rlsName, chStr string, opts ...helm.UpdateOption) (*rls.UpdateReleaseResponse, error)

func (*Proxy) UpdateReleaseFromChart

func (p *Proxy) UpdateReleaseFromChart(rlsName string, chart *chart.Chart, opts ...helm.UpdateOption) (*rls.UpdateReleaseResponse, error)

Jump to

Keyboard shortcuts

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