testutil

package
v0.164.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureStdout

func CaptureStdout(f func()) (string, error)

CaptureStdout is a helper function to capture stdout.

Types

type V3HelmExec added in v0.154.0

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

func NewV3HelmExec added in v0.154.0

func NewV3HelmExec(isHelm3 bool) *V3HelmExec

func (V3HelmExec) AddRepo added in v0.154.0

func (helm V3HelmExec) AddRepo(name, repository, cafile, certfile, keyfile, username, password string, managed string, passCredentials, skipTLSVerify bool) error

func (V3HelmExec) BuildDeps added in v0.154.0

func (helm V3HelmExec) BuildDeps(name, chart string, flags ...string) error

func (V3HelmExec) ChartExport added in v0.154.0

func (helm V3HelmExec) ChartExport(chart string, path string) error

func (V3HelmExec) ChartPull added in v0.154.0

func (helm V3HelmExec) ChartPull(chart string, path string, flags ...string) error

func (V3HelmExec) DecryptSecret added in v0.154.0

func (helm V3HelmExec) DecryptSecret(context helmexec.HelmContext, name string, flags ...string) (string, error)

func (V3HelmExec) DeleteRelease added in v0.154.0

func (helm V3HelmExec) DeleteRelease(context helmexec.HelmContext, name string, flags ...string) error

func (V3HelmExec) DiffRelease added in v0.154.0

func (helm V3HelmExec) DiffRelease(context helmexec.HelmContext, name, chart string, suppressDiff bool, flags ...string) error

func (V3HelmExec) Fetch added in v0.154.0

func (helm V3HelmExec) Fetch(chart string, flags ...string) error

func (V3HelmExec) GetVersion added in v0.154.0

func (helm V3HelmExec) GetVersion() helmexec.Version

func (*V3HelmExec) IsHelm3 added in v0.154.0

func (helm *V3HelmExec) IsHelm3() bool

func (V3HelmExec) IsVersionAtLeast added in v0.154.0

func (helm V3HelmExec) IsVersionAtLeast(versionStr string) bool

func (V3HelmExec) Lint added in v0.154.0

func (helm V3HelmExec) Lint(name, chart string, flags ...string) error

func (V3HelmExec) List added in v0.154.0

func (helm V3HelmExec) List(context helmexec.HelmContext, filter string, flags ...string) (string, error)

func (V3HelmExec) RegistryLogin added in v0.154.0

func (helm V3HelmExec) RegistryLogin(name, username, password, caFile, certFile, keyFile string, skipTLSVerify bool) error

func (V3HelmExec) ReleaseStatus added in v0.154.0

func (helm V3HelmExec) ReleaseStatus(context helmexec.HelmContext, release string, flags ...string) error

func (V3HelmExec) SetDisableForceUpdate added in v0.154.0

func (helm V3HelmExec) SetDisableForceUpdate(forceUpdate bool)

func (V3HelmExec) SetEnableLiveOutput added in v0.154.0

func (helm V3HelmExec) SetEnableLiveOutput(enableLiveOutput bool)

func (V3HelmExec) SetExtraArgs added in v0.154.0

func (helm V3HelmExec) SetExtraArgs(args ...string)

func (V3HelmExec) SetHelmBinary added in v0.154.0

func (helm V3HelmExec) SetHelmBinary(bin string)

func (V3HelmExec) ShowChart added in v0.154.0

func (helm V3HelmExec) ShowChart(chartPath string) (chart.Metadata, error)

func (V3HelmExec) SyncRelease added in v0.154.0

func (helm V3HelmExec) SyncRelease(context helmexec.HelmContext, name, chart string, flags ...string) error

func (V3HelmExec) TemplateRelease added in v0.154.0

func (helm V3HelmExec) TemplateRelease(name, chart string, flags ...string) error

func (V3HelmExec) TestRelease added in v0.154.0

func (helm V3HelmExec) TestRelease(context helmexec.HelmContext, name string, flags ...string) error

func (V3HelmExec) UpdateDeps added in v0.154.0

func (helm V3HelmExec) UpdateDeps(chart string) error

func (V3HelmExec) UpdateRepo added in v0.154.0

func (helm V3HelmExec) UpdateRepo() error

