helm

package
v0.0.0-...-c386581 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 9 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 {
	Name        string
	RepoURL     string
	Version     string
	ReleaseName string
	Namespace   string
}

type Client

type Client interface {
	Namespace() string
	Install(chart Chart, values map[string]interface{}) error
	Upgrade(chart Chart, values map[string]interface{}) error
	Exists(chart Chart) (bool, error)
	Uninstall(chart Chart) error
	DownloadChart(chartURL string) (string, error)
	LoadChart(chart Chart) (*chart.Chart, error)
}

func NewClient

func NewClient(config ClientConfig) (Client, error)

type ClientConfig

type ClientConfig struct {
	Namespace       string
	Driver          string
	ChartsDirectory string
}

type MockClient

type MockClient struct {
	NamespaceReturns string

	CalledInstallChartWith [][]interface{}
	InstallError           error

	CalledUpgradeChartWith [][]interface{}
	UpgradeError           error

	CalledExistsWith []Chart
	ExistsReturns    bool
	ExistsError      error

	CalledDownloadChartWith []string
	DownloadReturns         string
	DownloadError           error

	CalledLoadChartWith []Chart
	LoadChartReturns    *chart.Chart
	LoadError           error

	CalledUninstallChartWith []Chart
	UninstallError           error
}

func (*MockClient) DownloadChart

func (c *MockClient) DownloadChart(chartURL string) (string, error)

func (*MockClient) Exists

func (c *MockClient) Exists(chart Chart) (bool, error)

func (*MockClient) Install

func (c *MockClient) Install(chart Chart, values map[string]interface{}) error

func (*MockClient) LoadChart

func (c *MockClient) LoadChart(chart Chart) (*chart.Chart, error)

func (*MockClient) Namespace

func (c *MockClient) Namespace() string

func (*MockClient) Uninstall

func (c *MockClient) Uninstall(chart Chart) error

func (*MockClient) Upgrade

func (c *MockClient) Upgrade(chart Chart, values map[string]interface{}) error

Jump to

Keyboard shortcuts

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