Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chart ¶
type ChartCache ¶
func (ChartCache) GetReleaseChart ¶
func (cache ChartCache) GetReleaseChart(release *v1alpha1.Release) (Chart, error)
func (ChartCache) GetReleaseChartFS ¶
type PullOptions ¶
type PullRenderer ¶
type PullRenderer interface { Puller Render(ctx context.Context, opts RenderOpts) error }
type PullRendererMock ¶
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 ¶
func (mock *PullRendererMock) Pull(contextMoqParam context.Context, pullOptions PullOptions) error
Pull calls PullFunc.
func (*PullRendererMock) PullCalls ¶
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 ¶
func (mock *PullRendererMock) Render(ctx context.Context, opts RenderOpts) error
Render calls RenderFunc.
func (*PullRendererMock) RenderCalls ¶
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.