Documentation ¶
Index ¶
- func GetChartPathByName(chart string) string
- func GetStatus(cfg *action.Configuration, releaseName string) (release.Status, error)
- func GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)
- func Install(cfg *action.Configuration, request ChartRequest) error
- func NeedUpdate(status release.Status) bool
- func ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error)
- func SetDefaultClient(client Client)
- func Uninstall(cfg *action.Configuration, releaseName string) error
- func Update(cfg *action.Configuration, request ChartRequest) error
- func Upgrade(cfg *action.Configuration, request ChartRequest) error
- type ChartRequest
- type Client
- type LocalClient
- func (d *LocalClient) GetStatus(cfg *action.Configuration, releaseName string) (release.Status, error)
- func (d *LocalClient) GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)
- func (d *LocalClient) Install(cfg *action.Configuration, request ChartRequest) error
- func (d *LocalClient) ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error)
- func (d *LocalClient) Uninstall(cfg *action.Configuration, releaseName string) error
- func (d *LocalClient) Update(cfg *action.Configuration, request ChartRequest) error
- func (d *LocalClient) Upgrade(cfg *action.Configuration, request ChartRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChartPathByName ¶ added in v0.5.1
func GetValues ¶
func GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)
func Install ¶
func Install(cfg *action.Configuration, request ChartRequest) error
func NeedUpdate ¶
func ReleaseExist ¶
func ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error)
func SetDefaultClient ¶ added in v0.2.3
func SetDefaultClient(client Client)
SetDefaultClient sets the default client
func Update ¶
func Update(cfg *action.Configuration, request ChartRequest) error
func Upgrade ¶
func Upgrade(cfg *action.Configuration, request ChartRequest) error
Types ¶
type ChartRequest ¶
type ChartRequest struct { ReleaseName string Namespace string Chart string Values map[string]interface{} }
func GetChartRequest ¶ added in v0.5.1
func GetChartRequest(mc v1beta1.Milvus, dep values.DependencyKind, chart string) ChartRequest
type Client ¶ added in v0.2.3
type Client interface { GetStatus(cfg *action.Configuration, releaseName string) (release.Status, error) GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error) ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error) Upgrade(cfg *action.Configuration, request ChartRequest) error Update(cfg *action.Configuration, request ChartRequest) error Install(cfg *action.Configuration, request ChartRequest) error Uninstall(cfg *action.Configuration, releaseName string) error }
Client interface of helm
type LocalClient ¶ added in v0.2.3
type LocalClient struct{}
LocalClient is the local implementation of the Client interface.
func (*LocalClient) GetStatus ¶ added in v0.2.3
func (d *LocalClient) GetStatus(cfg *action.Configuration, releaseName string) (release.Status, error)
func (*LocalClient) GetValues ¶ added in v0.2.3
func (d *LocalClient) GetValues(cfg *action.Configuration, releaseName string) (map[string]interface{}, error)
func (*LocalClient) Install ¶ added in v0.2.3
func (d *LocalClient) Install(cfg *action.Configuration, request ChartRequest) error
func (*LocalClient) ReleaseExist ¶ added in v0.2.3
func (d *LocalClient) ReleaseExist(cfg *action.Configuration, releaseName string) (bool, error)
func (*LocalClient) Uninstall ¶ added in v0.2.3
func (d *LocalClient) Uninstall(cfg *action.Configuration, releaseName string) error
func (*LocalClient) Update ¶ added in v0.2.3
func (d *LocalClient) Update(cfg *action.Configuration, request ChartRequest) error
func (*LocalClient) Upgrade ¶ added in v0.2.3
func (d *LocalClient) Upgrade(cfg *action.Configuration, request ChartRequest) error
Click to show internal directories.
Click to hide internal directories.