Documentation
¶
Index ¶
- type DirCache
- func (_m *DirCache) DeleteEntry(directory string)
- func (_m *DirCache) FindMassifFiles(directory string) error
- func (_m *DirCache) GetEntry(directory string) (massifs.DirCacheEntry, bool)
- func (_m *DirCache) GetOpener() massifs.Opener
- func (_m *DirCache) Open(fileName string) (io.ReadCloser, error)
- func (_m *DirCache) Options() massifs.DirCacheOptions
- func (_m *DirCache) ReadMassif(directory string, massifIndex uint64) (*massifs.MassifContext, error)
- func (_m *DirCache) ReadMassifDirEntry(directory string) (massifs.DirCacheEntry, error)
- func (_m *DirCache) ReadMassifStart(filepath string) (massifs.MassifStart, string, error)
- func (_m *DirCache) ReadSeal(directory string, massifIndex uint64) (*massifs.SealedState, error)
- func (_m *DirCache) ReadSealDirEntry(directory string) (massifs.DirCacheEntry, error)
- func (_m *DirCache) ReplaceMassif(logfile string, mc *massifs.MassifContext) error
- func (_m *DirCache) ReplaceSeal(sealFilename string, massifIndex uint32, sealedState *massifs.SealedState) error
- func (_m *DirCache) ResolveMassifDir(tenantIdentityOrLocalPath string) (string, error)
- func (_m *DirCache) ResolveSealDir(tenantIdentityOrLocalPath string) (string, error)
- type DirCacheEntry
- func (_m *DirCacheEntry) GetInfo() massifs.EntryInfo
- func (_m *DirCacheEntry) GetSeal(c massifs.DirCache, massifIndex uint64) (*massifs.SealedState, error)
- func (_m *DirCacheEntry) ReadMassif(c massifs.DirCache, massifIndex uint64) (*massifs.MassifContext, error)
- func (_m *DirCacheEntry) ReadMassifStart(c massifs.DirCache, logfile string) (massifs.MassifStart, error)
- func (_m *DirCacheEntry) ReadSeal(c massifs.DirCache, fileName string) (*massifs.SealedState, error)
- type DirCacheOption
- type DirLister
- type DirResolver
- type LogBlobReader
- func (_m *LogBlobReader) FilteredList(ctx context.Context, tagsFilter string, opts ...azblob.Option) (*azblob.FilterResponse, error)
- func (_m *LogBlobReader) List(ctx context.Context, opts ...azblob.Option) (*azblob.ListerResponse, error)
- func (_m *LogBlobReader) Reader(ctx context.Context, identity string, opts ...azblob.Option) (*azblob.ReaderResponse, error)
- type MassifStore
- func (_m *MassifStore) FilteredList(ctx context.Context, tagsFilter string, opts ...azblob.Option) (*azblob.FilterResponse, error)
- func (_m *MassifStore) List(ctx context.Context, opts ...azblob.Option) (*azblob.ListerResponse, error)
- func (_m *MassifStore) Put(ctx context.Context, identity string, source io.ReadSeekCloser, ...) (*azblob.WriteResponse, error)
- func (_m *MassifStore) Reader(ctx context.Context, identity string, opts ...azblob.Option) (*azblob.ReaderResponse, error)
- type Opener
- type ParseIdentifyingSegment
- type PublicKeyProvider
- type ReaderOption
- type ReplicaReader
- func (_m *ReplicaReader) EnsureReplicaDirs(tenantIdentity string) error
- func (_m *ReplicaReader) GetHeadVerifiedContext(ctx context.Context, tenantIdentity string, opts ...massifs.ReaderOption) (*massifs.VerifiedContext, error)
- func (_m *ReplicaReader) GetMassifLocalPath(tenantIdentity string, massifIndex uint32) string
- func (_m *ReplicaReader) GetReplicaDir() string
- func (_m *ReplicaReader) GetSealLocalPath(tenantIdentity string, massifIndex uint32) string
- func (_m *ReplicaReader) GetVerifiedContext(ctx context.Context, tenantIdentity string, massifIndex uint64, ...) (*massifs.VerifiedContext, error)
- func (_m *ReplicaReader) InReplicaMode() bool
- func (_m *ReplicaReader) ReplaceVerifiedContext(vc *massifs.VerifiedContext, writeOpener massifs.WriteAppendOpener) error
- func (_m *ReplicaReader) ResolveMassifDir(tenantIdentityOrLocalPath string) (string, error)
- func (_m *ReplicaReader) ResolveSealDir(tenantIdentityOrLocalPath string) (string, error)
- type SealGetter
- type VerifiedContextReader
- type VisitFilterResponse
- type WriteAppendOpener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirCache ¶
DirCache is an autogenerated mock type for the DirCache type
func NewDirCache ¶
NewDirCache creates a new instance of DirCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DirCache) DeleteEntry ¶
DeleteEntry provides a mock function with given fields: directory
func (*DirCache) FindMassifFiles ¶
FindMassifFiles provides a mock function with given fields: directory
func (*DirCache) GetEntry ¶
func (_m *DirCache) GetEntry(directory string) (massifs.DirCacheEntry, bool)
GetEntry provides a mock function with given fields: directory
func (*DirCache) Open ¶
func (_m *DirCache) Open(fileName string) (io.ReadCloser, error)
Open provides a mock function with given fields: fileName
func (*DirCache) Options ¶
func (_m *DirCache) Options() massifs.DirCacheOptions
Options provides a mock function with given fields:
func (*DirCache) ReadMassif ¶
func (_m *DirCache) ReadMassif(directory string, massifIndex uint64) (*massifs.MassifContext, error)
ReadMassif provides a mock function with given fields: directory, massifIndex
func (*DirCache) ReadMassifDirEntry ¶
func (_m *DirCache) ReadMassifDirEntry(directory string) (massifs.DirCacheEntry, error)
ReadMassifDirEntry provides a mock function with given fields: directory
func (*DirCache) ReadMassifStart ¶
ReadMassifStart provides a mock function with given fields: filepath
func (*DirCache) ReadSeal ¶
ReadSeal provides a mock function with given fields: directory, massifIndex
func (*DirCache) ReadSealDirEntry ¶
func (_m *DirCache) ReadSealDirEntry(directory string) (massifs.DirCacheEntry, error)
ReadSealDirEntry provides a mock function with given fields: directory
func (*DirCache) ReplaceMassif ¶
func (_m *DirCache) ReplaceMassif(logfile string, mc *massifs.MassifContext) error
ReplaceMassif provides a mock function with given fields: logfile, mc
func (*DirCache) ReplaceSeal ¶
func (_m *DirCache) ReplaceSeal(sealFilename string, massifIndex uint32, sealedState *massifs.SealedState) error
ReplaceSeal provides a mock function with given fields: sealFilename, massifIndex, sealedState
func (*DirCache) ResolveMassifDir ¶
ResolveMassifDir provides a mock function with given fields: tenantIdentityOrLocalPath
type DirCacheEntry ¶
DirCacheEntry is an autogenerated mock type for the DirCacheEntry type
func NewDirCacheEntry ¶
func NewDirCacheEntry(t interface { mock.TestingT Cleanup(func()) }) *DirCacheEntry
NewDirCacheEntry creates a new instance of DirCacheEntry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DirCacheEntry) GetInfo ¶
func (_m *DirCacheEntry) GetInfo() massifs.EntryInfo
GetInfo provides a mock function with given fields:
func (*DirCacheEntry) GetSeal ¶
func (_m *DirCacheEntry) GetSeal(c massifs.DirCache, massifIndex uint64) (*massifs.SealedState, error)
GetSeal provides a mock function with given fields: c, massifIndex
func (*DirCacheEntry) ReadMassif ¶
func (_m *DirCacheEntry) ReadMassif(c massifs.DirCache, massifIndex uint64) (*massifs.MassifContext, error)
ReadMassif provides a mock function with given fields: c, massifIndex
func (*DirCacheEntry) ReadMassifStart ¶
func (_m *DirCacheEntry) ReadMassifStart(c massifs.DirCache, logfile string) (massifs.MassifStart, error)
ReadMassifStart provides a mock function with given fields: c, logfile
func (*DirCacheEntry) ReadSeal ¶
func (_m *DirCacheEntry) ReadSeal(c massifs.DirCache, fileName string) (*massifs.SealedState, error)
ReadSeal provides a mock function with given fields: c, fileName
type DirCacheOption ¶
DirCacheOption is an autogenerated mock type for the DirCacheOption type
func NewDirCacheOption ¶
func NewDirCacheOption(t interface { mock.TestingT Cleanup(func()) }) *DirCacheOption
NewDirCacheOption creates a new instance of DirCacheOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DirCacheOption) Execute ¶
func (_m *DirCacheOption) Execute(_a0 *massifs.DirCacheOptions)
Execute provides a mock function with given fields: _a0
type DirLister ¶
DirLister is an autogenerated mock type for the DirLister type
func NewDirLister ¶
NewDirLister creates a new instance of DirLister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type DirResolver ¶
DirResolver is an autogenerated mock type for the DirResolver type
func NewDirResolver ¶
func NewDirResolver(t interface { mock.TestingT Cleanup(func()) }) *DirResolver
NewDirResolver creates a new instance of DirResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DirResolver) ResolveMassifDir ¶
func (_m *DirResolver) ResolveMassifDir(tenantIdentityOrLocalPath string) (string, error)
ResolveMassifDir provides a mock function with given fields: tenantIdentityOrLocalPath
func (*DirResolver) ResolveSealDir ¶
func (_m *DirResolver) ResolveSealDir(tenantIdentityOrLocalPath string) (string, error)
ResolveSealDir provides a mock function with given fields: tenantIdentityOrLocalPath
type LogBlobReader ¶
LogBlobReader is an autogenerated mock type for the LogBlobReader type
func NewLogBlobReader ¶
func NewLogBlobReader(t interface { mock.TestingT Cleanup(func()) }) *LogBlobReader
NewLogBlobReader creates a new instance of LogBlobReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*LogBlobReader) FilteredList ¶
func (_m *LogBlobReader) FilteredList(ctx context.Context, tagsFilter string, opts ...azblob.Option) (*azblob.FilterResponse, error)
FilteredList provides a mock function with given fields: ctx, tagsFilter, opts
func (*LogBlobReader) List ¶
func (_m *LogBlobReader) List(ctx context.Context, opts ...azblob.Option) (*azblob.ListerResponse, error)
List provides a mock function with given fields: ctx, opts
type MassifStore ¶
MassifStore is an autogenerated mock type for the massifStore type
func NewMassifStore ¶
func NewMassifStore(t interface { mock.TestingT Cleanup(func()) }) *MassifStore
NewMassifStore creates a new instance of MassifStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MassifStore) FilteredList ¶
func (_m *MassifStore) FilteredList(ctx context.Context, tagsFilter string, opts ...azblob.Option) (*azblob.FilterResponse, error)
FilteredList provides a mock function with given fields: ctx, tagsFilter, opts
func (*MassifStore) List ¶
func (_m *MassifStore) List(ctx context.Context, opts ...azblob.Option) (*azblob.ListerResponse, error)
List provides a mock function with given fields: ctx, opts
func (*MassifStore) Put ¶
func (_m *MassifStore) Put(ctx context.Context, identity string, source io.ReadSeekCloser, opts ...azblob.Option) (*azblob.WriteResponse, error)
Put provides a mock function with given fields: ctx, identity, source, opts
type Opener ¶
Opener is an autogenerated mock type for the Opener type
type ParseIdentifyingSegment ¶
ParseIdentifyingSegment is an autogenerated mock type for the ParseIdentifyingSegment type
func NewParseIdentifyingSegment ¶
func NewParseIdentifyingSegment(t interface { mock.TestingT Cleanup(func()) }) *ParseIdentifyingSegment
NewParseIdentifyingSegment creates a new instance of ParseIdentifyingSegment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type PublicKeyProvider ¶
PublicKeyProvider is an autogenerated mock type for the publicKeyProvider type
func NewPublicKeyProvider ¶
func NewPublicKeyProvider(t interface { mock.TestingT Cleanup(func()) }) *PublicKeyProvider
NewPublicKeyProvider creates a new instance of PublicKeyProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type ReaderOption ¶
ReaderOption is an autogenerated mock type for the ReaderOption type
func NewReaderOption ¶
func NewReaderOption(t interface { mock.TestingT Cleanup(func()) }) *ReaderOption
NewReaderOption creates a new instance of ReaderOption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ReaderOption) Execute ¶
func (_m *ReaderOption) Execute(_a0 *massifs.ReaderOptions)
Execute provides a mock function with given fields: _a0
type ReplicaReader ¶
ReplicaReader is an autogenerated mock type for the ReplicaReader type
func NewReplicaReader ¶
func NewReplicaReader(t interface { mock.TestingT Cleanup(func()) }) *ReplicaReader
NewReplicaReader creates a new instance of ReplicaReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ReplicaReader) EnsureReplicaDirs ¶
func (_m *ReplicaReader) EnsureReplicaDirs(tenantIdentity string) error
EnsureReplicaDirs provides a mock function with given fields: tenantIdentity
func (*ReplicaReader) GetHeadVerifiedContext ¶
func (_m *ReplicaReader) GetHeadVerifiedContext(ctx context.Context, tenantIdentity string, opts ...massifs.ReaderOption) (*massifs.VerifiedContext, error)
GetHeadVerifiedContext provides a mock function with given fields: ctx, tenantIdentity, opts
func (*ReplicaReader) GetMassifLocalPath ¶
func (_m *ReplicaReader) GetMassifLocalPath(tenantIdentity string, massifIndex uint32) string
GetMassifLocalPath provides a mock function with given fields: tenantIdentity, massifIndex
func (*ReplicaReader) GetReplicaDir ¶
func (_m *ReplicaReader) GetReplicaDir() string
GetReplicaDir provides a mock function with given fields:
func (*ReplicaReader) GetSealLocalPath ¶
func (_m *ReplicaReader) GetSealLocalPath(tenantIdentity string, massifIndex uint32) string
GetSealLocalPath provides a mock function with given fields: tenantIdentity, massifIndex
func (*ReplicaReader) GetVerifiedContext ¶
func (_m *ReplicaReader) GetVerifiedContext(ctx context.Context, tenantIdentity string, massifIndex uint64, opts ...massifs.ReaderOption) (*massifs.VerifiedContext, error)
GetVerifiedContext provides a mock function with given fields: ctx, tenantIdentity, massifIndex, opts
func (*ReplicaReader) InReplicaMode ¶
func (_m *ReplicaReader) InReplicaMode() bool
InReplicaMode provides a mock function with given fields:
func (*ReplicaReader) ReplaceVerifiedContext ¶
func (_m *ReplicaReader) ReplaceVerifiedContext(vc *massifs.VerifiedContext, writeOpener massifs.WriteAppendOpener) error
ReplaceVerifiedContext provides a mock function with given fields: vc, writeOpener
func (*ReplicaReader) ResolveMassifDir ¶
func (_m *ReplicaReader) ResolveMassifDir(tenantIdentityOrLocalPath string) (string, error)
ResolveMassifDir provides a mock function with given fields: tenantIdentityOrLocalPath
func (*ReplicaReader) ResolveSealDir ¶
func (_m *ReplicaReader) ResolveSealDir(tenantIdentityOrLocalPath string) (string, error)
ResolveSealDir provides a mock function with given fields: tenantIdentityOrLocalPath
type SealGetter ¶
SealGetter is an autogenerated mock type for the SealGetter type
func NewSealGetter ¶
func NewSealGetter(t interface { mock.TestingT Cleanup(func()) }) *SealGetter
NewSealGetter creates a new instance of SealGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SealGetter) GetSignedRoot ¶
func (_m *SealGetter) GetSignedRoot(ctx context.Context, tenantIdentity string, massifIndex uint32, opts ...massifs.ReaderOption) (*cose.CoseSign1Message, massifs.MMRState, error)
GetSignedRoot provides a mock function with given fields: ctx, tenantIdentity, massifIndex, opts
type VerifiedContextReader ¶
VerifiedContextReader is an autogenerated mock type for the VerifiedContextReader type
func NewVerifiedContextReader ¶
func NewVerifiedContextReader(t interface { mock.TestingT Cleanup(func()) }) *VerifiedContextReader
NewVerifiedContextReader creates a new instance of VerifiedContextReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*VerifiedContextReader) GetVerifiedContext ¶
func (_m *VerifiedContextReader) GetVerifiedContext(ctx context.Context, tenantIdentity string, massifIndex uint64, opts ...massifs.ReaderOption) (*massifs.VerifiedContext, error)
GetVerifiedContext provides a mock function with given fields: ctx, tenantIdentity, massifIndex, opts
type VisitFilterResponse ¶
VisitFilterResponse is an autogenerated mock type for the VisitFilterResponse type
func NewVisitFilterResponse ¶
func NewVisitFilterResponse(t interface { mock.TestingT Cleanup(func()) }) *VisitFilterResponse
NewVisitFilterResponse creates a new instance of VisitFilterResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*VisitFilterResponse) Execute ¶
func (_m *VisitFilterResponse) Execute(ctx context.Context, store massifs.LogBlobReader, it *azblob.FilterBlobItem) (bool, error)
Execute provides a mock function with given fields: ctx, store, it
type WriteAppendOpener ¶
WriteAppendOpener is an autogenerated mock type for the WriteAppendOpener type
func NewWriteAppendOpener ¶
func NewWriteAppendOpener(t interface { mock.TestingT Cleanup(func()) }) *WriteAppendOpener
NewWriteAppendOpener creates a new instance of WriteAppendOpener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*WriteAppendOpener) Open ¶
func (_m *WriteAppendOpener) Open(_a0 string) (io.WriteCloser, error)
Open provides a mock function with given fields: _a0