mocks

package
v1.17.9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

AUTOGENERATED! Do not use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocationChange

type AllocationChange struct {
	mock.Mock
}

AllocationChange is an autogenerated mock type for the AllocationChange type

func NewAllocationChange added in v1.8.17

func NewAllocationChange(t mockConstructorTestingTNewAllocationChange) *AllocationChange

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

func (*AllocationChange) GetAffectedPath

func (_m *AllocationChange) GetAffectedPath() []string

GetAffectedPath provides a mock function with given fields:

func (*AllocationChange) GetSize

func (_m *AllocationChange) GetSize() int64

GetSize provides a mock function with given fields:

func (*AllocationChange) ProcessChange

func (_m *AllocationChange) ProcessChange(rootRef *fileref.Ref, fileIDMeta map[string]string) error

ProcessChange provides a mock function with given fields: rootRef, fileIDMeta

type EncryptionScheme

type EncryptionScheme struct {
	mock.Mock
}

EncryptionScheme is an autogenerated mock type for the EncryptionScheme type

func NewEncryptionScheme added in v1.8.17

func NewEncryptionScheme(t mockConstructorTestingTNewEncryptionScheme) *EncryptionScheme

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

func (*EncryptionScheme) Decrypt

func (_m *EncryptionScheme) Decrypt(_a0 *encryption.EncryptedMessage) ([]byte, error)

Decrypt provides a mock function with given fields: _a0

func (*EncryptionScheme) Encrypt

func (_m *EncryptionScheme) Encrypt(data []byte) (*encryption.EncryptedMessage, error)

Encrypt provides a mock function with given fields: data

func (*EncryptionScheme) GetEncryptedKey

func (_m *EncryptionScheme) GetEncryptedKey() string

GetEncryptedKey provides a mock function with given fields:

func (*EncryptionScheme) GetEncryptedKeyPoint added in v1.11.0

func (_m *EncryptionScheme) GetEncryptedKeyPoint() string

GetEncryptedKeyPoint provides a mock function with given fields:

func (*EncryptionScheme) GetPrivateKey added in v1.8.17

func (_m *EncryptionScheme) GetPrivateKey() (string, error)

GetPrivateKey provides a mock function with given fields:

func (*EncryptionScheme) GetPublicKey

func (_m *EncryptionScheme) GetPublicKey() (string, error)

GetPublicKey provides a mock function with given fields:

func (*EncryptionScheme) GetReGenKey

func (_m *EncryptionScheme) GetReGenKey(encPublicKey string, tag string) (string, error)

GetReGenKey provides a mock function with given fields: encPublicKey, tag

func (*EncryptionScheme) InitForDecryption

func (_m *EncryptionScheme) InitForDecryption(tag string, encryptedKey string) error

InitForDecryption provides a mock function with given fields: tag, encryptedKey

func (*EncryptionScheme) InitForDecryptionWithPoint added in v1.11.0

func (_m *EncryptionScheme) InitForDecryptionWithPoint(tag string, point string) error

InitForDecryptionWithPoint provides a mock function with given fields: tag, point

func (*EncryptionScheme) InitForEncryption

func (_m *EncryptionScheme) InitForEncryption(tag string)

InitForEncryption provides a mock function with given fields: tag

func (*EncryptionScheme) InitForEncryptionWithPoint added in v1.11.0

func (_m *EncryptionScheme) InitForEncryptionWithPoint(tag string, point string) error

InitForEncryptionWithPoint provides a mock function with given fields: tag, point

func (*EncryptionScheme) Initialize

func (_m *EncryptionScheme) Initialize(mnemonic string) ([]byte, error)

Initialize provides a mock function with given fields: mnemonic

func (*EncryptionScheme) InitializeWithPrivateKey added in v1.8.17

func (_m *EncryptionScheme) InitializeWithPrivateKey(privateKey []byte) error

InitializeWithPrivateKey provides a mock function with given fields: privateKey

func (*EncryptionScheme) ReDecrypt added in v1.8.17

func (_m *EncryptionScheme) ReDecrypt(D *encryption.ReEncryptedMessage) ([]byte, error)

ReDecrypt provides a mock function with given fields: D

func (*EncryptionScheme) ReEncrypt added in v1.8.17

func (_m *EncryptionScheme) ReEncrypt(encMsg *encryption.EncryptedMessage, reGenKey string, clientPublicKey string) (*encryption.ReEncryptedMessage, error)

ReEncrypt provides a mock function with given fields: encMsg, reGenKey, clientPublicKey

type FastClient added in v1.13.0

type FastClient struct {
	mock.Mock
}

FastClient is an autogenerated mock type for the FastClient type

func NewFastClient added in v1.13.0

func NewFastClient(t mockConstructorTestingTNewFastClient) *FastClient

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

func (*FastClient) DoTimeout added in v1.13.0

func (_m *FastClient) DoTimeout(req *fasthttp.Request, resp *fasthttp.Response, timeout time.Duration) error

DoTimeout provides a mock function with given fields: req, resp, timeout

type FileNameBuilder added in v1.11.0

