fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActionClientGetter

func NewActionClientGetter(actionClient client.ActionInterface, orErr error) client.ActionClientGetter

Types

type ActionClient

type ActionClient struct {
	Gets       []GetCall
	Installs   []InstallCall
	Upgrades   []UpgradeCall
	Uninstalls []UninstallCall
	Reconciles []ReconcileCall

	HandleGet       func() (*release.Release, error)
	HandleInstall   func() (*release.Release, error)
	HandleUpgrade   func() (*release.Release, error)
	HandleUninstall func() (*release.UninstallReleaseResponse, error)
	HandleReconcile func() error
}

func NewActionClient

func NewActionClient() ActionClient

func (*ActionClient) Get

func (c *ActionClient) Get(name string, opts ...client.GetOption) (*release.Release, error)

func (*ActionClient) Install

func (c *ActionClient) Install(name, namespace string, chrt *chart.Chart, vals map[string]interface{}, opts ...client.InstallOption) (*release.Release, error)

func (*ActionClient) Reconcile

func (c *ActionClient) Reconcile(rel *release.Release) error

func (*ActionClient) Uninstall

func (*ActionClient) Upgrade

func (c *ActionClient) Upgrade(name, namespace string, chrt *chart.Chart, vals map[string]interface{}, opts ...client.UpgradeOption) (*release.Release, error)

type GetCall

type GetCall struct {
	Name string
	Opts []client.GetOption
}

type InstallCall

type InstallCall struct {
	Name      string
	Namespace string
	Chart     *chart.Chart
	Values    map[string]interface{}
	Opts      []client.InstallOption
}

type ReconcileCall

type ReconcileCall struct {
	Release *release.Release
}

type UninstallCall

type UninstallCall struct {
	Name string
	Opts []client.UninstallOption
}

type UpgradeCall

type UpgradeCall struct {
	Name      string
	Namespace string
	Chart     *chart.Chart
	Values    map[string]interface{}
	Opts      []client.UpgradeOption
}

Jump to

Keyboard shortcuts

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