helm

package
v0.0.0-...-83b2bd0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 7 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, allValues bool) (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) *RESTClientGetter

NewRESTClientGetter returns a RESTClientGetter using the provided 'namespace' and 'restConfig'.

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