Documentation ¶
Index ¶
- func SaveChartByte(c *chart.Chart) ([]byte, error)
- type Client
- func (helmClient *Client) FilterReleases(regex string) ([]*release.Release, error)
- func (helmClient *Client) GetRelease(releaseName string) (*release.Release, error)
- func (helmClient *Client) GetReleaseByVersion(releaseName string, version int32) (*rls.GetReleaseContentResponse, error)
- func (helmClient *Client) InstallRelease(namespace string, releaseName string, chartBytes []byte, raw string) (*rls.InstallReleaseResponse, error)
- func (helmClient *Client) KeepLive() error
- func (helmClient *Client) Ping()
- func (helmClient *Client) UninstallRelease(rlsName string) (*rls.UninstallReleaseResponse, error)
- func (helmClient *Client) UpdateRelease(rlsName string, chartBytes []byte, raw string) (*rls.UpdateReleaseResponse, error)
- type ReleaseNotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client encapsulates a Helm Client and a Tunnel for that client to interact with the Tiller pod
func NewClient ¶
func NewClient(cfg *restclient.Config, kubeClient *kubernetes.Clientset) (*Client, error)
NewClient
func (*Client) FilterReleases ¶
Filter the releases what you want to find.
func (*Client) GetRelease ¶
Find the release with its name, return the just only one.
func (*Client) GetReleaseByVersion ¶
func (helmClient *Client) GetReleaseByVersion(releaseName string, version int32) (*rls.GetReleaseContentResponse, error)
GetReleaseByVersion returns the details of a helm release version.
func (*Client) InstallRelease ¶
func (helmClient *Client) InstallRelease(namespace string, releaseName string, chartBytes []byte, raw string) (*rls.InstallReleaseResponse, error)
Install a release.
func (*Client) UninstallRelease ¶
func (helmClient *Client) UninstallRelease(rlsName string) (*rls.UninstallReleaseResponse, error)
Delete a release.
func (*Client) UpdateRelease ¶
func (helmClient *Client) UpdateRelease(rlsName string, chartBytes []byte, raw string) (*rls.UpdateReleaseResponse, error)
Update a release.
type ReleaseNotFoundError ¶
type ReleaseNotFoundError struct {
HelmError error
}
ReleaseNotFoundError is returned when a Helm related operation is executed on a release (helm release) that doesn't exists
func (*ReleaseNotFoundError) Error ¶
func (e *ReleaseNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.