helm

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationOption

type ConfigurationOption func(*action.Configuration)

func WithLog

func WithLog(value func(string, ...interface{})) ConfigurationOption

type Helm

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

func New

func New(options ...ConfigurationOption) (*Helm, error)

func (*Helm) Install

func (h *Helm) Install(ctx context.Context, chart string, options ...InstallOption) (*release.Release, error)

func (*Helm) Uninstall

func (h *Helm) Uninstall(_ context.Context, name string, options ...UninstallOption) error

type InstallOption

type InstallOption func(*ReleaseOptions[action.Install])

func WithInstallName

func WithInstallName(value string) InstallOption

func WithInstallNamespace

func WithInstallNamespace(value string) InstallOption

func WithInstallTimeout

func WithInstallTimeout(value time.Duration) InstallOption

func WithInstallValue

func WithInstallValue(name string, value interface{}) InstallOption

func WithInstallValues

func WithInstallValues(values map[string]interface{}) InstallOption

func WithInstallVersion

func WithInstallVersion(value string) InstallOption

type ReleaseOptions

type ReleaseOptions[T any] struct {
	Client *T
	Values map[string]interface{}
}

type UninstallOption

type UninstallOption func(*ReleaseOptions[action.Uninstall])

func WithUninstallTimeout

func WithUninstallTimeout(value time.Duration) UninstallOption

Jump to

Keyboard shortcuts

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