mocks

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 4 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 struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v1.8.8

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) CleanChartCache

func (_mock *Client) CleanChartCache(chart string, version string) error

CleanChartCache provides a mock function for the type Client

func (*Client) EXPECT added in v1.8.8

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) ExtractChart

func (_mock *Client) ExtractChart(ctx context.Context, chart string, version string, passCredentials bool, manifestMaxExtractedSize int64, disableManifestMaxExtractedSize bool) (string, io.Closer, error)

ExtractChart provides a mock function for the type Client

func (*Client) GetIndex

func (_mock *Client) GetIndex(ctx context.Context, noCache bool, maxIndexSize int64) (*helm.Index, error)

GetIndex provides a mock function for the type Client

func (*Client) GetTags added in v1.8.8

func (_mock *Client) GetTags(ctx context.Context, chart string, noCache bool) ([]string, error)

GetTags provides a mock function for the type Client

func (*Client) TestHelmOCI added in v1.8.8

func (_mock *Client) TestHelmOCI() (bool, error)

TestHelmOCI provides a mock function for the type Client

type Client_CleanChartCache_Call added in v1.8.8

type Client_CleanChartCache_Call struct {
	*mock.Call
}

Client_CleanChartCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanChartCache'

func (*Client_CleanChartCache_Call) Return added in v1.8.8

func (*Client_CleanChartCache_Call) Run added in v1.8.8

func (_c *Client_CleanChartCache_Call) Run(run func(chart string, version string)) *Client_CleanChartCache_Call

func (*Client_CleanChartCache_Call) RunAndReturn added in v1.8.8

func (_c *Client_CleanChartCache_Call) RunAndReturn(run func(chart string, version string) error) *Client_CleanChartCache_Call

type Client_Expecter added in v1.8.8

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) CleanChartCache added in v1.8.8

func (_e *Client_Expecter) CleanChartCache(chart any, version any) *Client_CleanChartCache_Call

CleanChartCache is a helper method to define mock.On call

  • chart string
  • version string

func (*Client_Expecter) ExtractChart added in v1.8.8

func (_e *Client_Expecter) ExtractChart(ctx any, chart any, version any, passCredentials any, manifestMaxExtractedSize any, disableManifestMaxExtractedSize any) *Client_ExtractChart_Call

ExtractChart is a helper method to define mock.On call

  • ctx context.Context
  • chart string
  • version string
  • passCredentials bool
  • manifestMaxExtractedSize int64
  • disableManifestMaxExtractedSize bool

func (*Client_Expecter) GetIndex added in v1.8.8

func (_e *Client_Expecter) GetIndex(ctx any, noCache any, maxIndexSize any) *Client_GetIndex_Call

GetIndex is a helper method to define mock.On call

  • ctx context.Context
  • noCache bool
  • maxIndexSize int64

func (*Client_Expecter) GetTags added in v1.8.8

func (_e *Client_Expecter) GetTags(ctx any, chart any, noCache any) *Client_GetTags_Call

GetTags is a helper method to define mock.On call

  • ctx context.Context
  • chart string
  • noCache bool

func (*Client_Expecter) TestHelmOCI added in v1.8.8

func (_e *Client_Expecter) TestHelmOCI() *Client_TestHelmOCI_Call

TestHelmOCI is a helper method to define mock.On call

type Client_ExtractChart_Call added in v1.8.8

type Client_ExtractChart_Call struct {
	*mock.Call
}

Client_ExtractChart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtractChart'

func (*Client_ExtractChart_Call) Return added in v1.8.8

func (*Client_ExtractChart_Call) Run added in v1.8.8

func (_c *Client_ExtractChart_Call) Run(run func(ctx context.Context, chart string, version string, passCredentials bool, manifestMaxExtractedSize int64, disableManifestMaxExtractedSize bool)) *Client_ExtractChart_Call

func (*Client_ExtractChart_Call) RunAndReturn added in v1.8.8

func (_c *Client_ExtractChart_Call) RunAndReturn(run func(ctx context.Context, chart string, version string, passCredentials bool, manifestMaxExtractedSize int64, disableManifestMaxExtractedSize bool) (string, io.Closer, error)) *Client_ExtractChart_Call

type Client_GetIndex_Call added in v1.8.8

type Client_GetIndex_Call struct {
	*mock.Call
}

Client_GetIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndex'

func (*Client_GetIndex_Call) Return added in v1.8.8

func (_c *Client_GetIndex_Call) Return(index *helm.Index, err error) *Client_GetIndex_Call

func (*Client_GetIndex_Call) Run added in v1.8.8

func (_c *Client_GetIndex_Call) Run(run func(ctx context.Context, noCache bool, maxIndexSize int64)) *Client_GetIndex_Call

func (*Client_GetIndex_Call) RunAndReturn added in v1.8.8

func (_c *Client_GetIndex_Call) RunAndReturn(run func(ctx context.Context, noCache bool, maxIndexSize int64) (*helm.Index, error)) *Client_GetIndex_Call

type Client_GetTags_Call added in v1.8.8

type Client_GetTags_Call struct {
	*mock.Call
}

Client_GetTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTags'

func (*Client_GetTags_Call) Return added in v1.8.8

func (_c *Client_GetTags_Call) Return(strings []string, err error) *Client_GetTags_Call

func (*Client_GetTags_Call) Run added in v1.8.8

func (_c *Client_GetTags_Call) Run(run func(ctx context.Context, chart string, noCache bool)) *Client_GetTags_Call

func (*Client_GetTags_Call) RunAndReturn added in v1.8.8

func (_c *Client_GetTags_Call) RunAndReturn(run func(ctx context.Context, chart string, noCache bool) ([]string, error)) *Client_GetTags_Call

type Client_TestHelmOCI_Call added in v1.8.8

type Client_TestHelmOCI_Call struct {
	*mock.Call
}

Client_TestHelmOCI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestHelmOCI'

func (*Client_TestHelmOCI_Call) Return added in v1.8.8

func (*Client_TestHelmOCI_Call) Run added in v1.8.8

func (_c *Client_TestHelmOCI_Call) Run(run func()) *Client_TestHelmOCI_Call

func (*Client_TestHelmOCI_Call) RunAndReturn added in v1.8.8

func (_c *Client_TestHelmOCI_Call) RunAndReturn(run func() (bool, error)) *Client_TestHelmOCI_Call

Jump to

Keyboard shortcuts

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