Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chart ¶ added in v0.33.0
type ChartCache ¶ added in v0.33.0
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
type PullOptions ¶
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())
Click to show internal directories.
Click to hide internal directories.