helm

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	internal.IO
}

func (CLI) Pull

func (cli CLI) Pull(ctx context.Context, opts PullOptions) error

func (CLI) Render

func (cli CLI) Render(ctx context.Context, opts RenderOpts) error

type Chart added in v0.33.0

type Chart struct {
	RepoURL string `yaml:"repoUrl"`
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

func (Chart) ToURL added in v0.39.0

func (chart Chart) ToURL() (*url.URL, error)

type ChartCache added in v0.33.0

type ChartCache struct {
	Refs            map[string]Chart
	DefaultChartRef string
	Root            string
	Puller
}

func (ChartCache) GetReleaseChart added in v0.33.0

func (cache ChartCache) GetReleaseChart(release *v1alpha1.Release) (Chart, error)

func (ChartCache) GetReleaseChartFS added in v0.39.0

func (cache ChartCache) GetReleaseChartFS(ctx context.Context, release *v1alpha1.Release) (*ChartFS, error)

type ChartFS added in v0.39.0

type ChartFS struct {
	Chart
	xfs.FS
}

type PullOptions

type PullOptions struct {
	Chart     Chart
	OutputDir string
}

type PullRenderer

type PullRenderer interface {
	Puller
	Render(ctx context.Context, opts RenderOpts) error
}

type PullRendererMock added in v0.45.1

type PullRendererMock struct {
	// PullFunc mocks the Pull method.
	PullFunc func(contextMoqParam context.Context, pullOptions PullOptions) error

	// RenderFunc mocks the Render method.
	RenderFunc func(ctx context.Context, opts RenderOpts) error
	// contains filtered or unexported fields
}

PullRendererMock is a mock implementation of PullRenderer.

func TestSomethingThatUsesPullRenderer(t *testing.T) {

	// make and configure a mocked PullRenderer
	mockedPullRenderer := &PullRendererMock{
		PullFunc: func(contextMoqParam context.Context, pullOptions PullOptions) error {
			panic("mock out the Pull method")
		},
		RenderFunc: func(ctx context.Context, opts RenderOpts) error {
			panic("mock out the Render method")
		},
	}

	// use mockedPullRenderer in code that requires PullRenderer
	// and then make assertions.

}

func (*PullRendererMock) Pull added in v0.45.1

func (mock *PullRendererMock) Pull(contextMoqParam context.Context, pullOptions PullOptions) error

Pull calls PullFunc.

func (*PullRendererMock) PullCalls added in v0.45.1

func (mock *PullRendererMock) PullCalls() []struct {
	ContextMoqParam context.Context
	PullOptions     PullOptions
}

PullCalls gets all the calls that were made to Pull. Check the length with:

len(mockedPullRenderer.PullCalls())

func (*PullRendererMock) Render added in v0.45.1

func (mock *PullRendererMock) Render(ctx context.Context, opts RenderOpts) error

Render calls RenderFunc.

func (*PullRendererMock) RenderCalls added in v0.45.1

func (mock *PullRendererMock) RenderCalls() []struct {
	Ctx  context.Context
	Opts RenderOpts
}

RenderCalls gets all the calls that were made to Render. Check the length with:

len(mockedPullRenderer.RenderCalls())

type Puller added in v0.33.0

type Puller interface {
	Pull(context.Context, PullOptions) error
}

type RenderOpts added in v0.24.2

type RenderOpts struct {
	Dst         io.Writer
	ReleaseName string
	Values      map[string]any
	ChartPath   string
}

Jump to

Keyboard shortcuts

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