mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.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 PrivRegistryProvider

type PrivRegistryProvider struct {
	mock.Mock
}

PrivRegistryProvider is an autogenerated mock type for the PrivRegistryProvider type

func NewPrivRegistryProvider

func NewPrivRegistryProvider(t mockConstructorTestingTNewPrivRegistryProvider) *PrivRegistryProvider

NewPrivRegistryProvider creates a new instance of PrivRegistryProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PrivRegistryProvider) DeleteRegistry

func (_m *PrivRegistryProvider) DeleteRegistry(ctx context.Context, id uuid.UUID) error

DeleteRegistry provides a mock function with given fields: ctx, id

func (*PrivRegistryProvider) EXPECT

func (*PrivRegistryProvider) FetchCreds

func (_m *PrivRegistryProvider) FetchCreds(ctx context.Context, owner string, image string) (*privregistry.RegistryCreds, error)

FetchCreds provides a mock function with given fields: ctx, owner, image

func (*PrivRegistryProvider) ListCredsByOwner

func (_m *PrivRegistryProvider) ListCredsByOwner(ctx context.Context, owner string, skipToken bool) ([]privregistry.RegistryCreds, error)

ListCredsByOwner provides a mock function with given fields: ctx, owner, skipToken

func (*PrivRegistryProvider) StoreRegistry

func (_m *PrivRegistryProvider) StoreRegistry(ctx context.Context, owner string, url string, provider string, credentials string) error

StoreRegistry provides a mock function with given fields: ctx, owner, url, provider, credentials

type PrivRegistryProvider_DeleteRegistry_Call

type PrivRegistryProvider_DeleteRegistry_Call struct {
	*mock.Call
}

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

func (*PrivRegistryProvider_DeleteRegistry_Call) Return

func (*PrivRegistryProvider_DeleteRegistry_Call) Run

func (*PrivRegistryProvider_DeleteRegistry_Call) RunAndReturn

type PrivRegistryProvider_Expecter

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

func (*PrivRegistryProvider_Expecter) DeleteRegistry

func (_e *PrivRegistryProvider_Expecter) DeleteRegistry(ctx interface{}, id interface{}) *PrivRegistryProvider_DeleteRegistry_Call

DeleteRegistry is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*PrivRegistryProvider_Expecter) FetchCreds

func (_e *PrivRegistryProvider_Expecter) FetchCreds(ctx interface{}, owner interface{}, image interface{}) *PrivRegistryProvider_FetchCreds_Call

FetchCreds is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • image string

func (*PrivRegistryProvider_Expecter) ListCredsByOwner

func (_e *PrivRegistryProvider_Expecter) ListCredsByOwner(ctx interface{}, owner interface{}, skipToken interface{}) *PrivRegistryProvider_ListCredsByOwner_Call

ListCredsByOwner is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • skipToken bool

func (*PrivRegistryProvider_Expecter) StoreRegistry

func (_e *PrivRegistryProvider_Expecter) StoreRegistry(ctx interface{}, owner interface{}, url interface{}, provider interface{}, credentials interface{}) *PrivRegistryProvider_StoreRegistry_Call

StoreRegistry is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • url string
  • provider string
  • credentials string

type PrivRegistryProvider_FetchCreds_Call

type PrivRegistryProvider_FetchCreds_Call struct {
	*mock.Call
}

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

func (*PrivRegistryProvider_FetchCreds_Call) Return

func (*PrivRegistryProvider_FetchCreds_Call) Run

func (*PrivRegistryProvider_FetchCreds_Call) RunAndReturn

type PrivRegistryProvider_ListCredsByOwner_Call

type PrivRegistryProvider_ListCredsByOwner_Call struct {
	*mock.Call
}

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

func (*PrivRegistryProvider_ListCredsByOwner_Call) Return

func (*PrivRegistryProvider_ListCredsByOwner_Call) Run

func (*PrivRegistryProvider_ListCredsByOwner_Call) RunAndReturn

type PrivRegistryProvider_StoreRegistry_Call

type PrivRegistryProvider_StoreRegistry_Call struct {
	*mock.Call
}

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

func (*PrivRegistryProvider_StoreRegistry_Call) Return

func (*PrivRegistryProvider_StoreRegistry_Call) Run

func (*PrivRegistryProvider_StoreRegistry_Call) RunAndReturn

Jump to

Keyboard shortcuts

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