type VersionHelmExec added in v0.154.0

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

func NewVersionHelmExec added in v0.154.0

func NewVersionHelmExec(version string) *VersionHelmExec

func (VersionHelmExec) AddRepo added in v0.154.0

func (helm VersionHelmExec) AddRepo(name, repository, cafile, certfile, keyfile, username, password string, managed string, passCredentials, skipTLSVerify bool) error

func (VersionHelmExec) BuildDeps added in v0.154.0

func (helm VersionHelmExec) BuildDeps(name, chart string, flags ...string) error

func (VersionHelmExec) ChartExport added in v0.154.0

func (helm VersionHelmExec) ChartExport(chart string, path string) error

func (VersionHelmExec) ChartPull added in v0.154.0

func (helm VersionHelmExec) ChartPull(chart string, path string, flags ...string) error

func (VersionHelmExec) DecryptSecret added in v0.154.0

func (helm VersionHelmExec) DecryptSecret(context helmexec.HelmContext, name string, flags ...string) (string, error)

func (VersionHelmExec) DeleteRelease added in v0.154.0

func (helm VersionHelmExec) DeleteRelease(context helmexec.HelmContext, name string, flags ...string) error

func (VersionHelmExec) DiffRelease added in v0.154.0

func (helm VersionHelmExec) DiffRelease(context helmexec.HelmContext, name, chart string, suppressDiff bool, flags ...string) error

func (VersionHelmExec) Fetch added in v0.154.0

func (helm VersionHelmExec) Fetch(chart string, flags ...string) error

func (VersionHelmExec) GetVersion added in v0.154.0

func (helm VersionHelmExec) GetVersion() helmexec.Version

func (VersionHelmExec) IsHelm3 added in v0.154.0

func (helm VersionHelmExec) IsHelm3() bool

func (*VersionHelmExec) IsVersionAtLeast added in v0.154.0

func (helm *VersionHelmExec) IsVersionAtLeast(ver string) bool

func (VersionHelmExec) Lint added in v0.154.0

func (helm VersionHelmExec) Lint(name, chart string, flags ...string) error

func (VersionHelmExec) List added in v0.154.0

func (helm VersionHelmExec) List(context helmexec.HelmContext, filter string, flags ...string) (string, error)

func (VersionHelmExec) RegistryLogin added in v0.154.0

func (helm VersionHelmExec) RegistryLogin(name, username, password, caFile, certFile, keyFile string, skipTLSVerify bool) error

func (VersionHelmExec) ReleaseStatus added in v0.154.0

func (helm VersionHelmExec) ReleaseStatus(context helmexec.HelmContext, release string, flags ...string) error

func (VersionHelmExec) SetDisableForceUpdate added in v0.154.0

func (helm VersionHelmExec) SetDisableForceUpdate(forceUpdate bool)

func (VersionHelmExec) SetEnableLiveOutput added in v0.154.0

func (helm VersionHelmExec) SetEnableLiveOutput(enableLiveOutput bool)

func (VersionHelmExec) SetExtraArgs added in v0.154.0

func (helm VersionHelmExec) SetExtraArgs(args ...string)

func (VersionHelmExec) SetHelmBinary added in v0.154.0

func (helm VersionHelmExec) SetHelmBinary(bin string)

func (VersionHelmExec) ShowChart added in v0.154.0

func (helm VersionHelmExec) ShowChart(chartPath string) (chart.Metadata, error)

func (VersionHelmExec) SyncRelease added in v0.154.0

func (helm VersionHelmExec) SyncRelease(context helmexec.HelmContext, name, chart string, flags ...string) error

func (VersionHelmExec) TemplateRelease added in v0.154.0

func (helm VersionHelmExec) TemplateRelease(name, chart string, flags ...string) error

func (VersionHelmExec) TestRelease added in v0.154.0

func (helm VersionHelmExec) TestRelease(context helmexec.HelmContext, name string, flags ...string) error

func (VersionHelmExec) UpdateDeps added in v0.154.0

func (helm VersionHelmExec) UpdateDeps(chart string) error

func (VersionHelmExec) UpdateRepo added in v0.154.0

func (helm VersionHelmExec) UpdateRepo() error

Jump to

Keyboard shortcuts

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