Documentation ¶
Index ¶
- type PrivRegistryProvider
- func (_m *PrivRegistryProvider) DeleteRegistry(ctx context.Context, id uuid.UUID) error
- func (_m *PrivRegistryProvider) EXPECT() *PrivRegistryProvider_Expecter
- func (_m *PrivRegistryProvider) FetchCreds(ctx context.Context, owner string, image string) (*privregistry.RegistryCreds, error)
- func (_m *PrivRegistryProvider) ListCredsByOwner(ctx context.Context, owner string, skipToken bool) ([]privregistry.RegistryCreds, error)
- func (_m *PrivRegistryProvider) StoreRegistry(ctx context.Context, owner string, url string, provider string, ...) error
- type PrivRegistryProvider_DeleteRegistry_Call
- func (_c *PrivRegistryProvider_DeleteRegistry_Call) Return(_a0 error) *PrivRegistryProvider_DeleteRegistry_Call
- func (_c *PrivRegistryProvider_DeleteRegistry_Call) Run(run func(ctx context.Context, id uuid.UUID)) *PrivRegistryProvider_DeleteRegistry_Call
- func (_c *PrivRegistryProvider_DeleteRegistry_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *PrivRegistryProvider_DeleteRegistry_Call
- type PrivRegistryProvider_Expecter
- func (_e *PrivRegistryProvider_Expecter) DeleteRegistry(ctx interface{}, id interface{}) *PrivRegistryProvider_DeleteRegistry_Call
- func (_e *PrivRegistryProvider_Expecter) FetchCreds(ctx interface{}, owner interface{}, image interface{}) *PrivRegistryProvider_FetchCreds_Call
- func (_e *PrivRegistryProvider_Expecter) ListCredsByOwner(ctx interface{}, owner interface{}, skipToken interface{}) *PrivRegistryProvider_ListCredsByOwner_Call
- func (_e *PrivRegistryProvider_Expecter) StoreRegistry(ctx interface{}, owner interface{}, url interface{}, provider interface{}, ...) *PrivRegistryProvider_StoreRegistry_Call
- type PrivRegistryProvider_FetchCreds_Call
- func (_c *PrivRegistryProvider_FetchCreds_Call) Return(_a0 *privregistry.RegistryCreds, _a1 error) *PrivRegistryProvider_FetchCreds_Call
- func (_c *PrivRegistryProvider_FetchCreds_Call) Run(run func(ctx context.Context, owner string, image string)) *PrivRegistryProvider_FetchCreds_Call
- func (_c *PrivRegistryProvider_FetchCreds_Call) RunAndReturn(run func(context.Context, string, string) (*privregistry.RegistryCreds, error)) *PrivRegistryProvider_FetchCreds_Call
- type PrivRegistryProvider_ListCredsByOwner_Call
- func (_c *PrivRegistryProvider_ListCredsByOwner_Call) Return(_a0 []privregistry.RegistryCreds, _a1 error) *PrivRegistryProvider_ListCredsByOwner_Call
- func (_c *PrivRegistryProvider_ListCredsByOwner_Call) Run(run func(ctx context.Context, owner string, skipToken bool)) *PrivRegistryProvider_ListCredsByOwner_Call
- func (_c *PrivRegistryProvider_ListCredsByOwner_Call) RunAndReturn(run func(context.Context, string, bool) ([]privregistry.RegistryCreds, error)) *PrivRegistryProvider_ListCredsByOwner_Call
- type PrivRegistryProvider_StoreRegistry_Call
- func (_c *PrivRegistryProvider_StoreRegistry_Call) Return(_a0 error) *PrivRegistryProvider_StoreRegistry_Call
- func (_c *PrivRegistryProvider_StoreRegistry_Call) Run(run func(ctx context.Context, owner string, url string, provider string, ...)) *PrivRegistryProvider_StoreRegistry_Call
- func (_c *PrivRegistryProvider_StoreRegistry_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *PrivRegistryProvider_StoreRegistry_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivRegistryProvider ¶
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 ¶
DeleteRegistry provides a mock function with given fields: ctx, id
func (*PrivRegistryProvider) EXPECT ¶
func (_m *PrivRegistryProvider) EXPECT() *PrivRegistryProvider_Expecter
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 ¶
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 (_c *PrivRegistryProvider_DeleteRegistry_Call) Return(_a0 error) *PrivRegistryProvider_DeleteRegistry_Call
func (*PrivRegistryProvider_DeleteRegistry_Call) Run ¶
func (_c *PrivRegistryProvider_DeleteRegistry_Call) Run(run func(ctx context.Context, id uuid.UUID)) *PrivRegistryProvider_DeleteRegistry_Call
func (*PrivRegistryProvider_DeleteRegistry_Call) RunAndReturn ¶
func (_c *PrivRegistryProvider_DeleteRegistry_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *PrivRegistryProvider_DeleteRegistry_Call
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 ¶
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 (_c *PrivRegistryProvider_FetchCreds_Call) Return(_a0 *privregistry.RegistryCreds, _a1 error) *PrivRegistryProvider_FetchCreds_Call
func (*PrivRegistryProvider_FetchCreds_Call) Run ¶
func (_c *PrivRegistryProvider_FetchCreds_Call) Run(run func(ctx context.Context, owner string, image string)) *PrivRegistryProvider_FetchCreds_Call
func (*PrivRegistryProvider_FetchCreds_Call) RunAndReturn ¶
func (_c *PrivRegistryProvider_FetchCreds_Call) RunAndReturn(run func(context.Context, string, string) (*privregistry.RegistryCreds, error)) *PrivRegistryProvider_FetchCreds_Call
type PrivRegistryProvider_ListCredsByOwner_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 (_c *PrivRegistryProvider_ListCredsByOwner_Call) Return(_a0 []privregistry.RegistryCreds, _a1 error) *PrivRegistryProvider_ListCredsByOwner_Call
func (*PrivRegistryProvider_ListCredsByOwner_Call) Run ¶
func (_c *PrivRegistryProvider_ListCredsByOwner_Call) Run(run func(ctx context.Context, owner string, skipToken bool)) *PrivRegistryProvider_ListCredsByOwner_Call
func (*PrivRegistryProvider_ListCredsByOwner_Call) RunAndReturn ¶
func (_c *PrivRegistryProvider_ListCredsByOwner_Call) RunAndReturn(run func(context.Context, string, bool) ([]privregistry.RegistryCreds, error)) *PrivRegistryProvider_ListCredsByOwner_Call
type PrivRegistryProvider_StoreRegistry_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 (_c *PrivRegistryProvider_StoreRegistry_Call) Return(_a0 error) *PrivRegistryProvider_StoreRegistry_Call
func (*PrivRegistryProvider_StoreRegistry_Call) Run ¶
func (_c *PrivRegistryProvider_StoreRegistry_Call) Run(run func(ctx context.Context, owner string, url string, provider string, credentials string)) *PrivRegistryProvider_StoreRegistry_Call
func (*PrivRegistryProvider_StoreRegistry_Call) RunAndReturn ¶
func (_c *PrivRegistryProvider_StoreRegistry_Call) RunAndReturn(run func(context.Context, string, string, string, string) error) *PrivRegistryProvider_StoreRegistry_Call