Documentation ¶
Index ¶
- type Client
- type GetListFunc
- type GetReleaseFunc
- type GetValuesFunc
- type RESTClientGetter
- func (c *RESTClientGetter) SendWarning(warning string)
- func (c *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (c *RESTClientGetter) ToRESTConfig() (*rest.Config, error)
- func (c *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
- func (c *RESTClientGetter) ToRawKubeConfigLoader() clientCmd.ClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetRelease(name string) (*release.Release, error) GetList() ([]*release.Release, error) GetValues(name string) (map[string]interface{}, error) }
Client holds the method signatures for a Helm client.
func NewClient ¶
func NewClient(getRelease GetReleaseFunc, getList GetListFunc, getValues GetValuesFunc) (Client, error)
NewClient returns a new Helm client with the provided configuration
type GetReleaseFunc ¶
GetReleaseFunc type
type GetValuesFunc ¶
GetValuesFunc type
type RESTClientGetter ¶
type RESTClientGetter struct {
// contains filtered or unexported fields
}
RESTClientGetter defines the values of a helm REST client
func NewRESTClientGetter ¶
func NewRESTClientGetter(restConfig *rest.Config, namespace string, warningHandlerOverride func(string), loggingClient log.Client) *RESTClientGetter
NewRESTClientGetter returns a RESTClientGetter using the provided 'namespace' and 'restConfig' and optiional warningHandlerOverride (default is fmt.Print).
func (*RESTClientGetter) SendWarning ¶
func (c *RESTClientGetter) SendWarning(warning string)
SendWarning - send warning to warning handler
func (*RESTClientGetter) ToDiscoveryClient ¶
func (c *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
ToDiscoveryClient returns a CachedDiscoveryInterface that can be used as a discovery client.
func (*RESTClientGetter) ToRESTConfig ¶
func (c *RESTClientGetter) ToRESTConfig() (*rest.Config, error)
ToRESTConfig returns a REST config build from a given kubeconfig
func (*RESTClientGetter) ToRESTMapper ¶
func (c *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
ToRESTMapper - to rest mapper
func (*RESTClientGetter) ToRawKubeConfigLoader ¶
func (c *RESTClientGetter) ToRawKubeConfigLoader() clientCmd.ClientConfig
ToRawKubeConfigLoader - to raw kubeconfig loader