Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRegistryClient
- func (m *MockRegistryClient) CreateImage(arg0 context.Context, arg1 *registry.CreateImageRequest, ...) (*registry.CreateImageResponse, error)
- func (m *MockRegistryClient) EXPECT() *MockRegistryClientMockRecorder
- func (m *MockRegistryClient) GetReadAccessToken(arg0 context.Context, arg1 *registry.GetReadAccessTokenRequest, ...) (*registry.GetReadAccessTokenResponse, error)
- func (m *MockRegistryClient) GetWriteAccessToken(arg0 context.Context, arg1 *registry.GetWriteAccessTokenRequest, ...) (*registry.GetWriteAccessTokenResponse, error)
- func (m *MockRegistryClient) ListDigests(arg0 context.Context, arg1 *registry.ListDigestsRequest, ...) (*registry.ListDigestsResponse, error)
- func (m *MockRegistryClient) ListImages(arg0 context.Context, arg1 *registry.ListImagesRequest, ...) (*registry.ListImagesResponse, error)
- func (m *MockRegistryClient) ListOrgs(arg0 context.Context, arg1 *registry.ListOrgsRequest, arg2 ...grpc.CallOption) (*registry.ListOrgsResponse, error)
- func (m *MockRegistryClient) ListPublicImages(arg0 context.Context, arg1 *registry.ListPublicImagesRequest, ...) (*registry.ListPublicImagesResponse, error)
- func (m *MockRegistryClient) ListPublicOrgs(arg0 context.Context, arg1 *registry.ListPublicOrgsRequest, ...) (*registry.ListPublicOrgsResponse, error)
- func (m *MockRegistryClient) ListTagsWithDetails(arg0 context.Context, arg1 *registry.ListTagsWithDetailsRequest, ...) (*registry.ListTagsWithDetailsResponse, error)
- func (m *MockRegistryClient) RemoveImage(arg0 context.Context, arg1 *registry.RemoveImageRequest, ...) (*registry.RemoveImageResponse, error)
- func (m *MockRegistryClient) RepoAvailable(arg0 context.Context, arg1 *registry.RepoAvailableRequest, ...) (*registry.RepoAvailableResponse, error)
- func (m *MockRegistryClient) SetImageVisibility(arg0 context.Context, arg1 *registry.SetImageVisibilityRequest, ...) (*registry.SetImageVisibilityResponse, error)
- type MockRegistryClientMockRecorder
- func (mr *MockRegistryClientMockRecorder) CreateImage(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) GetReadAccessToken(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) GetWriteAccessToken(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) ListDigests(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) ListImages(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) ListOrgs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) ListPublicImages(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) ListPublicOrgs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) ListTagsWithDetails(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) RemoveImage(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) RepoAvailable(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockRegistryClientMockRecorder) SetImageVisibility(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockSource
- func (m *MockSource) AddSecretToRepo(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3, arg4, arg5 string, ...) error
- func (m *MockSource) CreateCommitOnBranch(arg0 context.Context, arg1 *sources.AccessToken, arg2 *sources.Commit) error
- func (m *MockSource) CreateRepo(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) error
- func (m *MockSource) EXPECT() *MockSourceMockRecorder
- func (m *MockSource) GetDefaultBranch(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) (string, error)
- func (m *MockSource) GetRepo(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) (*scc.Repo, error)
- func (m *MockSource) HasSecret(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3, arg4 string) (bool, error)
- func (m *MockSource) InitialTag(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) error
- func (m *MockSource) ListOrgs(arg0 context.Context, arg1 *sources.AccessToken, arg2 *api.PaginationRequest) ([]*api.SccOrg, *api.PaginationResponse, error)
- func (m *MockSource) ListRepos(arg0 context.Context, arg1 *sources.AccessToken, arg2 string, ...) ([]*scc.Repo, *api.PaginationResponse, error)
- func (m *MockSource) Profile(arg0 context.Context, arg1 *sources.AccessToken) (string, []*scc.Repo, error)
- func (m *MockSource) ValidateConnection(arg0 context.Context, arg1 *sources.AccessToken, arg2 []string) error
- type MockSourceMockRecorder
- func (mr *MockSourceMockRecorder) AddSecretToRepo(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) CreateCommitOnBranch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) CreateRepo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) GetDefaultBranch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) GetRepo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) HasSecret(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) InitialTag(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) ListOrgs(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) ListRepos(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) Profile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) ValidateConnection(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRegistryClient ¶
type MockRegistryClient struct {
// contains filtered or unexported fields
}
MockRegistryClient is a mock of RegistryClient interface.
func NewMockRegistryClient ¶
func NewMockRegistryClient(ctrl *gomock.Controller) *MockRegistryClient
NewMockRegistryClient creates a new mock instance.
func (*MockRegistryClient) CreateImage ¶
func (m *MockRegistryClient) CreateImage(arg0 context.Context, arg1 *registry.CreateImageRequest, arg2 ...grpc.CallOption) (*registry.CreateImageResponse, error)
CreateImage mocks base method.
func (*MockRegistryClient) EXPECT ¶
func (m *MockRegistryClient) EXPECT() *MockRegistryClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegistryClient) GetReadAccessToken ¶
func (m *MockRegistryClient) GetReadAccessToken(arg0 context.Context, arg1 *registry.GetReadAccessTokenRequest, arg2 ...grpc.CallOption) (*registry.GetReadAccessTokenResponse, error)
GetReadAccessToken mocks base method.
func (*MockRegistryClient) GetWriteAccessToken ¶
func (m *MockRegistryClient) GetWriteAccessToken(arg0 context.Context, arg1 *registry.GetWriteAccessTokenRequest, arg2 ...grpc.CallOption) (*registry.GetWriteAccessTokenResponse, error)
GetWriteAccessToken mocks base method.
func (*MockRegistryClient) ListDigests ¶
func (m *MockRegistryClient) ListDigests(arg0 context.Context, arg1 *registry.ListDigestsRequest, arg2 ...grpc.CallOption) (*registry.ListDigestsResponse, error)
ListDigests mocks base method.
func (*MockRegistryClient) ListImages ¶
func (m *MockRegistryClient) ListImages(arg0 context.Context, arg1 *registry.ListImagesRequest, arg2 ...grpc.CallOption) (*registry.ListImagesResponse, error)
ListImages mocks base method.
func (*MockRegistryClient) ListOrgs ¶
func (m *MockRegistryClient) ListOrgs(arg0 context.Context, arg1 *registry.ListOrgsRequest, arg2 ...grpc.CallOption) (*registry.ListOrgsResponse, error)
ListOrgs mocks base method.
func (*MockRegistryClient) ListPublicImages ¶
func (m *MockRegistryClient) ListPublicImages(arg0 context.Context, arg1 *registry.ListPublicImagesRequest, arg2 ...grpc.CallOption) (*registry.ListPublicImagesResponse, error)
ListPublicImages mocks base method.
func (*MockRegistryClient) ListPublicOrgs ¶
func (m *MockRegistryClient) ListPublicOrgs(arg0 context.Context, arg1 *registry.ListPublicOrgsRequest, arg2 ...grpc.CallOption) (*registry.ListPublicOrgsResponse, error)
ListPublicOrgs mocks base method.
func (*MockRegistryClient) ListTagsWithDetails ¶
func (m *MockRegistryClient) ListTagsWithDetails(arg0 context.Context, arg1 *registry.ListTagsWithDetailsRequest, arg2 ...grpc.CallOption) (*registry.ListTagsWithDetailsResponse, error)
ListTagsWithDetails mocks base method.
func (*MockRegistryClient) RemoveImage ¶
func (m *MockRegistryClient) RemoveImage(arg0 context.Context, arg1 *registry.RemoveImageRequest, arg2 ...grpc.CallOption) (*registry.RemoveImageResponse, error)
RemoveImage mocks base method.
func (*MockRegistryClient) RepoAvailable ¶
func (m *MockRegistryClient) RepoAvailable(arg0 context.Context, arg1 *registry.RepoAvailableRequest, arg2 ...grpc.CallOption) (*registry.RepoAvailableResponse, error)
RepoAvailable mocks base method.
func (*MockRegistryClient) SetImageVisibility ¶
func (m *MockRegistryClient) SetImageVisibility(arg0 context.Context, arg1 *registry.SetImageVisibilityRequest, arg2 ...grpc.CallOption) (*registry.SetImageVisibilityResponse, error)
SetImageVisibility mocks base method.
type MockRegistryClientMockRecorder ¶
type MockRegistryClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryClientMockRecorder is the mock recorder for MockRegistryClient.
func (*MockRegistryClientMockRecorder) CreateImage ¶
func (mr *MockRegistryClientMockRecorder) CreateImage(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateImage indicates an expected call of CreateImage.
func (*MockRegistryClientMockRecorder) GetReadAccessToken ¶
func (mr *MockRegistryClientMockRecorder) GetReadAccessToken(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetReadAccessToken indicates an expected call of GetReadAccessToken.
func (*MockRegistryClientMockRecorder) GetWriteAccessToken ¶
func (mr *MockRegistryClientMockRecorder) GetWriteAccessToken(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetWriteAccessToken indicates an expected call of GetWriteAccessToken.
func (*MockRegistryClientMockRecorder) ListDigests ¶
func (mr *MockRegistryClientMockRecorder) ListDigests(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListDigests indicates an expected call of ListDigests.
func (*MockRegistryClientMockRecorder) ListImages ¶
func (mr *MockRegistryClientMockRecorder) ListImages(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListImages indicates an expected call of ListImages.
func (*MockRegistryClientMockRecorder) ListOrgs ¶
func (mr *MockRegistryClientMockRecorder) ListOrgs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListOrgs indicates an expected call of ListOrgs.
func (*MockRegistryClientMockRecorder) ListPublicImages ¶
func (mr *MockRegistryClientMockRecorder) ListPublicImages(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListPublicImages indicates an expected call of ListPublicImages.
func (*MockRegistryClientMockRecorder) ListPublicOrgs ¶
func (mr *MockRegistryClientMockRecorder) ListPublicOrgs(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListPublicOrgs indicates an expected call of ListPublicOrgs.
func (*MockRegistryClientMockRecorder) ListTagsWithDetails ¶
func (mr *MockRegistryClientMockRecorder) ListTagsWithDetails(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListTagsWithDetails indicates an expected call of ListTagsWithDetails.
func (*MockRegistryClientMockRecorder) RemoveImage ¶
func (mr *MockRegistryClientMockRecorder) RemoveImage(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
RemoveImage indicates an expected call of RemoveImage.
func (*MockRegistryClientMockRecorder) RepoAvailable ¶
func (mr *MockRegistryClientMockRecorder) RepoAvailable(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
RepoAvailable indicates an expected call of RepoAvailable.
func (*MockRegistryClientMockRecorder) SetImageVisibility ¶
func (mr *MockRegistryClientMockRecorder) SetImageVisibility(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
SetImageVisibility indicates an expected call of SetImageVisibility.
type MockSource ¶
type MockSource struct {
// contains filtered or unexported fields
}
MockSource is a mock of Source interface.
func NewMockSource ¶
func NewMockSource(ctrl *gomock.Controller) *MockSource
NewMockSource creates a new mock instance.
func (*MockSource) AddSecretToRepo ¶
func (m *MockSource) AddSecretToRepo(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3, arg4, arg5 string, arg6 bool) error
AddSecretToRepo mocks base method.
func (*MockSource) CreateCommitOnBranch ¶
func (m *MockSource) CreateCommitOnBranch(arg0 context.Context, arg1 *sources.AccessToken, arg2 *sources.Commit) error
CreateCommitOnBranch mocks base method.
func (*MockSource) CreateRepo ¶
func (m *MockSource) CreateRepo(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) error
CreateRepo mocks base method.
func (*MockSource) EXPECT ¶
func (m *MockSource) EXPECT() *MockSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSource) GetDefaultBranch ¶
func (m *MockSource) GetDefaultBranch(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) (string, error)
GetDefaultBranch mocks base method.
func (*MockSource) GetRepo ¶
func (m *MockSource) GetRepo(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) (*scc.Repo, error)
GetRepo mocks base method.
func (*MockSource) HasSecret ¶
func (m *MockSource) HasSecret(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3, arg4 string) (bool, error)
HasSecret mocks base method.
func (*MockSource) InitialTag ¶
func (m *MockSource) InitialTag(arg0 context.Context, arg1 *sources.AccessToken, arg2, arg3 string) error
InitialTag mocks base method.
func (*MockSource) ListOrgs ¶
func (m *MockSource) ListOrgs(arg0 context.Context, arg1 *sources.AccessToken, arg2 *api.PaginationRequest) ([]*api.SccOrg, *api.PaginationResponse, error)
ListOrgs mocks base method.
func (*MockSource) ListRepos ¶
func (m *MockSource) ListRepos(arg0 context.Context, arg1 *sources.AccessToken, arg2 string, arg3 *api.PaginationRequest) ([]*scc.Repo, *api.PaginationResponse, error)
ListRepos mocks base method.
func (*MockSource) Profile ¶
func (m *MockSource) Profile(arg0 context.Context, arg1 *sources.AccessToken) (string, []*scc.Repo, error)
Profile mocks base method.
func (*MockSource) ValidateConnection ¶
func (m *MockSource) ValidateConnection(arg0 context.Context, arg1 *sources.AccessToken, arg2 []string) error
ValidateConnection mocks base method.
type MockSourceMockRecorder ¶
type MockSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockSourceMockRecorder is the mock recorder for MockSource.
func (*MockSourceMockRecorder) AddSecretToRepo ¶
func (mr *MockSourceMockRecorder) AddSecretToRepo(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call
AddSecretToRepo indicates an expected call of AddSecretToRepo.
func (*MockSourceMockRecorder) CreateCommitOnBranch ¶
func (mr *MockSourceMockRecorder) CreateCommitOnBranch(arg0, arg1, arg2 interface{}) *gomock.Call
CreateCommitOnBranch indicates an expected call of CreateCommitOnBranch.
func (*MockSourceMockRecorder) CreateRepo ¶
func (mr *MockSourceMockRecorder) CreateRepo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateRepo indicates an expected call of CreateRepo.
func (*MockSourceMockRecorder) GetDefaultBranch ¶
func (mr *MockSourceMockRecorder) GetDefaultBranch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetDefaultBranch indicates an expected call of GetDefaultBranch.
func (*MockSourceMockRecorder) GetRepo ¶
func (mr *MockSourceMockRecorder) GetRepo(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetRepo indicates an expected call of GetRepo.
func (*MockSourceMockRecorder) HasSecret ¶
func (mr *MockSourceMockRecorder) HasSecret(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
HasSecret indicates an expected call of HasSecret.
func (*MockSourceMockRecorder) InitialTag ¶
func (mr *MockSourceMockRecorder) InitialTag(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
InitialTag indicates an expected call of InitialTag.
func (*MockSourceMockRecorder) ListOrgs ¶
func (mr *MockSourceMockRecorder) ListOrgs(arg0, arg1, arg2 interface{}) *gomock.Call
ListOrgs indicates an expected call of ListOrgs.
func (*MockSourceMockRecorder) ListRepos ¶
func (mr *MockSourceMockRecorder) ListRepos(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ListRepos indicates an expected call of ListRepos.
func (*MockSourceMockRecorder) Profile ¶
func (mr *MockSourceMockRecorder) Profile(arg0, arg1 interface{}) *gomock.Call
Profile indicates an expected call of Profile.
func (*MockSourceMockRecorder) ValidateConnection ¶
func (mr *MockSourceMockRecorder) ValidateConnection(arg0, arg1, arg2 interface{}) *gomock.Call
ValidateConnection indicates an expected call of ValidateConnection.