mocks

package
v1.11.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectRepository

type DirectRepository struct {
	mock.Mock
}

DirectRepository is an autogenerated mock type for the DirectRepository type

func NewDirectRepository

func NewDirectRepository(t mockConstructorTestingTNewDirectRepository) *DirectRepository

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

func (*DirectRepository) AlsoLogToContentLog

func (_m *DirectRepository) AlsoLogToContentLog(ctx context.Context) context.Context

AlsoLogToContentLog provides a mock function with given fields: ctx

func (*DirectRepository) BlobCfg

func (_m *DirectRepository) BlobCfg() content.BlobCfgBlob

BlobCfg provides a mock function with given fields:

func (*DirectRepository) BlobReader

func (_m *DirectRepository) BlobReader() blob.Reader

BlobReader provides a mock function with given fields:

func (*DirectRepository) BlobVolume

func (_m *DirectRepository) BlobVolume() blob.Volume

BlobVolume provides a mock function with given fields:

func (*DirectRepository) ClientOptions

func (_m *DirectRepository) ClientOptions() repo.ClientOptions

ClientOptions provides a mock function with given fields:

func (*DirectRepository) Close

func (_m *DirectRepository) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*DirectRepository) ConfigFilename

func (_m *DirectRepository) ConfigFilename() string

ConfigFilename provides a mock function with given fields:

func (*DirectRepository) ContentInfo

func (_m *DirectRepository) ContentInfo(ctx context.Context, contentID index.ID) (index.Info, error)

ContentInfo provides a mock function with given fields: ctx, contentID

func (*DirectRepository) ContentReader

func (_m *DirectRepository) ContentReader() content.Reader

ContentReader provides a mock function with given fields:

func (*DirectRepository) Crypter

func (_m *DirectRepository) Crypter() *content.Crypter

Crypter provides a mock function with given fields:

func (*DirectRepository) DeriveKey

func (_m *DirectRepository) DeriveKey(purpose []byte, keyLength int) []byte

DeriveKey provides a mock function with given fields: purpose, keyLength

func (*DirectRepository) DisableIndexRefresh

func (_m *DirectRepository) DisableIndexRefresh()

DisableIndexRefresh provides a mock function with given fields:

func (*DirectRepository) FindManifests

func (_m *DirectRepository) FindManifests(ctx context.Context, labels map[string]string) ([]*manifest.EntryMetadata, error)

FindManifests provides a mock function with given fields: ctx, labels

func (*DirectRepository) GetManifest

func (_m *DirectRepository) GetManifest(ctx context.Context, id manifest.ID, data interface{}) (*manifest.EntryMetadata, error)

GetManifest provides a mock function with given fields: ctx, id, data

func (*DirectRepository) IndexBlobs

func (_m *DirectRepository) IndexBlobs(ctx context.Context, includeInactive bool) ([]content.IndexBlobInfo, error)

IndexBlobs provides a mock function with given fields: ctx, includeInactive

func (*DirectRepository) NewDirectWriter

NewDirectWriter provides a mock function with given fields: ctx, opt

func (*DirectRepository) NewWriter

NewWriter provides a mock function with given fields: ctx, opt

func (*DirectRepository) ObjectFormat

func (_m *DirectRepository) ObjectFormat() object.Format

ObjectFormat provides a mock function with given fields:

func (*DirectRepository) OpenObject

func (_m *DirectRepository) OpenObject(ctx context.Context, id object.ID) (object.Reader, error)

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

func (*DirectRepository) PrefetchContents

func (_m *DirectRepository) PrefetchContents(ctx context.Context, contentIDs []index.ID, hint string) []index.ID

PrefetchContents provides a mock function with given fields: ctx, contentIDs, hint

func (*DirectRepository) PrefetchObjects

func (_m *DirectRepository) PrefetchObjects(ctx context.Context, objectIDs []object.ID, hint string) ([]index.ID, error)

PrefetchObjects provides a mock function with given fields: ctx, objectIDs, hint

