mock

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
}

func New

func New() *Mock

func (*Mock) CountStats added in v0.0.5

func (m *Mock) CountStats(ctx context.Context) (*emodels.Stats, error)

func (*Mock) CreateBLOB

func (m *Mock) CreateBLOB(_ context.Context, checksum string, size uint64, mimeType string) error

func (*Mock) CreateContainer

func (m *Mock) CreateContainer(_ context.Context, name string) error

func (*Mock) CreateObject

func (m *Mock) CreateObject(_ context.Context, container, version, key, casKey string) error

func (*Mock) CreateVersion

func (m *Mock) CreateVersion(_ context.Context, container string) (string, error)

func (*Mock) DeleteContainer

func (m *Mock) DeleteContainer(_ context.Context, name string) error

func (*Mock) DeleteObject

func (m *Mock) DeleteObject(_ context.Context, container, version string, key ...string) error

func (*Mock) DeleteVersion added in v0.0.5

func (m *Mock) DeleteVersion(ctx context.Context, container, version string) error

func (*Mock) EnsureBlobKey

func (m *Mock) EnsureBlobKey(_ context.Context, key string, size uint64) error

func (*Mock) GetBlobKeyByObject

func (m *Mock) GetBlobKeyByObject(_ context.Context, container, version, key string) (string, error)

func (*Mock) GetLatestPublishedVersionByContainer added in v0.0.5

func (m *Mock) GetLatestPublishedVersionByContainer(_ context.Context, container string) (string, error)

func (*Mock) ListAllVersionsByContainer

func (m *Mock) ListAllVersionsByContainer(_ context.Context, container string) ([]models.Version, error)

func (*Mock) ListContainers

func (m *Mock) ListContainers(context.Context) ([]string, error)

func (*Mock) ListObjects

func (m *Mock) ListObjects(_ context.Context, container, version string, offset, limit uint64) (uint64, []string, error)

func (*Mock) ListPublishedVersionsByContainer

func (m *Mock) ListPublishedVersionsByContainer(_ context.Context, container string) ([]models.Version, error)

func (*Mock) ListPublishedVersionsByContainerAndPage added in v0.0.4

func (m *Mock) ListPublishedVersionsByContainerAndPage(_ context.Context, container string, offset, limit uint64) (uint64, []models.Version, error)

func (*Mock) ListUnpublishedVersionsByContainer added in v0.0.5

func (m *Mock) ListUnpublishedVersionsByContainer(_ context.Context, container string) ([]models.Version, error)

func (*Mock) MarkVersionPublished

func (m *Mock) MarkVersionPublished(_ context.Context, container, version string) error

func (*Mock) RemapObject

func (m *Mock) RemapObject(_ context.Context, container, version, key, newCASKey string) error

Jump to

Keyboard shortcuts

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