storage

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 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 Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

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

func (_m *Storage) DeleteManifest(ctx context.Context, repo string, reference string) error

DeleteManifest provides a mock function with given fields: ctx, repo, reference

func (*Storage) EXPECT

func (_m *Storage) EXPECT() *Storage_Expecter

func (*Storage) ListRepositories

func (_m *Storage) ListRepositories(ctx context.Context) ([]string, error)

ListRepositories provides a mock function with given fields: ctx

func (*Storage) ListTags

func (_m *Storage) ListTags(ctx context.Context, repo string) ([]string, error)

ListTags provides a mock function with given fields: ctx, repo

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

func (_m *Storage) PerformGC(ctx context.Context, dryRun bool, removeUntagged bool) error

PerformGC provides a mock function with given fields: ctx, dryRun, removeUntagged

func (*Storage) PerformPurgeUploads

func (_m *Storage) PerformPurgeUploads(ctx context.Context, dryRun bool) error

PerformPurgeUploads provides a mock function with given fields: ctx, dryRun

func (*Storage) PullBlob

func (_m *Storage) PullBlob(ctx context.Context, repo string, digest string) (io.ReadCloser, error)

PullBlob provides a mock function with given fields: ctx, repo, digest

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

func (*Storage) StatBlob

func (_m *Storage) StatBlob(ctx context.Context, repo string, digest string) (bool, error)

StatBlob provides a mock function with given fields: ctx, repo, digest

func (*Storage) StatManifest

func (_m *Storage) StatManifest(ctx context.Context, repo string, digest string) (bool, error)

StatManifest provides a mock function with given fields: ctx, repo, digest

type Storage_DeleteManifest_Call

type Storage_DeleteManifest_Call struct {
	*mock.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 (*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

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

type Storage_ListRepositories_Call struct {
	*mock.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 (*Storage_ListRepositories_Call) Run

func (*Storage_ListRepositories_Call) RunAndReturn

type Storage_ListTags_Call

type Storage_ListTags_Call struct {
	*mock.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

type Storage_MountBlob_Call struct {
	*mock.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 (*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

type Storage_PerformGC_Call

type Storage_PerformGC_Call struct {
	*mock.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 (*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

type Storage_PerformPurgeUploads_Call

type Storage_PerformPurgeUploads_Call struct {
	*mock.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 (*Storage_PerformPurgeUploads_Call) Run

func (*Storage_PerformPurgeUploads_Call) RunAndReturn

type Storage_PullBlob_Call

type Storage_PullBlob_Call struct {
	*mock.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 (*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

type Storage_PullManifest_Call

type Storage_PullManifest_Call struct {
	*mock.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 (*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

type Storage_PushBlob_Call

type Storage_PushBlob_Call struct {
	*mock.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

type Storage_PushManifest_Call

type Storage_PushManifest_Call struct {
	*mock.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 (*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

type Storage_StatBlob_Call

type Storage_StatBlob_Call struct {
	*mock.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

type Storage_StatManifest_Call

type Storage_StatManifest_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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