func (*DirectRepository) Refresh

func (_m *DirectRepository) Refresh(ctx context.Context) error

Refresh provides a mock function with given fields: ctx

func (*DirectRepository) Throttler

Throttler provides a mock function with given fields:

func (*DirectRepository) Time

func (_m *DirectRepository) Time() time.Time

Time provides a mock function with given fields:

func (*DirectRepository) Token

func (_m *DirectRepository) Token(password string) (string, error)

Token provides a mock function with given fields: password

func (*DirectRepository) UniqueID

func (_m *DirectRepository) UniqueID() []byte

UniqueID provides a mock function with given fields:

func (*DirectRepository) UpdateDescription

func (_m *DirectRepository) UpdateDescription(d string)

UpdateDescription provides a mock function with given fields: d

func (*DirectRepository) VerifyObject

func (_m *DirectRepository) VerifyObject(ctx context.Context, id object.ID) ([]index.ID, error)

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

type DirectRepositoryWriter

type DirectRepositoryWriter struct {
	mock.Mock
}

DirectRepositoryWriter is an autogenerated mock type for the DirectRepositoryWriter type

func NewDirectRepositoryWriter

func NewDirectRepositoryWriter(t mockConstructorTestingTNewDirectRepositoryWriter) *DirectRepositoryWriter

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

func (*DirectRepositoryWriter) AlsoLogToContentLog

func (_m *DirectRepositoryWriter) AlsoLogToContentLog(ctx context.Context) context.Context

AlsoLogToContentLog provides a mock function with given fields: ctx

func (*DirectRepositoryWriter) BlobCfg

BlobCfg provides a mock function with given fields:

func (*DirectRepositoryWriter) BlobReader

func (_m *DirectRepositoryWriter) BlobReader() blob.Reader

BlobReader provides a mock function with given fields:

func (*DirectRepositoryWriter) BlobStorage

func (_m *DirectRepositoryWriter) BlobStorage() blob.Storage

BlobStorage provides a mock function with given fields:

func (*DirectRepositoryWriter) BlobVolume

func (_m *DirectRepositoryWriter) BlobVolume() blob.Volume

BlobVolume provides a mock function with given fields:

func (*DirectRepositoryWriter) ChangePassword

func (_m *DirectRepositoryWriter) ChangePassword(ctx context.Context, newPassword string) error

ChangePassword provides a mock function with given fields: ctx, newPassword

func (*DirectRepositoryWriter) ClientOptions

func (_m *DirectRepositoryWriter) ClientOptions() repo.ClientOptions

ClientOptions provides a mock function with given fields:

func (*DirectRepositoryWriter) Close

Close provides a mock function with given fields: ctx

func (*DirectRepositoryWriter) CommitUpgrade

func (_m *DirectRepositoryWriter) CommitUpgrade(ctx context.Context) error

CommitUpgrade provides a mock function with given fields: ctx

func (*DirectRepositoryWriter) ConfigFilename

func (_m *DirectRepositoryWriter) ConfigFilename() string

ConfigFilename provides a mock function with given fields:

func (*DirectRepositoryWriter) ContentInfo

func (_m *DirectRepositoryWriter) ContentInfo(ctx context.Context, contentID index.ID) (index.Info, error)

ContentInfo provides a mock function with given fields: ctx, contentID

func (*DirectRepositoryWriter) ContentManager

func (_m *DirectRepositoryWriter) ContentManager() *content.WriteManager

ContentManager provides a mock function with given fields:

func (*DirectRepositoryWriter) ContentReader

func (_m *DirectRepositoryWriter) ContentReader() content.Reader

ContentReader provides a mock function with given fields:

func (*DirectRepositoryWriter) Crypter

func (_m *DirectRepositoryWriter) Crypter() *content.Crypter

Crypter provides a mock function with given fields:

func (*DirectRepositoryWriter) DeleteManifest

func (_m *DirectRepositoryWriter) DeleteManifest(ctx context.Context, id manifest.ID) error

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

