helmclienttest

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) helmclient.Interface

Types

type Client

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

func (*Client) DeleteRelease

func (c *Client) DeleteRelease(ctx context.Context, namespace, releaseName string) error

func (*Client) GetReleaseContent

func (c *Client) GetReleaseContent(ctx context.Context, namespace, releaseName string) (*helmclient.ReleaseContent, error)

func (*Client) GetReleaseHistory

func (c *Client) GetReleaseHistory(ctx context.Context, namespace, releaseName string) (*helmclient.ReleaseHistory, error)

func (*Client) InstallReleaseFromTarball

func (c *Client) InstallReleaseFromTarball(ctx context.Context, chartPath, namespace string, values map[string]interface{}, options helmclient.InstallOptions) error

func (*Client) ListReleaseContents

func (c *Client) ListReleaseContents(ctx context.Context, namespace string) ([]*helmclient.ReleaseContent, error)

func (*Client) LoadChart

func (c *Client) LoadChart(ctx context.Context, chartPath string) (helmclient.Chart, error)

func (*Client) PullChartTarball

func (c *Client) PullChartTarball(ctx context.Context, tarballURL string) (string, error)

func (*Client) Rollback added in v1.0.6

func (c *Client) Rollback(ctx context.Context, namespace, releaseName string, revision int, options helmclient.RollbackOptions) error

func (*Client) RunReleaseTest

func (c *Client) RunReleaseTest(ctx context.Context, namespace, releaseName string) error

func (*Client) UpdateReleaseFromTarball

func (c *Client) UpdateReleaseFromTarball(ctx context.Context, chartPath, namespace, releaseName string, values map[string]interface{}, options helmclient.UpdateOptions) error

type Config

type Config struct {
	DefaultError          error
	DefaultReleaseContent *helmclient.ReleaseContent
	DefaultReleaseHistory *helmclient.ReleaseHistory
	LoadChartError        error
	LoadChartResponse     helmclient.Chart
	PullChartTarballError error
	PullChartTarballPath  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