type FileNameBuilder struct {
	mock.Mock
}

FileNameBuilder is an autogenerated mock type for the FileNameBuilder type

func NewFileNameBuilder added in v1.11.0

func NewFileNameBuilder(t mockConstructorTestingTNewFileNameBuilder) *FileNameBuilder

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

func (*FileNameBuilder) ClipsFile added in v1.11.0

func (_m *FileNameBuilder) ClipsFile(index int) string

ClipsFile provides a mock function with given fields: index

func (*FileNameBuilder) ClipsFileName added in v1.11.0

func (_m *FileNameBuilder) ClipsFileName(index int) string

ClipsFileName provides a mock function with given fields: index

func (*FileNameBuilder) FileExt added in v1.11.0

func (_m *FileNameBuilder) FileExt() string

FileExt provides a mock function with given fields:

func (*FileNameBuilder) OutDir added in v1.11.0

func (_m *FileNameBuilder) OutDir() string

OutDir provides a mock function with given fields:

func (*FileNameBuilder) OutFile added in v1.11.0

func (_m *FileNameBuilder) OutFile() string

OutFile provides a mock function with given fields:

type Hasher added in v1.11.0

type Hasher struct {
	mock.Mock
}

Hasher is an autogenerated mock type for the Hasher type

func NewHasher added in v1.11.0

func NewHasher(t mockConstructorTestingTNewHasher) *Hasher

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

func (*Hasher) Finalize added in v1.11.0

func (_m *Hasher) Finalize() error

Finalize provides a mock function with given fields:

func (*Hasher) GetFileHash added in v1.11.0

func (_m *Hasher) GetFileHash() (string, error)

GetFileHash provides a mock function with given fields:

func (*Hasher) GetFixedMerkleRoot added in v1.11.0

func (_m *Hasher) GetFixedMerkleRoot() (string, error)

GetFixedMerkleRoot provides a mock function with given fields:

func (*Hasher) GetValidationRoot added in v1.11.0

func (_m *Hasher) GetValidationRoot() (string, error)

GetValidationRoot provides a mock function with given fields:

func (*Hasher) WriteToFile added in v1.11.0

func (_m *Hasher) WriteToFile(buf []byte) error

WriteToFile provides a mock function with given fields: buf

func (*Hasher) WriteToFixedMT added in v1.11.0

func (_m *Hasher) WriteToFixedMT(buf []byte) error

WriteToFixedMT provides a mock function with given fields: buf

func (*Hasher) WriteToValidationMT added in v1.11.0

func (_m *Hasher) WriteToValidationMT(buf []byte) error

WriteToValidationMT provides a mock function with given fields: buf

type HttpClient

type HttpClient struct {
	mock.Mock
}

HttpClient is an autogenerated mock type for the HttpClient type

func NewHttpClient added in v1.8.17

func NewHttpClient(t mockConstructorTestingTNewHttpClient) *HttpClient

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

func (*HttpClient) Do

func (_m *HttpClient) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

type LiveUploadReader added in v1.11.0

type LiveUploadReader struct {
	mock.Mock
}

LiveUploadReader is an autogenerated mock type for the LiveUploadReader type

func NewLiveUploadReader added in v1.11.0

func NewLiveUploadReader(t mockConstructorTestingTNewLiveUploadReader) *LiveUploadReader

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

func (*LiveUploadReader) GetClipsFile added in v1.11.0

func (_m *LiveUploadReader) GetClipsFile(clipsIndex int) string

GetClipsFile provides a mock function with given fields: clipsIndex

func (*LiveUploadReader) GetClipsFileName added in v1.11.0

func (_m *LiveUploadReader) GetClipsFileName(cliipsIndex int) string

GetClipsFileName provides a mock function with given fields: cliipsIndex

func (*LiveUploadReader) Read added in v1.11.0

func (_m *LiveUploadReader) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*LiveUploadReader) Size added in v1.11.0

func (_m *LiveUploadReader) Size() int64

Size provides a mock function with given fields:

type M3u8Writer added in v1.11.0

type M3u8Writer struct {
	mock.Mock
}

M3u8Writer is an autogenerated mock type for the M3u8Writer type

func NewM3u8Writer added in v1.11.0

func NewM3u8Writer(t mockConstructorTestingTNewM3u8Writer) *M3u8Writer

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

func (*M3u8Writer) Seek added in v1.11.0

func (_m *M3u8Writer) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*M3u8Writer) Sync added in v1.11.0

func (_m *M3u8Writer) Sync() error

Sync provides a mock function with given fields:

func (*M3u8Writer) Truncate added in v1.11.0

func (_m *M3u8Writer) Truncate(size int64) error

Truncate provides a mock function with given fields: size

func (*M3u8Writer) Write added in v1.11.0

func (_m *M3u8Writer) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type RefEntity

type RefEntity struct {
	mock.Mock
}

RefEntity is an autogenerated mock type for the RefEntity type

func NewRefEntity added in v1.8.17

func NewRefEntity(t mockConstructorTestingTNewRefEntity) *RefEntity

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

func (*RefEntity) CalculateHash