func (*DirectRepositoryWriter) DeriveKey

func (_m *DirectRepositoryWriter) DeriveKey(purpose []byte, keyLength int) []byte

DeriveKey provides a mock function with given fields: purpose, keyLength

func (*DirectRepositoryWriter) DisableIndexRefresh

func (_m *DirectRepositoryWriter) DisableIndexRefresh()

DisableIndexRefresh provides a mock function with given fields:

func (*DirectRepositoryWriter) FindManifests

func (_m *DirectRepositoryWriter) FindManifests(ctx context.Context, labels map[string]string) ([]*manifest.EntryMetadata, error)

FindManifests provides a mock function with given fields: ctx, labels

func (*DirectRepositoryWriter) Flush

Flush provides a mock function with given fields: ctx

func (*DirectRepositoryWriter) GetManifest

func (_m *DirectRepositoryWriter) GetManifest(ctx context.Context, id manifest.ID, data interface{}) (*manifest.EntryMetadata, error)

GetManifest provides a mock function with given fields: ctx, id, data

func (*DirectRepositoryWriter) IndexBlobs

func (_m *DirectRepositoryWriter) IndexBlobs(ctx context.Context, includeInactive bool) ([]content.IndexBlobInfo, error)

IndexBlobs provides a mock function with given fields: ctx, includeInactive

func (*DirectRepositoryWriter) NewDirectWriter

NewDirectWriter provides a mock function with given fields: ctx, opt

func (*DirectRepositoryWriter) NewObjectWriter

func (_m *DirectRepositoryWriter) NewObjectWriter(ctx context.Context, opt object.WriterOptions) object.Writer

NewObjectWriter provides a mock function with given fields: ctx, opt

func (*DirectRepositoryWriter) NewWriter

NewWriter provides a mock function with given fields: ctx, opt

func (*DirectRepositoryWriter) ObjectFormat

func (_m *DirectRepositoryWriter) ObjectFormat() object.Format

ObjectFormat provides a mock function with given fields:

func (*DirectRepositoryWriter) OpenObject

func (_m *DirectRepositoryWriter) OpenObject(ctx context.Context, id object.ID) (object.Reader, error)

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

func (*DirectRepositoryWriter) PrefetchContents

func (_m *DirectRepositoryWriter) PrefetchContents(ctx context.Context, contentIDs []index.ID, hint string) []index.ID

PrefetchContents provides a mock function with given fields: ctx, contentIDs, hint

func (*DirectRepositoryWriter) PrefetchObjects

func (_m *DirectRepositoryWriter) PrefetchObjects(ctx context.Context, objectIDs []object.ID, hint string) ([]index.ID, error)

PrefetchObjects provides a mock function with given fields: ctx, objectIDs, hint

func (*DirectRepositoryWriter) PutManifest

func (_m *DirectRepositoryWriter) PutManifest(ctx context.Context, labels map[string]string, payload interface{}) (manifest.ID, error)

PutManifest provides a mock function with given fields: ctx, labels, payload

func (*DirectRepositoryWriter) Refresh

func (_m *DirectRepositoryWriter) Refresh(ctx context.Context) error

Refresh provides a mock function with given fields: ctx

func (*DirectRepositoryWriter) RollbackUpgrade

func (_m *DirectRepositoryWriter) RollbackUpgrade(ctx context.Context) error

RollbackUpgrade provides a mock function with given fields: ctx

func (*DirectRepositoryWriter) SetParameters

SetParameters provides a mock function with given fields: ctx, m, blobcfg

func (*DirectRepositoryWriter) SetUpgradeLockIntent

func (_m *DirectRepositoryWriter) SetUpgradeLockIntent(ctx context.Context, l content.UpgradeLock) (*content.UpgradeLock, error)

SetUpgradeLockIntent provides a mock function with given fields: ctx, l

func (*DirectRepositoryWriter) Throttler

Throttler provides a mock function with given fields:

