Documentation
¶
Index ¶
- type Cli
- func (c *Cli) AddRepo(ctx context.Context, repo *Repository) error
- func (cli *Cli) CheckInstalled(ctx context.Context) error
- func (c *Cli) Install(ctx context.Context, release *Release) error
- func (cli *Cli) InstallUrl() string
- func (cli *Cli) Name() string
- func (c *Cli) Status(ctx context.Context, release *Release) (*StatusResult, error)
- func (c *Cli) UpdateRepo(ctx context.Context, repoName string) error
- func (c *Cli) Upgrade(ctx context.Context, release *Release) error
- type Config
- type Release
- type Repository
- type StatusInfo
- type StatusKind
- type StatusResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func NewCli ¶
func NewCli(commandRunner exec.CommandRunner) *Cli
func (*Cli) AddRepo ¶
func (c *Cli) AddRepo(ctx context.Context, repo *Repository) error
AddRepo adds a helm repo with the specified name and url
func (*Cli) CheckInstalled ¶
Checks whether or not the Helm CLI is installed and available within the PATH
func (*Cli) InstallUrl ¶
Returns the installation URL to install the Helm CLI
func (*Cli) UpdateRepo ¶
UpdateRepo updates the helm repo with the specified name
type Config ¶
type Config struct { Repositories []*Repository `yaml:"repositories"` Releases []*Release `yaml:"releases"` }
type Repository ¶
type StatusInfo ¶
type StatusInfo struct { FirstDeployed time.Time `json:"first_deployed"` LastDeployed time.Time `json:"last_deployed"` Status StatusKind `json:"status"` Notes string `json:"notes"` }
StatusInfo is the status information of a helm release
type StatusKind ¶
type StatusKind string
const ( // StatusKindDeployed is the status of a helm release that has been deployed StatusKindDeployed StatusKind = "deployed" )
type StatusResult ¶
type StatusResult struct { Name string `json:"name"` Info StatusInfo `json:"info"` Version float64 `json:"version"` Namespace string `json:"namespace"` }
StatusResult is the result of a helm status command
Click to show internal directories.
Click to hide internal directories.