func (_m *RefEntity) CalculateHash() string

CalculateHash provides a mock function with given fields:

func (*RefEntity) GetCreatedAt

func (_m *RefEntity) GetCreatedAt() common.Timestamp

GetCreatedAt provides a mock function with given fields:

func (*RefEntity) GetFileID added in v1.8.17

func (_m *RefEntity) GetFileID() string

GetFileID provides a mock function with given fields:

func (*RefEntity) GetFileMetaHash added in v1.8.17

func (_m *RefEntity) GetFileMetaHash() string

GetFileMetaHash provides a mock function with given fields:

func (*RefEntity) GetHash

func (_m *RefEntity) GetHash() string

GetHash provides a mock function with given fields:

func (*RefEntity) GetLookupHash

func (_m *RefEntity) GetLookupHash() string

GetLookupHash provides a mock function with given fields:

func (*RefEntity) GetName

func (_m *RefEntity) GetName() string

GetName provides a mock function with given fields:

func (*RefEntity) GetNumBlocks

func (_m *RefEntity) GetNumBlocks() int64

GetNumBlocks provides a mock function with given fields:

func (*RefEntity) GetPath

func (_m *RefEntity) GetPath() string

GetPath provides a mock function with given fields:

func (*RefEntity) GetPathHash

func (_m *RefEntity) GetPathHash() string

GetPathHash provides a mock function with given fields:

func (*RefEntity) GetSize

func (_m *RefEntity) GetSize() int64

GetSize provides a mock function with given fields:

func (*RefEntity) GetType

func (_m *RefEntity) GetType() string

GetType provides a mock function with given fields:

func (*RefEntity) GetUpdatedAt

func (_m *RefEntity) GetUpdatedAt() common.Timestamp

GetUpdatedAt provides a mock function with given fields:

type SCRestAPIHandler

type SCRestAPIHandler struct {
	mock.Mock
}

SCRestAPIHandler is an autogenerated mock type for the SCRestAPIHandler type

func NewSCRestAPIHandler added in v1.8.17

func NewSCRestAPIHandler(t mockConstructorTestingTNewSCRestAPIHandler) *SCRestAPIHandler

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

func (*SCRestAPIHandler) Execute

func (_m *SCRestAPIHandler) Execute(response map[string][]byte, numSharders int, err error)

Execute provides a mock function with given fields: response, numSharders, err

type SignFunc added in v1.11.0

type SignFunc struct {
	mock.Mock
}

SignFunc is an autogenerated mock type for the SignFunc type

func NewSignFunc added in v1.11.0

func NewSignFunc(t mockConstructorTestingTNewSignFunc) *SignFunc

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

func (*SignFunc) Execute added in v1.11.0

func (_m *SignFunc) Execute(hash string) (string, error)

Execute provides a mock function with given fields: hash

type StatusCallback

type StatusCallback struct {
	mock.Mock
}

StatusCallback is an autogenerated mock type for the StatusCallback type

func NewStatusCallback added in v1.8.17

func NewStatusCallback(t mockConstructorTestingTNewStatusCallback) *StatusCallback

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

func (*StatusCallback) Completed

func (_m *StatusCallback) Completed(allocationId string, filePath string, filename string, mimetype string, size int, op int)

Completed provides a mock function with given fields: allocationId, filePath, filename, mimetype, size, op

func (*StatusCallback) Error

func (_m *StatusCallback) Error(allocationID string, filePath string, op int, err error)

Error provides a mock function with given fields: allocationID, filePath, op, err

func (*StatusCallback) InProgress

func (_m *StatusCallback) InProgress(allocationId string, filePath string, op int, completedBytes int, data []byte)

InProgress provides a mock function with given fields: allocationId, filePath, op, completedBytes, data

func (*StatusCallback) RepairCompleted

func (_m *StatusCallback) RepairCompleted(filesRepaired int)

RepairCompleted provides a mock function with given fields: filesRepaired

func (*StatusCallback) Started

func (_m *StatusCallback) Started(allocationId string, filePath string, op int, totalBytes int)

Started provides a mock function with given fields: allocationId, filePath, op, totalBytes

type Suite

type Suite struct {
	mock.Mock
}

Suite is an autogenerated mock type for the Suite type

func NewSuite added in v1.8.17

func NewSuite(t mockConstructorTestingTNewSuite) *Suite

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

func (*Suite) Point

func (_m *Suite) Point() kyber.Point

Point provides a mock function with given fields:

func (*Suite) PointLen

func (_m *Suite) PointLen() int

PointLen provides a mock function with given fields:

func (*Suite) RandomStream

func (_m *Suite) RandomStream() cipher.Stream

RandomStream provides a mock function with given fields:

func (*Suite) Scalar

func (_m *Suite) Scalar() kyber.Scalar

Scalar provides a mock function with given fields:

func (*Suite) ScalarLen

func (_m *Suite) ScalarLen() int

ScalarLen provides a mock function with given fields:

func (*Suite) String

func (_m *Suite) String() string

String provides a mock function with given fields:

Jump to

Keyboard shortcuts

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