Documentation
¶
Index ¶
- func GetHelmVersion(helmBinary string, runner Runner) (semver.Version, error)
- func GetPluginVersion(name, pluginsDir string) (*semver.Version, error)
- func Indent(text, indent string) string
- func LiveOutput(c *exec.Cmd, stdout io.Writer) ([]byte, error)
- func New(helmBinary string, enableLiveOutput bool, logger *zap.SugaredLogger, ...) *execer
- func NewLogger(writer io.Writer, logLevel string) *zap.SugaredLogger
- func Output(c *exec.Cmd, logWriterGenerators ...*logWriterGenerator) ([]byte, error)
- type DependencyUpdater
- type ExitError
- type HelmContext
- type Interface
- type Runner
- type ShellRunner
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHelmVersion ¶ added in v0.148.0
func GetPluginVersion ¶ added in v0.146.0
Types ¶
type DependencyUpdater ¶
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) SetEnableLiveOutput(enableLiveOutput bool) 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, path 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 ShowChart(chart string) (chart.Metadata, error) }
Interface for executing helm commands
type Runner ¶
type Runner interface { Execute(cmd string, args []string, env map[string]string, enableLiveOutput bool) ([]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.