func (*DirectRepositoryWriter) Time

func (_m *DirectRepositoryWriter) Time() time.Time

Time provides a mock function with given fields:

func (*DirectRepositoryWriter) Token

func (_m *DirectRepositoryWriter) Token(password string) (string, error)

Token provides a mock function with given fields: password

func (*DirectRepositoryWriter) UniqueID

func (_m *DirectRepositoryWriter) UniqueID() []byte

UniqueID provides a mock function with given fields:

func (*DirectRepositoryWriter) UpdateDescription

func (_m *DirectRepositoryWriter) UpdateDescription(d string)

UpdateDescription provides a mock function with given fields: d

func (*DirectRepositoryWriter) VerifyObject

func (_m *DirectRepositoryWriter) VerifyObject(ctx context.Context, id object.ID) ([]index.ID, error)

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

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t mockConstructorTestingTNewLogger) *Logger

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

func (*Logger) Debugf

func (_m *Logger) Debugf(msg string, args ...interface{})

Debugf provides a mock function with given fields: msg, args

func (*Logger) Debugw

func (_m *Logger) Debugw(msg string, keyValuePairs ...interface{})

Debugw provides a mock function with given fields: msg, keyValuePairs

func (*Logger) Errorf

func (_m *Logger) Errorf(msg string, args ...interface{})

Errorf provides a mock function with given fields: msg, args

func (*Logger) Infof

func (_m *Logger) Infof(msg string, args ...interface{})

Infof provides a mock function with given fields: msg, args

func (*Logger) Warnf

func (_m *Logger) Warnf(msg string, args ...interface{})

Warnf provides a mock function with given fields: msg, args

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t mockConstructorTestingTNewStorage) *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.

func (*Storage) Close

func (_m *Storage) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*Storage) ConnectionInfo

func (_m *Storage) ConnectionInfo() blob.ConnectionInfo

ConnectionInfo provides a mock function with given fields:

func (*Storage) DeleteBlob

func (_m *Storage) DeleteBlob(ctx context.Context, blobID blob.ID) error

DeleteBlob provides a mock function with given fields: ctx, blobID

func (*Storage) DisplayName

func (_m *Storage) DisplayName() string

DisplayName provides a mock function with given fields:

func (*Storage) FlushCaches

func (_m *Storage) FlushCaches(ctx context.Context) error

FlushCaches provides a mock function with given fields: ctx

func (*Storage) GetBlob

func (_m *Storage) GetBlob(ctx context.Context, blobID blob.ID, offset int64, length int64, output blob.OutputBuffer) error

GetBlob provides a mock function with given fields: ctx, blobID, offset, length, output

func (*Storage) GetCapacity

func (_m *Storage) GetCapacity(ctx context.Context) (blob.Capacity, error)

GetCapacity provides a mock function with given fields: ctx

func (*Storage) GetMetadata

func (_m *Storage) GetMetadata(ctx context.Context, blobID blob.ID) (blob.Metadata, error)

GetMetadata provides a mock function with given fields: ctx, blobID

func (*Storage) ListBlobs

func (_m *Storage) ListBlobs(ctx context.Context, blobIDPrefix blob.ID, cb func(blob.Metadata) error) error

ListBlobs provides a mock function with given fields: ctx, blobIDPrefix, cb

func (*Storage) PutBlob

func (_m *Storage) PutBlob(ctx context.Context, blobID blob.ID, data blob.Bytes, opts blob.PutOptions) error

PutBlob provides a mock function with given fields: ctx, blobID, data, opts

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t mockConstructorTestingTNewStore) *Store

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

func (*Store) Connect

func (_m *Store) Connect(ctx context.Context, isCreate bool) (blob.Storage, error)

Connect provides a mock function with given fields: ctx, isCreate

func (*Store) Setup

func (_m *Store) Setup(ctx context.Context, flags map[string]string) error

Setup provides a mock function with given fields: ctx, flags

Jump to

Keyboard shortcuts

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