mocks

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

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 (*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) error

ProcessChange provides a mock function with given fields: rootRef

type EncryptionScheme

type EncryptionScheme struct {
	mock.Mock
}

EncryptionScheme is an autogenerated mock type for the EncryptionScheme type

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) 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) InitForEncryption

func (_m *EncryptionScheme) InitForEncryption(tag string)

InitForEncryption provides a mock function with given fields: tag

func (*EncryptionScheme) Initialize

func (_m *EncryptionScheme) Initialize(mnemonic string) error

Initialize provides a mock function with given fields: mnemonic

type HttpClient

type HttpClient struct {
	mock.Mock
}

HttpClient is an autogenerated mock type for the HttpClient type

func (*HttpClient) Do

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

Do provides a mock function with given fields: req

type RefEntity

type RefEntity struct {
	mock.Mock
}

RefEntity is an autogenerated mock type for the RefEntity type

func (*RefEntity) CalculateHash

func (_m *RefEntity) CalculateHash() string

CalculateHash provides a mock function with given fields:

func (*RefEntity) GetCreatedAt

func (_m *RefEntity) GetCreatedAt() string

GetCreatedAt 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() string

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 (*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 StatusCallback

type StatusCallback struct {
	mock.Mock
}

StatusCallback is an autogenerated mock type for the StatusCallback type

func (*StatusCallback) CommitMetaCompleted

func (_m *StatusCallback) CommitMetaCompleted(request string, response string, txn *transaction.Transaction, err error)

CommitMetaCompleted provides a mock function with given fields: request, response, err

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 (*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