Documentation
¶
Overview ¶
helmx provides an API for other golang programs to use helm-x as a library
Index ¶
- func DefaultRunCommand(cmd string, args []string, stdout, stderr io.Writer, env map[string]string) error
- func Namespace(ns string) *namespace
- func TillerNamespace(tillerNs string) *tillerNamespace
- func TillerStorageBackend(s string) *storage
- func YamlMarshal(v interface{}) ([]byte, error)
- type AdoptOption
- type AdoptOpts
- type ClientOpts
- type DiffOption
- type DiffOpts
- type KustomizeImage
- type KustomizeOpts
- type Option
- type RenderOpts
- type Runner
- func (r *Runner) Adopt(release string, resources []string, pathOptions *clientcmd.PathOptions, ...) error
- func (r *Runner) CaptureBytes(binary string, args []string) ([]byte, []byte, error)
- func (r *Runner) Chartify(release, dirOrChart string, opts ...chartify.ChartifyOption) (string, error)
- func (r *Runner) DeprecatedCaptureBytes(cmd string) ([]byte, []byte, error)
- func (r *Runner) DeprecatedExec(cmd string) error
- func (r *Runner) Diff(release, chart string, opts ...DiffOption) (bool, error)
- func (r *Runner) HelmBin() string
- func (r *Runner) IsHelm3() bool
- func (r *Runner) Render(release, chart string, templateOpts RenderOpts) error
- func (r *Runner) Run(name string, args ...string) (string, error)
- func (r *Runner) Upgrade(release, chart string, o UpgradeOpts) error
- type UpgradeOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRunCommand ¶
func TillerNamespace ¶
func TillerNamespace(tillerNs string) *tillerNamespace
func TillerStorageBackend ¶ added in v0.6.0
func TillerStorageBackend(s string) *storage
func YamlMarshal ¶
Types ¶
type AdoptOption ¶
type AdoptOpts ¶
type AdoptOpts struct { *ClientOpts Namespace string TillerNamespace string Out io.Writer }
type ClientOpts ¶
type DiffOption ¶
type DiffOpts ¶
type DiffOpts struct { *chartify.ChartifyOpts *ClientOpts Chart string AllowUnreleased bool DetailedExitcode bool ResetValues bool Out io.Writer // contains filtered or unexported fields }
func (*DiffOpts) SetDiffOption ¶
type KustomizeImage ¶
type KustomizeImage struct { Name string `yaml:"name"` NewName string `yaml:"newName"` NewTag string `yaml:"newTag"` Digest string `yaml:"digest"` }
func (KustomizeImage) String ¶
func (img KustomizeImage) String() string
type KustomizeOpts ¶
type KustomizeOpts struct { Images []KustomizeImage `yaml:"images"` NamePrefix string `yaml:"namePrefix"` NameSuffix string `yaml:"nameSuffix"` Namespace string `yaml:"namespace"` }
type RenderOpts ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) Adopt ¶
func (r *Runner) Adopt(release string, resources []string, pathOptions *clientcmd.PathOptions, opts ...AdoptOption) error
func (*Runner) CaptureBytes ¶
func (*Runner) DeprecatedCaptureBytes ¶
DeprecatedCaptureBytes takes a command as a string and executes it, and returns the captured stdout and stderr
func (*Runner) DeprecatedExec ¶
DeprecatedExec takes a command as a string and executes it
func (*Runner) Diff ¶
func (r *Runner) Diff(release, chart string, opts ...DiffOption) (bool, error)
Diff returns true when the diff succeeds and changes are detected.
type UpgradeOpts ¶
type UpgradeOpts struct { *chartify.ChartifyOpts *ClientOpts Timeout string Install bool DryRun bool ResetValues bool Adopt []string Out io.Writer // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.