Documentation ¶
Index ¶
- type AllocationChange
- type EncryptionScheme
- func (_m *EncryptionScheme) Decrypt(_a0 *encryption.EncryptedMessage) ([]byte, error)
- func (_m *EncryptionScheme) Encrypt(data []byte) (*encryption.EncryptedMessage, error)
- func (_m *EncryptionScheme) GetEncryptedKey() string
- func (_m *EncryptionScheme) GetEncryptedKeyPoint() string
- func (_m *EncryptionScheme) GetPrivateKey() (string, error)
- func (_m *EncryptionScheme) GetPublicKey() (string, error)
- func (_m *EncryptionScheme) GetReGenKey(encPublicKey string, tag string) (string, error)
- func (_m *EncryptionScheme) InitForDecryption(tag string, encryptedKey string) error
- func (_m *EncryptionScheme) InitForDecryptionWithPoint(tag string, point string) error
- func (_m *EncryptionScheme) InitForEncryption(tag string)
- func (_m *EncryptionScheme) InitForEncryptionWithPoint(tag string, point string) error
- func (_m *EncryptionScheme) Initialize(mnemonic string) ([]byte, error)
- func (_m *EncryptionScheme) InitializeWithPrivateKey(privateKey []byte) error
- func (_m *EncryptionScheme) ReDecrypt(D *encryption.ReEncryptedMessage) ([]byte, error)
- func (_m *EncryptionScheme) ReEncrypt(encMsg *encryption.EncryptedMessage, reGenKey string, clientPublicKey string) (*encryption.ReEncryptedMessage, error)
- type FileNameBuilder
- type Hasher
- func (_m *Hasher) Finalize() error
- func (_m *Hasher) GetFileHash() (string, error)
- func (_m *Hasher) GetFixedMerkleRoot() (string, error)
- func (_m *Hasher) GetValidationRoot() (string, error)
- func (_m *Hasher) WriteToFile(buf []byte) error
- func (_m *Hasher) WriteToFixedMT(buf []byte) error
- func (_m *Hasher) WriteToValidationMT(buf []byte) error
- type HttpClient
- type LiveUploadReader
- type M3u8Writer
- type RefEntity
- func (_m *RefEntity) CalculateHash() string
- func (_m *RefEntity) GetCreatedAt() common.Timestamp
- func (_m *RefEntity) GetFileID() string
- func (_m *RefEntity) GetFileMetaHash() string
- func (_m *RefEntity) GetHash() string
- func (_m *RefEntity) GetLookupHash() string
- func (_m *RefEntity) GetName() string
- func (_m *RefEntity) GetNumBlocks() int64
- func (_m *RefEntity) GetPath() string
- func (_m *RefEntity) GetPathHash() string
- func (_m *RefEntity) GetSize() int64
- func (_m *RefEntity) GetType() string
- func (_m *RefEntity) GetUpdatedAt() common.Timestamp
- type SCRestAPIHandler
- type SignFunc
- type StatusCallback
- func (_m *StatusCallback) Completed(allocationId string, filePath string, filename string, mimetype string, ...)
- func (_m *StatusCallback) Error(allocationID string, filePath string, op int, err error)
- func (_m *StatusCallback) InProgress(allocationId string, filePath string, op int, completedBytes int, data []byte)
- func (_m *StatusCallback) RepairCompleted(filesRepaired int)
- func (_m *StatusCallback) Started(allocationId string, filePath string, op int, totalBytes int)
- type Suite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocationChange ¶
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 ¶
ProcessChange provides a mock function with given fields: rootRef, fileIDMeta
type EncryptionScheme ¶
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 FileNameBuilder ¶ added in v1.11.0
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
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) GetFileHash ¶ added in v1.11.0
GetFileHash provides a mock function with given fields:
func (*Hasher) GetFixedMerkleRoot ¶ added in v1.11.0
GetFixedMerkleRoot provides a mock function with given fields:
func (*Hasher) GetValidationRoot ¶ added in v1.11.0
GetValidationRoot provides a mock function with given fields:
func (*Hasher) WriteToFile ¶ added in v1.11.0
WriteToFile provides a mock function with given fields: buf
func (*Hasher) WriteToFixedMT ¶ added in v1.11.0
WriteToFixedMT provides a mock function with given fields: buf
func (*Hasher) WriteToValidationMT ¶ added in v1.11.0
WriteToValidationMT provides a mock function with given fields: buf
type HttpClient ¶
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.
type LiveUploadReader ¶ added in v1.11.0
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
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
type RefEntity ¶
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 ¶
CalculateHash provides a mock function with given fields:
func (*RefEntity) GetCreatedAt ¶
GetCreatedAt provides a mock function with given fields:
func (*RefEntity) GetFileID ¶ added in v1.8.17
GetFileID provides a mock function with given fields:
func (*RefEntity) GetFileMetaHash ¶ added in v1.8.17
GetFileMetaHash provides a mock function with given fields:
func (*RefEntity) GetLookupHash ¶
GetLookupHash provides a mock function with given fields:
func (*RefEntity) GetNumBlocks ¶
GetNumBlocks provides a mock function with given fields:
func (*RefEntity) GetPathHash ¶
GetPathHash provides a mock function with given fields:
func (*RefEntity) GetUpdatedAt ¶
GetUpdatedAt provides a mock function with given fields:
type SCRestAPIHandler ¶
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.
type SignFunc ¶ added in v1.11.0
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.
type StatusCallback ¶
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
type Suite ¶
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) RandomStream ¶
RandomStream provides a mock function with given fields: