Documentation ¶
Index ¶
- type BrowserLauncher
- type Command
- type HTTPClient
- type HelmClient
- type Option
- func WithBrowserLauncher(launcher BrowserLauncher) Option
- func WithHTTPClient(client HTTPClient) Option
- func WithHelmClient(client HelmClient) Option
- func WithK8sClient(client k8s.K8sClient) Option
- func WithSpinner(spinner *pterm.SpinnerPrinter) Option
- func WithTelemetryClient(client telemetry.Client) Option
- func WithUserHome(home string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserLauncher ¶
BrowserLauncher primarily for testing purposes.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command is the local command, responsible for installing, uninstalling, or other local actions.
type HelmClient ¶
type HelmClient interface { AddOrUpdateChartRepo(entry repo.Entry) error GetChart(string, *action.ChartPathOptions) (*chart.Chart, string, error) GetRelease(name string) (*release.Release, error) InstallOrUpgradeChart(ctx context.Context, spec *helmclient.ChartSpec, opts *helmclient.GenericHelmOptions) (*release.Release, error) UninstallReleaseByName(string) error }
HelmClient primarily for testing purposes
type Option ¶
type Option func(*Command)
Option for configuring the Command, primarily exists for testing
func WithBrowserLauncher ¶
func WithBrowserLauncher(launcher BrowserLauncher) Option
WithBrowserLauncher define the browser launcher for this command.
func WithHTTPClient ¶
func WithHTTPClient(client HTTPClient) Option
WithHTTPClient define the http client for this command.
func WithHelmClient ¶
func WithHelmClient(client HelmClient) Option
WithHelmClient define the helm client for this command.
func WithK8sClient ¶
WithK8sClient define the k8s client for this command.
func WithSpinner ¶ added in v0.3.0
func WithSpinner(spinner *pterm.SpinnerPrinter) Option
func WithTelemetryClient ¶
WithTelemetryClient define the telemetry client for this command.
func WithUserHome ¶ added in v0.2.0
WithUserHome define the user's home directory.
Click to show internal directories.
Click to hide internal directories.