Documentation
¶
Index ¶
- type Storage
- func (_m *Storage) DeleteManifest(ctx context.Context, repo string, reference string) error
- func (_m *Storage) EXPECT() *Storage_Expecter
- func (_m *Storage) ListRepositories(ctx context.Context) ([]string, error)
- func (_m *Storage) ListTags(ctx context.Context, repo string) ([]string, error)
- func (_m *Storage) MountBlob(ctx context.Context, fromRepo string, toRepo string, desc v1.Descriptor) error
- func (_m *Storage) PerformGC(ctx context.Context, dryRun bool, removeUntagged bool) error
- func (_m *Storage) PerformPurgeUploads(ctx context.Context, dryRun bool) error
- func (_m *Storage) PullBlob(ctx context.Context, repo string, digest string) (io.ReadCloser, error)
- func (_m *Storage) PullManifest(ctx context.Context, repo string, reference string) ([]byte, string, error)
- func (_m *Storage) PushBlob(ctx context.Context, repo string, body io.Reader, desc v1.Descriptor) (string, int64, error)
- func (_m *Storage) PushManifest(ctx context.Context, repo string, reference string, body []byte) (string, error)
- func (_m *Storage) StatBlob(ctx context.Context, repo string, digest string) (bool, error)
- func (_m *Storage) StatManifest(ctx context.Context, repo string, digest string) (bool, error)
- type Storage_DeleteManifest_Call
- func (_c *Storage_DeleteManifest_Call) Return(_a0 error) *Storage_DeleteManifest_Call
- func (_c *Storage_DeleteManifest_Call) Run(run func(ctx context.Context, repo string, reference string)) *Storage_DeleteManifest_Call
- func (_c *Storage_DeleteManifest_Call) RunAndReturn(run func(context.Context, string, string) error) *Storage_DeleteManifest_Call
- type Storage_Expecter
- func (_e *Storage_Expecter) DeleteManifest(ctx interface{}, repo interface{}, reference interface{}) *Storage_DeleteManifest_Call
- func (_e *Storage_Expecter) ListRepositories(ctx interface{}) *Storage_ListRepositories_Call
- func (_e *Storage_Expecter) ListTags(ctx interface{}, repo interface{}) *Storage_ListTags_Call
- func (_e *Storage_Expecter) MountBlob(ctx interface{}, fromRepo interface{}, toRepo interface{}, desc interface{}) *Storage_MountBlob_Call
- func (_e *Storage_Expecter) PerformGC(ctx interface{}, dryRun interface{}, removeUntagged interface{}) *Storage_PerformGC_Call
- func (_e *Storage_Expecter) PerformPurgeUploads(ctx interface{}, dryRun interface{}) *Storage_PerformPurgeUploads_Call
- func (_e *Storage_Expecter) PullBlob(ctx interface{}, repo interface{}, digest interface{}) *Storage_PullBlob_Call
- func (_e *Storage_Expecter) PullManifest(ctx interface{}, repo interface{}, reference interface{}) *Storage_PullManifest_Call
- func (_e *Storage_Expecter) PushBlob(ctx interface{}, repo interface{}, body interface{}, desc interface{}) *Storage_PushBlob_Call
- func (_e *Storage_Expecter) PushManifest(ctx interface{}, repo interface{}, reference interface{}, body interface{}) *Storage_PushManifest_Call
- func (_e *Storage_Expecter) StatBlob(ctx interface{}, repo interface{}, digest interface{}) *Storage_StatBlob_Call
- func (_e *Storage_Expecter) StatManifest(ctx interface{}, repo interface{}, digest interface{}) *Storage_StatManifest_Call
- type Storage_ListRepositories_Call
- func (_c *Storage_ListRepositories_Call) Return(_a0 []string, _a1 error) *Storage_ListRepositories_Call
- func (_c *Storage_ListRepositories_Call) Run(run func(ctx context.Context)) *Storage_ListRepositories_Call
- func (_c *Storage_ListRepositories_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Storage_ListRepositories_Call
- type Storage_ListTags_Call
- func (_c *Storage_ListTags_Call) Return(_a0 []string, _a1 error) *Storage_ListTags_Call
- func (_c *Storage_ListTags_Call) Run(run func(ctx context.Context, repo string)) *Storage_ListTags_Call
- func (_c *Storage_ListTags_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *Storage_ListTags_Call
- type Storage_MountBlob_Call
- type Storage_PerformGC_Call
- func (_c *Storage_PerformGC_Call) Return(_a0 error) *Storage_PerformGC_Call
- func (_c *Storage_PerformGC_Call) Run(run func(ctx context.Context, dryRun bool, removeUntagged bool)) *Storage_PerformGC_Call
- func (_c *Storage_PerformGC_Call) RunAndReturn(run func(context.Context, bool, bool) error) *Storage_PerformGC_Call
- type Storage_PerformPurgeUploads_Call
- func (_c *Storage_PerformPurgeUploads_Call) Return(_a0 error) *Storage_PerformPurgeUploads_Call
- func (_c *Storage_PerformPurgeUploads_Call) Run(run func(ctx context.Context, dryRun bool)) *Storage_PerformPurgeUploads_Call
- func (_c *Storage_PerformPurgeUploads_Call) RunAndReturn(run func(context.Context, bool) error) *Storage_PerformPurgeUploads_Call
- type Storage_PullBlob_Call
- func (_c *Storage_PullBlob_Call) Return(_a0 io.ReadCloser, _a1 error) *Storage_PullBlob_Call
- func (_c *Storage_PullBlob_Call) Run(run func(ctx context.Context, repo string, digest string)) *Storage_PullBlob_Call
- func (_c *Storage_PullBlob_Call) RunAndReturn(run func(context.Context, string, string) (io.ReadCloser, error)) *Storage_PullBlob_Call
- type Storage_PullManifest_Call
- func (_c *Storage_PullManifest_Call) Return(_a0 []byte, _a1 string, _a2 error) *Storage_PullManifest_Call
- func (_c *Storage_PullManifest_Call) Run(run func(ctx context.Context, repo string, reference string)) *Storage_PullManifest_Call
- func (_c *Storage_PullManifest_Call) RunAndReturn(run func(context.Context, string, string) ([]byte, string, error)) *Storage_PullManifest_Call
- type Storage_PushBlob_Call
- func (_c *Storage_PushBlob_Call) Return(_a0 string, _a1 int64, _a2 error) *Storage_PushBlob_Call
- func (_c *Storage_PushBlob_Call) Run(run func(ctx context.Context, repo string, body io.Reader, desc v1.Descriptor)) *Storage_PushBlob_Call
- func (_c *Storage_PushBlob_Call) RunAndReturn(...) *Storage_PushBlob_Call
- type Storage_PushManifest_Call
- func (_c *Storage_PushManifest_Call) Return(_a0 string, _a1 error) *Storage_PushManifest_Call
- func (_c *Storage_PushManifest_Call) Run(run func(ctx context.Context, repo string, reference string, body []byte)) *Storage_PushManifest_Call
- func (_c *Storage_PushManifest_Call) RunAndReturn(run func(context.Context, string, string, []byte) (string, error)) *Storage_PushManifest_Call
- type Storage_StatBlob_Call
- func (_c *Storage_StatBlob_Call) Return(_a0 bool, _a1 error) *Storage_StatBlob_Call
- func (_c *Storage_StatBlob_Call) Run(run func(ctx context.Context, repo string, digest string)) *Storage_StatBlob_Call
- func (_c *Storage_StatBlob_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *Storage_StatBlob_Call
- type Storage_StatManifest_Call
- func (_c *Storage_StatManifest_Call) Return(_a0 bool, _a1 error) *Storage_StatManifest_Call
- func (_c *Storage_StatManifest_Call) Run(run func(ctx context.Context, repo string, digest string)) *Storage_StatManifest_Call
- func (_c *Storage_StatManifest_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *Storage_StatManifest_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. 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 (*Storage) DeleteManifest ¶
DeleteManifest provides a mock function with given fields: ctx, repo, reference
func (*Storage) EXPECT ¶
func (_m *Storage) EXPECT() *Storage_Expecter
func (*Storage) ListRepositories ¶
ListRepositories provides a mock function with given fields: ctx
func (*Storage) MountBlob ¶
func (_m *Storage) MountBlob(ctx context.Context, fromRepo string, toRepo string, desc v1.Descriptor) error
MountBlob provides a mock function with given fields: ctx, fromRepo, toRepo, desc
func (*Storage) PerformGC ¶
PerformGC provides a mock function with given fields: ctx, dryRun, removeUntagged
func (*Storage) PerformPurgeUploads ¶
PerformPurgeUploads provides a mock function with given fields: ctx, dryRun
func (*Storage) PullManifest ¶
func (_m *Storage) PullManifest(ctx context.Context, repo string, reference string) ([]byte, string, error)
PullManifest provides a mock function with given fields: ctx, repo, reference
func (*Storage) PushBlob ¶
func (_m *Storage) PushBlob(ctx context.Context, repo string, body io.Reader, desc v1.Descriptor) (string, int64, error)
PushBlob provides a mock function with given fields: ctx, repo, body, desc
func (*Storage) PushManifest ¶
func (_m *Storage) PushManifest(ctx context.Context, repo string, reference string, body []byte) (string, error)
PushManifest provides a mock function with given fields: ctx, repo, reference, body
type Storage_DeleteManifest_Call ¶
Storage_DeleteManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteManifest'
func (*Storage_DeleteManifest_Call) Return ¶
func (_c *Storage_DeleteManifest_Call) Return(_a0 error) *Storage_DeleteManifest_Call
func (*Storage_DeleteManifest_Call) Run ¶
func (_c *Storage_DeleteManifest_Call) Run(run func(ctx context.Context, repo string, reference string)) *Storage_DeleteManifest_Call
func (*Storage_DeleteManifest_Call) RunAndReturn ¶
func (_c *Storage_DeleteManifest_Call) RunAndReturn(run func(context.Context, string, string) error) *Storage_DeleteManifest_Call
type Storage_Expecter ¶
type Storage_Expecter struct {
// contains filtered or unexported fields
}
func (*Storage_Expecter) DeleteManifest ¶
func (_e *Storage_Expecter) DeleteManifest(ctx interface{}, repo interface{}, reference interface{}) *Storage_DeleteManifest_Call
DeleteManifest is a helper method to define mock.On call
- ctx context.Context
- repo string
- reference string
func (*Storage_Expecter) ListRepositories ¶
func (_e *Storage_Expecter) ListRepositories(ctx interface{}) *Storage_ListRepositories_Call
ListRepositories is a helper method to define mock.On call
- ctx context.Context
func (*Storage_Expecter) ListTags ¶
func (_e *Storage_Expecter) ListTags(ctx interface{}, repo interface{}) *Storage_ListTags_Call
ListTags is a helper method to define mock.On call
- ctx context.Context
- repo string
func (*Storage_Expecter) MountBlob ¶
func (_e *Storage_Expecter) MountBlob(ctx interface{}, fromRepo interface{}, toRepo interface{}, desc interface{}) *Storage_MountBlob_Call
MountBlob is a helper method to define mock.On call
- ctx context.Context
- fromRepo string
- toRepo string
- desc v1.Descriptor
func (*Storage_Expecter) PerformGC ¶
func (_e *Storage_Expecter) PerformGC(ctx interface{}, dryRun interface{}, removeUntagged interface{}) *Storage_PerformGC_Call
PerformGC is a helper method to define mock.On call
- ctx context.Context
- dryRun bool
- removeUntagged bool
func (*Storage_Expecter) PerformPurgeUploads ¶
func (_e *Storage_Expecter) PerformPurgeUploads(ctx interface{}, dryRun interface{}) *Storage_PerformPurgeUploads_Call
PerformPurgeUploads is a helper method to define mock.On call
- ctx context.Context
- dryRun bool
func (*Storage_Expecter) PullBlob ¶
func (_e *Storage_Expecter) PullBlob(ctx interface{}, repo interface{}, digest interface{}) *Storage_PullBlob_Call
PullBlob is a helper method to define mock.On call
- ctx context.Context
- repo string
- digest string
func (*Storage_Expecter) PullManifest ¶
func (_e *Storage_Expecter) PullManifest(ctx interface{}, repo interface{}, reference interface{}) *Storage_PullManifest_Call
PullManifest is a helper method to define mock.On call
- ctx context.Context
- repo string
- reference string
func (*Storage_Expecter) PushBlob ¶
func (_e *Storage_Expecter) PushBlob(ctx interface{}, repo interface{}, body interface{}, desc interface{}) *Storage_PushBlob_Call
PushBlob is a helper method to define mock.On call
- ctx context.Context
- repo string
- body io.Reader
- desc v1.Descriptor
func (*Storage_Expecter) PushManifest ¶
func (_e *Storage_Expecter) PushManifest(ctx interface{}, repo interface{}, reference interface{}, body interface{}) *Storage_PushManifest_Call
PushManifest is a helper method to define mock.On call
- ctx context.Context
- repo string
- reference string
- body []byte
func (*Storage_Expecter) StatBlob ¶
func (_e *Storage_Expecter) StatBlob(ctx interface{}, repo interface{}, digest interface{}) *Storage_StatBlob_Call
StatBlob is a helper method to define mock.On call
- ctx context.Context
- repo string
- digest string
func (*Storage_Expecter) StatManifest ¶
func (_e *Storage_Expecter) StatManifest(ctx interface{}, repo interface{}, digest interface{}) *Storage_StatManifest_Call
StatManifest is a helper method to define mock.On call
- ctx context.Context
- repo string
- digest string
type Storage_ListRepositories_Call ¶
Storage_ListRepositories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListRepositories'
func (*Storage_ListRepositories_Call) Return ¶
func (_c *Storage_ListRepositories_Call) Return(_a0 []string, _a1 error) *Storage_ListRepositories_Call
func (*Storage_ListRepositories_Call) Run ¶
func (_c *Storage_ListRepositories_Call) Run(run func(ctx context.Context)) *Storage_ListRepositories_Call
func (*Storage_ListRepositories_Call) RunAndReturn ¶
func (_c *Storage_ListRepositories_Call) RunAndReturn(run func(context.Context) ([]string, error)) *Storage_ListRepositories_Call
type Storage_ListTags_Call ¶
Storage_ListTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTags'
func (*Storage_ListTags_Call) Return ¶
func (_c *Storage_ListTags_Call) Return(_a0 []string, _a1 error) *Storage_ListTags_Call
func (*Storage_ListTags_Call) Run ¶
func (_c *Storage_ListTags_Call) Run(run func(ctx context.Context, repo string)) *Storage_ListTags_Call
func (*Storage_ListTags_Call) RunAndReturn ¶
func (_c *Storage_ListTags_Call) RunAndReturn(run func(context.Context, string) ([]string, error)) *Storage_ListTags_Call
type Storage_MountBlob_Call ¶
Storage_MountBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MountBlob'
func (*Storage_MountBlob_Call) Return ¶
func (_c *Storage_MountBlob_Call) Return(_a0 error) *Storage_MountBlob_Call
func (*Storage_MountBlob_Call) Run ¶
func (_c *Storage_MountBlob_Call) Run(run func(ctx context.Context, fromRepo string, toRepo string, desc v1.Descriptor)) *Storage_MountBlob_Call
func (*Storage_MountBlob_Call) RunAndReturn ¶
func (_c *Storage_MountBlob_Call) RunAndReturn(run func(context.Context, string, string, v1.Descriptor) error) *Storage_MountBlob_Call
type Storage_PerformGC_Call ¶
Storage_PerformGC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PerformGC'
func (*Storage_PerformGC_Call) Return ¶
func (_c *Storage_PerformGC_Call) Return(_a0 error) *Storage_PerformGC_Call
func (*Storage_PerformGC_Call) Run ¶
func (_c *Storage_PerformGC_Call) Run(run func(ctx context.Context, dryRun bool, removeUntagged bool)) *Storage_PerformGC_Call
func (*Storage_PerformGC_Call) RunAndReturn ¶
func (_c *Storage_PerformGC_Call) RunAndReturn(run func(context.Context, bool, bool) error) *Storage_PerformGC_Call
type Storage_PerformPurgeUploads_Call ¶
Storage_PerformPurgeUploads_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PerformPurgeUploads'
func (*Storage_PerformPurgeUploads_Call) Return ¶
func (_c *Storage_PerformPurgeUploads_Call) Return(_a0 error) *Storage_PerformPurgeUploads_Call
func (*Storage_PerformPurgeUploads_Call) Run ¶
func (_c *Storage_PerformPurgeUploads_Call) Run(run func(ctx context.Context, dryRun bool)) *Storage_PerformPurgeUploads_Call
func (*Storage_PerformPurgeUploads_Call) RunAndReturn ¶
func (_c *Storage_PerformPurgeUploads_Call) RunAndReturn(run func(context.Context, bool) error) *Storage_PerformPurgeUploads_Call
type Storage_PullBlob_Call ¶
Storage_PullBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullBlob'
func (*Storage_PullBlob_Call) Return ¶
func (_c *Storage_PullBlob_Call) Return(_a0 io.ReadCloser, _a1 error) *Storage_PullBlob_Call
func (*Storage_PullBlob_Call) Run ¶
func (_c *Storage_PullBlob_Call) Run(run func(ctx context.Context, repo string, digest string)) *Storage_PullBlob_Call
func (*Storage_PullBlob_Call) RunAndReturn ¶
func (_c *Storage_PullBlob_Call) RunAndReturn(run func(context.Context, string, string) (io.ReadCloser, error)) *Storage_PullBlob_Call
type Storage_PullManifest_Call ¶
Storage_PullManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullManifest'
func (*Storage_PullManifest_Call) Return ¶
func (_c *Storage_PullManifest_Call) Return(_a0 []byte, _a1 string, _a2 error) *Storage_PullManifest_Call
func (*Storage_PullManifest_Call) Run ¶
func (_c *Storage_PullManifest_Call) Run(run func(ctx context.Context, repo string, reference string)) *Storage_PullManifest_Call
func (*Storage_PullManifest_Call) RunAndReturn ¶
func (_c *Storage_PullManifest_Call) RunAndReturn(run func(context.Context, string, string) ([]byte, string, error)) *Storage_PullManifest_Call
type Storage_PushBlob_Call ¶
Storage_PushBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushBlob'
func (*Storage_PushBlob_Call) Return ¶
func (_c *Storage_PushBlob_Call) Return(_a0 string, _a1 int64, _a2 error) *Storage_PushBlob_Call
func (*Storage_PushBlob_Call) Run ¶
func (_c *Storage_PushBlob_Call) Run(run func(ctx context.Context, repo string, body io.Reader, desc v1.Descriptor)) *Storage_PushBlob_Call
func (*Storage_PushBlob_Call) RunAndReturn ¶
func (_c *Storage_PushBlob_Call) RunAndReturn(run func(context.Context, string, io.Reader, v1.Descriptor) (string, int64, error)) *Storage_PushBlob_Call
type Storage_PushManifest_Call ¶
Storage_PushManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushManifest'
func (*Storage_PushManifest_Call) Return ¶
func (_c *Storage_PushManifest_Call) Return(_a0 string, _a1 error) *Storage_PushManifest_Call
func (*Storage_PushManifest_Call) Run ¶
func (_c *Storage_PushManifest_Call) Run(run func(ctx context.Context, repo string, reference string, body []byte)) *Storage_PushManifest_Call
func (*Storage_PushManifest_Call) RunAndReturn ¶
func (_c *Storage_PushManifest_Call) RunAndReturn(run func(context.Context, string, string, []byte) (string, error)) *Storage_PushManifest_Call
type Storage_StatBlob_Call ¶
Storage_StatBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatBlob'
func (*Storage_StatBlob_Call) Return ¶
func (_c *Storage_StatBlob_Call) Return(_a0 bool, _a1 error) *Storage_StatBlob_Call
func (*Storage_StatBlob_Call) Run ¶
func (_c *Storage_StatBlob_Call) Run(run func(ctx context.Context, repo string, digest string)) *Storage_StatBlob_Call
func (*Storage_StatBlob_Call) RunAndReturn ¶
func (_c *Storage_StatBlob_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *Storage_StatBlob_Call
type Storage_StatManifest_Call ¶
Storage_StatManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatManifest'
func (*Storage_StatManifest_Call) Return ¶
func (_c *Storage_StatManifest_Call) Return(_a0 bool, _a1 error) *Storage_StatManifest_Call
func (*Storage_StatManifest_Call) Run ¶
func (_c *Storage_StatManifest_Call) Run(run func(ctx context.Context, repo string, digest string)) *Storage_StatManifest_Call
func (*Storage_StatManifest_Call) RunAndReturn ¶
func (_c *Storage_StatManifest_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *Storage_StatManifest_Call