helm

package
v0.0.0-...-4fbbd1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 GetListFunc

type GetListFunc func() ([]*release.Release, error)

GetListFunc type

type GetReleaseFunc

type GetReleaseFunc func(string) (*release.Release, error)

GetReleaseFunc type

type GetValuesFunc

type GetValuesFunc func(string) (map[string]interface{}, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL