Documentation ¶
Index ¶
- func Indent(text, indent string) string
- func New(helmBinary string, logger *zap.SugaredLogger, kubeContext string, ...) *execer
- func NewLogger(writer io.Writer, logLevel string) *zap.SugaredLogger
- func Output(c *exec.Cmd, logWriterGenerators ...*logWriterGenerator) ([]byte, error)
- type DependencyUpdater
- type DiffRunner
- type DiffShellRunner
- type ExitError
- type HelmContext
- type Interface
- type Runner
- type ShellRunner
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DependencyUpdater ¶
type DiffRunner ¶ added in v0.1.3
type DiffShellRunner ¶ added in v0.1.3
type DiffShellRunner struct { }
func (DiffShellRunner) ExecuteDiff ¶ added in v0.1.3
type ExitError ¶
ExitError is created whenever your shell command exits with a non-zero exit status
func (ExitError) ExitStatus ¶
type HelmContext ¶
type HelmContext struct { Tillerless bool TillerNamespace string HistoryMax int WorkerIndex int Writer io.Writer }
func (*HelmContext) GetTillerlessArgs ¶
func (context *HelmContext) GetTillerlessArgs(helm *execer) []string
type Interface ¶
type Interface interface { SetExtraArgs(args ...string) SetHelmBinary(bin string) AddRepo(name, repository, cafile, certfile, keyfile, username, password string, managed string, passCredentials string, skipTLSVerify string) error UpdateRepo() error RegistryLogin(name string, username string, password string) error BuildDeps(name, chart string) error UpdateDeps(chart string) error SyncRelease(context HelmContext, name, chart string, flags ...string) error DiffRelease(context HelmContext, name, chart string, suppressDiff bool, flags ...string) error TemplateRelease(name, chart string, flags ...string) error Fetch(chart string, flags ...string) error ChartPull(chart string, flags ...string) error ChartExport(chart string, path string, flags ...string) error Lint(name, chart string, flags ...string) error ReleaseStatus(context HelmContext, name string, flags ...string) error DeleteRelease(context HelmContext, name string, flags ...string) error TestRelease(context HelmContext, name string, flags ...string) error List(context HelmContext, filter string, flags ...string) (string, error) DecryptSecret(context HelmContext, name string, flags ...string) (string, error) IsHelm3() bool GetVersion() Version IsVersionAtLeast(versionStr string) bool }
Interface for executing helm commands
type Runner ¶
type Runner interface { Execute(cmd string, args []string, env map[string]string) ([]byte, error) ExecuteStdIn(cmd string, args []string, env map[string]string, stdin io.Reader) ([]byte, error) }
Runner interface for shell commands
type ShellRunner ¶
type ShellRunner struct { Dir string Logger *zap.SugaredLogger }
ShellRunner implemention for shell commands
Source Files ¶
Click to show internal directories.
Click to hide internal directories.