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

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) CleanCache

func (_mock *Client) CleanCache(revision string) error

CleanCache provides a mock function for the type Client

func (*Client) DigestMetadata

func (_mock *Client) DigestMetadata(ctx context.Context, digest string) (*v1.Manifest, error)

DigestMetadata provides a mock function for the type Client

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Extract

func (_mock *Client) Extract(ctx context.Context, revision string) (string, io.Closer, error)

Extract provides a mock function for the type Client

func (*Client) GetTags

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

GetTags provides a mock function for the type Client

func (*Client) ResolveRevision

func (_mock *Client) ResolveRevision(ctx context.Context, revision string, noCache bool) (string, error)

ResolveRevision provides a mock function for the type Client

func (*Client) TestRepo

func (_mock *Client) TestRepo(ctx context.Context) (bool, error)

TestRepo provides a mock function for the type Client

type Client_CleanCache_Call

type Client_CleanCache_Call struct {
	*mock.Call
}

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

func (*Client_CleanCache_Call) Return

func (*Client_CleanCache_Call) Run

func (_c *Client_CleanCache_Call) Run(run func(revision string)) *Client_CleanCache_Call

func (*Client_CleanCache_Call) RunAndReturn

func (_c *Client_CleanCache_Call) RunAndReturn(run func(revision string) error) *Client_CleanCache_Call

type Client_DigestMetadata_Call

type Client_DigestMetadata_Call struct {
	*mock.Call
}

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

func (*Client_DigestMetadata_Call) Return

func (_c *Client_DigestMetadata_Call) Return(manifest *v1.Manifest, err error) *Client_DigestMetadata_Call

func (*Client_DigestMetadata_Call) Run

func (*Client_DigestMetadata_Call) RunAndReturn

func (_c *Client_DigestMetadata_Call) RunAndReturn(run func(ctx context.Context, digest string) (*v1.Manifest, error)) *Client_DigestMetadata_Call

type Client_Expecter

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

func (*Client_Expecter) CleanCache

func (_e *Client_Expecter) CleanCache(revision any) *Client_CleanCache_Call

CleanCache is a helper method to define mock.On call

  • revision string

func (*Client_Expecter) DigestMetadata

func (_e *Client_Expecter) DigestMetadata(ctx any, digest any) *Client_DigestMetadata_Call

DigestMetadata is a helper method to define mock.On call

  • ctx context.Context
  • digest string

func (*Client_Expecter) Extract

func (_e *Client_Expecter) Extract(ctx any, revision any) *Client_Extract_Call

Extract is a helper method to define mock.On call

  • ctx context.Context
  • revision string

func (*Client_Expecter) GetTags

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

GetTags is a helper method to define mock.On call

  • ctx context.Context
  • noCache bool

func (*Client_Expecter) ResolveRevision

func (_e *Client_Expecter) ResolveRevision(ctx any, revision any, noCache any) *Client_ResolveRevision_Call

ResolveRevision is a helper method to define mock.On call

  • ctx context.Context
  • revision string
  • noCache bool

func (*Client_Expecter) TestRepo

func (_e *Client_Expecter) TestRepo(ctx any) *Client_TestRepo_Call

TestRepo is a helper method to define mock.On call

  • ctx context.Context

type Client_Extract_Call

type Client_Extract_Call struct {
	*mock.Call
}

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

func (*Client_Extract_Call) Return

func (_c *Client_Extract_Call) Return(s string, closer io.Closer, err error) *Client_Extract_Call

func (*Client_Extract_Call) Run

func (_c *Client_Extract_Call) Run(run func(ctx context.Context, revision string)) *Client_Extract_Call

func (*Client_Extract_Call) RunAndReturn

func (_c *Client_Extract_Call) RunAndReturn(run func(ctx context.Context, revision string) (string, io.Closer, error)) *Client_Extract_Call

type Client_GetTags_Call

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

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

func (*Client_GetTags_Call) Run

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

func (*Client_GetTags_Call) RunAndReturn

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

type Client_ResolveRevision_Call

type Client_ResolveRevision_Call struct {
	*mock.Call
}

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

func (*Client_ResolveRevision_Call) Return

func (*Client_ResolveRevision_Call) Run

func (_c *Client_ResolveRevision_Call) Run(run func(ctx context.Context, revision string, noCache bool)) *Client_ResolveRevision_Call

func (*Client_ResolveRevision_Call) RunAndReturn

func (_c *Client_ResolveRevision_Call) RunAndReturn(run func(ctx context.Context, revision string, noCache bool) (string, error)) *Client_ResolveRevision_Call

type Client_TestRepo_Call

type Client_TestRepo_Call struct {
	*mock.Call
}

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

func (*Client_TestRepo_Call) Return

func (*Client_TestRepo_Call) Run

func (_c *Client_TestRepo_Call) Run(run func(ctx context.Context)) *Client_TestRepo_Call

func (*Client_TestRepo_Call) RunAndReturn

func (_c *Client_TestRepo_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *Client_TestRepo_Call

Jump to

Keyboard shortcuts

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