Documentation ¶
Overview ¶
Package mockblobclient is a generated GoMock package.
Package mockblobclient is a generated GoMock package.
Package mockblobclient is a generated GoMock package.
Package mockblobclient is a generated GoMock package.
Package mockblobclient is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Addr() string
- func (m *MockClient) DeleteBlob(arg0 core.Digest) error
- func (m *MockClient) DownloadBlob(arg0 string, arg1 core.Digest, arg2 io.Writer) error
- func (m *MockClient) DuplicateUploadBlob(arg0 string, arg1 core.Digest, arg2 io.Reader, arg3 time.Duration) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) ForceCleanup(arg0 time.Duration) error
- func (m *MockClient) GetMetaInfo(arg0 string, arg1 core.Digest) (*core.MetaInfo, error)
- func (m *MockClient) GetPeerContext() (core.PeerContext, error)
- func (m *MockClient) Locations(arg0 core.Digest) ([]string, error)
- func (m *MockClient) OverwriteMetaInfo(arg0 core.Digest, arg1 int64) error
- func (m *MockClient) ReplicateToRemote(arg0 string, arg1 core.Digest, arg2 string) error
- func (m *MockClient) Stat(arg0 string, arg1 core.Digest) (*core.BlobInfo, error)
- func (m *MockClient) StatLocal(arg0 string, arg1 core.Digest) (*core.BlobInfo, error)
- func (m *MockClient) TransferBlob(arg0 core.Digest, arg1 io.Reader) error
- func (m *MockClient) UploadBlob(arg0 string, arg1 core.Digest, arg2 io.Reader) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Addr() *gomock.Call
- func (mr *MockClientMockRecorder) DeleteBlob(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DownloadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DuplicateUploadBlob(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ForceCleanup(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetMetaInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetPeerContext() *gomock.Call
- func (mr *MockClientMockRecorder) Locations(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) OverwriteMetaInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ReplicateToRemote(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Stat(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) StatLocal(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) TransferBlob(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UploadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockClientResolver
- type MockClientResolverMockRecorder
- type MockClusterClient
- func (m *MockClusterClient) DownloadBlob(arg0 string, arg1 core.Digest, arg2 io.Writer) error
- func (m *MockClusterClient) EXPECT() *MockClusterClientMockRecorder
- func (m *MockClusterClient) GetMetaInfo(arg0 string, arg1 core.Digest) (*core.MetaInfo, error)
- func (m *MockClusterClient) OverwriteMetaInfo(arg0 core.Digest, arg1 int64) error
- func (m *MockClusterClient) Owners(arg0 core.Digest) ([]core.PeerContext, error)
- func (m *MockClusterClient) ReplicateToRemote(arg0 string, arg1 core.Digest, arg2 string) error
- func (m *MockClusterClient) Stat(arg0 string, arg1 core.Digest) (*core.BlobInfo, error)
- func (m *MockClusterClient) UploadBlob(arg0 string, arg1 core.Digest, arg2 io.Reader) error
- type MockClusterClientMockRecorder
- func (mr *MockClusterClientMockRecorder) DownloadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) GetMetaInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) OverwriteMetaInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) Owners(arg0 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) ReplicateToRemote(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) Stat(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClusterClientMockRecorder) UploadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockClusterProvider
- type MockClusterProviderMockRecorder
- type MockProvider
- type MockProviderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) DeleteBlob ¶
func (m *MockClient) DeleteBlob(arg0 core.Digest) error
DeleteBlob mocks base method
func (*MockClient) DownloadBlob ¶
DownloadBlob mocks base method
func (*MockClient) DuplicateUploadBlob ¶
func (m *MockClient) DuplicateUploadBlob(arg0 string, arg1 core.Digest, arg2 io.Reader, arg3 time.Duration) error
DuplicateUploadBlob mocks base method
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) ForceCleanup ¶
func (m *MockClient) ForceCleanup(arg0 time.Duration) error
ForceCleanup mocks base method
func (*MockClient) GetMetaInfo ¶
GetMetaInfo mocks base method
func (*MockClient) GetPeerContext ¶
func (m *MockClient) GetPeerContext() (core.PeerContext, error)
GetPeerContext mocks base method
func (*MockClient) Locations ¶
func (m *MockClient) Locations(arg0 core.Digest) ([]string, error)
Locations mocks base method
func (*MockClient) OverwriteMetaInfo ¶
func (m *MockClient) OverwriteMetaInfo(arg0 core.Digest, arg1 int64) error
OverwriteMetaInfo mocks base method
func (*MockClient) ReplicateToRemote ¶
ReplicateToRemote mocks base method
func (*MockClient) TransferBlob ¶
TransferBlob mocks base method
func (*MockClient) UploadBlob ¶
UploadBlob mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) Addr ¶
func (mr *MockClientMockRecorder) Addr() *gomock.Call
Addr indicates an expected call of Addr
func (*MockClientMockRecorder) DeleteBlob ¶
func (mr *MockClientMockRecorder) DeleteBlob(arg0 interface{}) *gomock.Call
DeleteBlob indicates an expected call of DeleteBlob
func (*MockClientMockRecorder) DownloadBlob ¶
func (mr *MockClientMockRecorder) DownloadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
DownloadBlob indicates an expected call of DownloadBlob
func (*MockClientMockRecorder) DuplicateUploadBlob ¶
func (mr *MockClientMockRecorder) DuplicateUploadBlob(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
DuplicateUploadBlob indicates an expected call of DuplicateUploadBlob
func (*MockClientMockRecorder) ForceCleanup ¶
func (mr *MockClientMockRecorder) ForceCleanup(arg0 interface{}) *gomock.Call
ForceCleanup indicates an expected call of ForceCleanup
func (*MockClientMockRecorder) GetMetaInfo ¶
func (mr *MockClientMockRecorder) GetMetaInfo(arg0, arg1 interface{}) *gomock.Call
GetMetaInfo indicates an expected call of GetMetaInfo
func (*MockClientMockRecorder) GetPeerContext ¶
func (mr *MockClientMockRecorder) GetPeerContext() *gomock.Call
GetPeerContext indicates an expected call of GetPeerContext
func (*MockClientMockRecorder) Locations ¶
func (mr *MockClientMockRecorder) Locations(arg0 interface{}) *gomock.Call
Locations indicates an expected call of Locations
func (*MockClientMockRecorder) OverwriteMetaInfo ¶
func (mr *MockClientMockRecorder) OverwriteMetaInfo(arg0, arg1 interface{}) *gomock.Call
OverwriteMetaInfo indicates an expected call of OverwriteMetaInfo
func (*MockClientMockRecorder) ReplicateToRemote ¶
func (mr *MockClientMockRecorder) ReplicateToRemote(arg0, arg1, arg2 interface{}) *gomock.Call
ReplicateToRemote indicates an expected call of ReplicateToRemote
func (*MockClientMockRecorder) Stat ¶
func (mr *MockClientMockRecorder) Stat(arg0, arg1 interface{}) *gomock.Call
Stat indicates an expected call of Stat
func (*MockClientMockRecorder) StatLocal ¶
func (mr *MockClientMockRecorder) StatLocal(arg0, arg1 interface{}) *gomock.Call
StatLocal indicates an expected call of StatLocal
func (*MockClientMockRecorder) TransferBlob ¶
func (mr *MockClientMockRecorder) TransferBlob(arg0, arg1 interface{}) *gomock.Call
TransferBlob indicates an expected call of TransferBlob
func (*MockClientMockRecorder) UploadBlob ¶
func (mr *MockClientMockRecorder) UploadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
UploadBlob indicates an expected call of UploadBlob
type MockClientResolver ¶
type MockClientResolver struct {
// contains filtered or unexported fields
}
MockClientResolver is a mock of ClientResolver interface
func NewMockClientResolver ¶
func NewMockClientResolver(ctrl *gomock.Controller) *MockClientResolver
NewMockClientResolver creates a new mock instance
func (*MockClientResolver) EXPECT ¶
func (m *MockClientResolver) EXPECT() *MockClientResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClientResolver) Resolve ¶
func (m *MockClientResolver) Resolve(arg0 core.Digest) ([]blobclient.Client, error)
Resolve mocks base method
type MockClientResolverMockRecorder ¶
type MockClientResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockClientResolverMockRecorder is the mock recorder for MockClientResolver
func (*MockClientResolverMockRecorder) Resolve ¶
func (mr *MockClientResolverMockRecorder) Resolve(arg0 interface{}) *gomock.Call
Resolve indicates an expected call of Resolve
type MockClusterClient ¶
type MockClusterClient struct {
// contains filtered or unexported fields
}
MockClusterClient is a mock of ClusterClient interface
func NewMockClusterClient ¶
func NewMockClusterClient(ctrl *gomock.Controller) *MockClusterClient
NewMockClusterClient creates a new mock instance
func (*MockClusterClient) DownloadBlob ¶
DownloadBlob mocks base method
func (*MockClusterClient) EXPECT ¶
func (m *MockClusterClient) EXPECT() *MockClusterClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClusterClient) GetMetaInfo ¶
GetMetaInfo mocks base method
func (*MockClusterClient) OverwriteMetaInfo ¶
func (m *MockClusterClient) OverwriteMetaInfo(arg0 core.Digest, arg1 int64) error
OverwriteMetaInfo mocks base method
func (*MockClusterClient) Owners ¶
func (m *MockClusterClient) Owners(arg0 core.Digest) ([]core.PeerContext, error)
Owners mocks base method
func (*MockClusterClient) ReplicateToRemote ¶
ReplicateToRemote mocks base method
func (*MockClusterClient) UploadBlob ¶
UploadBlob mocks base method
type MockClusterClientMockRecorder ¶
type MockClusterClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterClientMockRecorder is the mock recorder for MockClusterClient
func (*MockClusterClientMockRecorder) DownloadBlob ¶
func (mr *MockClusterClientMockRecorder) DownloadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
DownloadBlob indicates an expected call of DownloadBlob
func (*MockClusterClientMockRecorder) GetMetaInfo ¶
func (mr *MockClusterClientMockRecorder) GetMetaInfo(arg0, arg1 interface{}) *gomock.Call
GetMetaInfo indicates an expected call of GetMetaInfo
func (*MockClusterClientMockRecorder) OverwriteMetaInfo ¶
func (mr *MockClusterClientMockRecorder) OverwriteMetaInfo(arg0, arg1 interface{}) *gomock.Call
OverwriteMetaInfo indicates an expected call of OverwriteMetaInfo
func (*MockClusterClientMockRecorder) Owners ¶
func (mr *MockClusterClientMockRecorder) Owners(arg0 interface{}) *gomock.Call
Owners indicates an expected call of Owners
func (*MockClusterClientMockRecorder) ReplicateToRemote ¶
func (mr *MockClusterClientMockRecorder) ReplicateToRemote(arg0, arg1, arg2 interface{}) *gomock.Call
ReplicateToRemote indicates an expected call of ReplicateToRemote
func (*MockClusterClientMockRecorder) Stat ¶
func (mr *MockClusterClientMockRecorder) Stat(arg0, arg1 interface{}) *gomock.Call
Stat indicates an expected call of Stat
func (*MockClusterClientMockRecorder) UploadBlob ¶
func (mr *MockClusterClientMockRecorder) UploadBlob(arg0, arg1, arg2 interface{}) *gomock.Call
UploadBlob indicates an expected call of UploadBlob
type MockClusterProvider ¶
type MockClusterProvider struct {
// contains filtered or unexported fields
}
MockClusterProvider is a mock of ClusterProvider interface
func NewMockClusterProvider ¶
func NewMockClusterProvider(ctrl *gomock.Controller) *MockClusterProvider
NewMockClusterProvider creates a new mock instance
func (*MockClusterProvider) EXPECT ¶
func (m *MockClusterProvider) EXPECT() *MockClusterProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClusterProvider) Provide ¶
func (m *MockClusterProvider) Provide(arg0 string) (blobclient.ClusterClient, error)
Provide mocks base method
type MockClusterProviderMockRecorder ¶
type MockClusterProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterProviderMockRecorder is the mock recorder for MockClusterProvider
func (*MockClusterProviderMockRecorder) Provide ¶
func (mr *MockClusterProviderMockRecorder) Provide(arg0 interface{}) *gomock.Call
Provide indicates an expected call of Provide
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockProvider) Provide ¶
func (m *MockProvider) Provide(arg0 string) blobclient.Client
Provide mocks base method
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider
func (*MockProviderMockRecorder) Provide ¶
func (mr *MockProviderMockRecorder) Provide(arg0 interface{}) *gomock.Call
Provide indicates an expected call of Provide