Documentation ¶
Index ¶
- type Fake
- func (r *Fake) GetConfig(kubeNamespace string, log action.DebugLog) (*action.Configuration, error)
- func (r *Fake) GetResources(cfg *action.Configuration, manifest string) ([]*unstructured.Unstructured, error)
- func (r *Fake) Install(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, ...) (*release.Release, error)
- func (r *Fake) IsInstalled(cfg *action.Configuration, releaseName string) (bool, error)
- func (r *Fake) Load(ref, chartPath string) (*chart.Chart, error)
- func (r *Fake) Package(chartPath, destinationPath, version string) error
- func (r *Fake) Pull(cfg *action.Configuration, ref, destination string) error
- func (r *Fake) RegistryLogin(hostname, username, password string, insecure bool) error
- func (r *Fake) RegistryLogout(hostname string) error
- func (r *Fake) Status(cfg *action.Configuration, releaseName string) (*release.Release, error)
- func (r *Fake) Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)
- func (r *Fake) Upgrade(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, ...) (*release.Release, error)
- type Impl
- func (r *Impl) GetConfig(kubeNamespace string, log action.DebugLog) (*action.Configuration, error)
- func (r *Impl) GetResources(cfg *action.Configuration, manifest string) ([]*unstructured.Unstructured, error)
- func (r *Impl) Install(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, ...) (*release.Release, error)
- func (r *Impl) IsInstalled(cfg *action.Configuration, releaseName string) (bool, error)
- func (r *Impl) Load(ref, chartPath string) (*chart.Chart, error)
- func (r *Impl) Package(chartPath, destinationPath, version string) error
- func (r *Impl) Pull(cfg *action.Configuration, ref, destination string) error
- func (r *Impl) RegistryLogin(hostname, username, password string, insecure bool) error
- func (r *Impl) RegistryLogout(hostname string) error
- func (r *Impl) Status(cfg *action.Configuration, releaseName string) (*release.Release, error)
- func (r *Impl) Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)
- func (r *Impl) Upgrade(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, ...) (*release.Release, error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
Fake implementation
func NewEmptyFake ¶
func NewEmptyFake() *Fake
func NewFake ¶
func NewFake(rls *release.Release, resources []*unstructured.Unstructured) *Fake
func (*Fake) GetResources ¶
func (r *Fake) GetResources(cfg *action.Configuration, manifest string) ([]*unstructured.Unstructured, error)
GetResources returns allocated resources for the specified release (their current state)
func (*Fake) Install ¶
func (r *Fake) Install(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, kubeNamespace, releaseName string, vals map[string]interface{}) (*release.Release, error)
Install helm release
func (*Fake) IsInstalled ¶ added in v1.0.0
func (*Fake) Pull ¶ added in v0.6.0
func (r *Fake) Pull(cfg *action.Configuration, ref, destination string) error
ChartPull helm chart from repo
func (*Fake) RegistryLogin ¶
RegistryLogin to docker registry v2
func (*Fake) RegistryLogout ¶
RegistryLogout to docker registry v2
func (*Fake) Uninstall ¶
func (r *Fake) Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)
Uninstall helm release
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
Impl implementation
func NewHelmerImpl ¶ added in v1.0.0
func (*Impl) GetResources ¶
func (r *Impl) GetResources(cfg *action.Configuration, manifest string) ([]*unstructured.Unstructured, error)
GetResources returns allocated resources for the specified by its manifest release (their current state)
func (*Impl) Install ¶
func (r *Impl) Install(ctx context.Context, cfg *action.Configuration, chrt *chart.Chart, kubeNamespace, releaseName string, vals map[string]interface{}) (*release.Release, error)
Install helm release from packaged chart
func (*Impl) IsInstalled ¶ added in v1.0.0
func (*Impl) Pull ¶ added in v0.6.0
func (r *Impl) Pull(cfg *action.Configuration, ref, destination string) error
Pull helm chart from repo
func (*Impl) RegistryLogin ¶
RegistryLogin to docker registry v2
func (*Impl) RegistryLogout ¶
RegistryLogout to docker registry v2
func (*Impl) Uninstall ¶
func (r *Impl) Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error)
Uninstall helm release
type Interface ¶
type Interface interface { GetConfig(kubeNamespace string, log action.DebugLog) (*action.Configuration, error) Uninstall(cfg *action.Configuration, releaseName string) (*release.UninstallReleaseResponse, error) Install(ctx context.Context, cfg *action.Configuration, chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error) Upgrade(ctx context.Context, cfg *action.Configuration, chart *chart.Chart, kubeNamespace string, releaseName string, vals map[string]interface{}) (*release.Release, error) Status(cfg *action.Configuration, releaseName string) (*release.Release, error) Pull(cfg *action.Configuration, ref string, destination string) error IsInstalled(cfg *action.Configuration, releaseName string) (bool, error) RegistryLogin(hostname string, username string, password string, insecure bool) error RegistryLogout(hostname string) error Load(ref string, chartPath string) (*chart.Chart, error) Package(chartPath string, destinationPath string, version string) error GetResources(cfg *action.Configuration, manifest string) ([]*unstructured.Unstructured, error) }
Interface of a helm chart
Click to show internal directories.
Click to hide internal directories.