Documentation ¶
Index ¶
- type Agent
- type Args
- type DefaultAgent
- func (a DefaultAgent) CheckIndex(r *repo.ChartRepository) bool
- func (a DefaultAgent) GetChart(name, version, endpoint string) ([]byte, error)
- func (a DefaultAgent) GetCharts(r *repo.ChartRepository) (map[string]repo.ChartVersions, error)
- func (a DefaultAgent) Install(args Args) (*release.Release, error)
- func (a DefaultAgent) Rollback(version int, args Args) error
- func (a DefaultAgent) Test(args Args) (*release.Release, error)
- func (a DefaultAgent) Uninstall(args Args) (*release.UninstallReleaseResponse, error)
- func (a DefaultAgent) Upgrade(args Args) (*release.Release, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { CheckIndex(*repo.ChartRepository) bool GetChart(name, version, endpoint string) ([]byte, error) GetCharts(*repo.ChartRepository) (map[string]repo.ChartVersions, error) Install(args Args) (*release.Release, error) Rollback(version int, args Args) error Test(args Args) (*release.Release, error) Uninstall(args Args) (*release.UninstallReleaseResponse, error) Upgrade(args Args) (*release.Release, error) }
Agent is the interface we use to talk to helm packages
type Args ¶ added in v0.4.0
type Args struct { Name string Namespace string Endpoint string Token string Chart *chart.Chart Values map[string]interface{} Wait bool Logger func(string, ...interface{}) }
Args are arguments common to the install, upgrade, etc. commands
type DefaultAgent ¶
type DefaultAgent struct{}
DefaultAgent is the default implementation of the Agent interface
func (DefaultAgent) CheckIndex ¶
func (a DefaultAgent) CheckIndex(r *repo.ChartRepository) bool
CheckIndex checks the index.yaml file at the repo's endpoint
func (DefaultAgent) GetChart ¶ added in v0.4.0
func (a DefaultAgent) GetChart(name, version, endpoint string) ([]byte, error)
GetChart downloads a single chart from a particular chart repo
func (DefaultAgent) GetCharts ¶
func (a DefaultAgent) GetCharts(r *repo.ChartRepository) (map[string]repo.ChartVersions, error)
GetCharts gets all charts from a particular chart repo
func (DefaultAgent) Install ¶ added in v0.4.0
func (a DefaultAgent) Install(args Args) (*release.Release, error)
Install is the equivalent of `helm install`
func (DefaultAgent) Rollback ¶ added in v0.4.0
func (a DefaultAgent) Rollback(version int, args Args) error
Rollback is the equivalent of `helm rollback`
func (DefaultAgent) Test ¶ added in v0.4.0
func (a DefaultAgent) Test(args Args) (*release.Release, error)
Test is the equivalent of `helm test`
func (DefaultAgent) Uninstall ¶ added in v0.4.0
func (a DefaultAgent) Uninstall(args Args) (*release.UninstallReleaseResponse, error)
Uninstall is the equivalent of `helm uninstall`
Click to show internal directories.
Click to hide internal directories.