Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Login(ctx context.Context, hostname, username, secret string, insecure bool) error
- func (m *MockClient) Logout(ctx context.Context, hostname string) error
- func (m *MockClient) Resolver(ctx context.Context, client *http.Client, plainHTTP bool) (remotes.Resolver, error)
- type MockClientMockRecorder
- type MockFetcher
- type MockFetcherMockRecorder
- type MockInterface
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) LoadModel(ref *oci.Reference) (*model.Model, error)
- func (m *MockInterface) Login(hostname, username, password string, insecure bool) error
- func (m *MockInterface) Logout(hostname string) error
- func (m *MockInterface) Models() error
- func (m *MockInterface) PullModel(ref *oci.Reference) error
- func (m *MockInterface) PushModel(ref *oci.Reference) error
- func (m *MockInterface) RemoveModel(ref *oci.Reference) error
- func (m *MockInterface) SaveModel(ch *model.Model, ref *oci.Reference) error
- func (m *MockInterface) TagModel(ref, target *oci.Reference) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) LoadModel(ref interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Login(hostname, username, password, insecure interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Logout(hostname interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Models() *gomock.Call
- func (mr *MockInterfaceMockRecorder) PullModel(ref interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PushModel(ref interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RemoveModel(ref interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SaveModel(ch, ref interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) TagModel(ref, target interface{}) *gomock.Call
- type MockPusher
- type MockPusherMockRecorder
- type MockResolver
- func (m *MockResolver) EXPECT() *MockResolverMockRecorder
- func (m *MockResolver) Fetcher(ctx context.Context, ref string) (remotes.Fetcher, error)
- func (m *MockResolver) Pusher(ctx context.Context, ref string) (remotes.Pusher, error)
- func (m *MockResolver) Resolve(ctx context.Context, ref string) (string, v1.Descriptor, error)
- type MockResolverMockRecorder
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) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) Login ¶
func (m *MockClient) Login(ctx context.Context, hostname, username, secret string, insecure bool) error
Login mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) Login ¶
func (mr *MockClientMockRecorder) Login(ctx, hostname, username, secret, insecure interface{}) *gomock.Call
Login indicates an expected call of Login
func (*MockClientMockRecorder) Logout ¶
func (mr *MockClientMockRecorder) Logout(ctx, hostname interface{}) *gomock.Call
Logout indicates an expected call of Logout
func (*MockClientMockRecorder) Resolver ¶
func (mr *MockClientMockRecorder) Resolver(ctx, client, plainHTTP interface{}) *gomock.Call
Resolver indicates an expected call of Resolver
type MockFetcher ¶
type MockFetcher struct {
// contains filtered or unexported fields
}
MockFetcher is a mock of Fetcher interface
func NewMockFetcher ¶
func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher
NewMockFetcher creates a new mock instance
func (*MockFetcher) EXPECT ¶
func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFetcher) Fetch ¶
func (m *MockFetcher) Fetch(ctx context.Context, desc v1.Descriptor) (io.ReadCloser, error)
Fetch mocks base method
type MockFetcherMockRecorder ¶
type MockFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockFetcherMockRecorder is the mock recorder for MockFetcher
func (*MockFetcherMockRecorder) Fetch ¶
func (mr *MockFetcherMockRecorder) Fetch(ctx, desc interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterface) Login ¶
func (m *MockInterface) Login(hostname, username, password string, insecure bool) error
Login mocks base method
func (*MockInterface) Logout ¶
func (m *MockInterface) Logout(hostname string) error
Logout mocks base method
func (*MockInterface) Models ¶ added in v0.0.11
func (m *MockInterface) Models() error
Models mocks base method
func (*MockInterface) PullModel ¶
func (m *MockInterface) PullModel(ref *oci.Reference) error
PullModel mocks base method
func (*MockInterface) PushModel ¶
func (m *MockInterface) PushModel(ref *oci.Reference) error
PushModel mocks base method
func (*MockInterface) RemoveModel ¶
func (m *MockInterface) RemoveModel(ref *oci.Reference) error
RemoveModel mocks base method
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface
func (*MockInterfaceMockRecorder) LoadModel ¶
func (mr *MockInterfaceMockRecorder) LoadModel(ref interface{}) *gomock.Call
LoadModel indicates an expected call of LoadModel
func (*MockInterfaceMockRecorder) Login ¶
func (mr *MockInterfaceMockRecorder) Login(hostname, username, password, insecure interface{}) *gomock.Call
Login indicates an expected call of Login
func (*MockInterfaceMockRecorder) Logout ¶
func (mr *MockInterfaceMockRecorder) Logout(hostname interface{}) *gomock.Call
Logout indicates an expected call of Logout
func (*MockInterfaceMockRecorder) Models ¶ added in v0.0.11
func (mr *MockInterfaceMockRecorder) Models() *gomock.Call
Models indicates an expected call of Models
func (*MockInterfaceMockRecorder) PullModel ¶
func (mr *MockInterfaceMockRecorder) PullModel(ref interface{}) *gomock.Call
PullModel indicates an expected call of PullModel
func (*MockInterfaceMockRecorder) PushModel ¶
func (mr *MockInterfaceMockRecorder) PushModel(ref interface{}) *gomock.Call
PushModel indicates an expected call of PushModel
func (*MockInterfaceMockRecorder) RemoveModel ¶
func (mr *MockInterfaceMockRecorder) RemoveModel(ref interface{}) *gomock.Call
RemoveModel indicates an expected call of RemoveModel
func (*MockInterfaceMockRecorder) SaveModel ¶
func (mr *MockInterfaceMockRecorder) SaveModel(ch, ref interface{}) *gomock.Call
SaveModel indicates an expected call of SaveModel
func (*MockInterfaceMockRecorder) TagModel ¶
func (mr *MockInterfaceMockRecorder) TagModel(ref, target interface{}) *gomock.Call
TagModel indicates an expected call of TagModel
type MockPusher ¶
type MockPusher struct {
// contains filtered or unexported fields
}
MockPusher is a mock of Pusher interface
func NewMockPusher ¶
func NewMockPusher(ctrl *gomock.Controller) *MockPusher
NewMockPusher creates a new mock instance
func (*MockPusher) EXPECT ¶
func (m *MockPusher) EXPECT() *MockPusherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPusher) Push ¶
func (m *MockPusher) Push(ctx context.Context, d v1.Descriptor) (content.Writer, error)
Push mocks base method
type MockPusherMockRecorder ¶
type MockPusherMockRecorder struct {
// contains filtered or unexported fields
}
MockPusherMockRecorder is the mock recorder for MockPusher
func (*MockPusherMockRecorder) Push ¶
func (mr *MockPusherMockRecorder) Push(ctx, d interface{}) *gomock.Call
Push indicates an expected call of Push
type MockResolver ¶
type MockResolver struct {
// contains filtered or unexported fields
}
MockResolver is a mock of Resolver interface
func NewMockResolver ¶
func NewMockResolver(ctrl *gomock.Controller) *MockResolver
NewMockResolver creates a new mock instance
func (*MockResolver) EXPECT ¶
func (m *MockResolver) EXPECT() *MockResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockResolver) Resolve ¶
func (m *MockResolver) Resolve(ctx context.Context, ref string) (string, v1.Descriptor, error)
Resolve mocks base method
type MockResolverMockRecorder ¶
type MockResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockResolverMockRecorder is the mock recorder for MockResolver
func (*MockResolverMockRecorder) Fetcher ¶
func (mr *MockResolverMockRecorder) Fetcher(ctx, ref interface{}) *gomock.Call
Fetcher indicates an expected call of Fetcher
func (*MockResolverMockRecorder) Pusher ¶
func (mr *MockResolverMockRecorder) Pusher(ctx, ref interface{}) *gomock.Call
Pusher indicates an expected call of Pusher
func (*MockResolverMockRecorder) Resolve ¶
func (mr *MockResolverMockRecorder) Resolve(ctx, ref interface{}) *gomock.Call
Resolve indicates an expected call of Resolve