mocks

package
v0.1.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

CreateImage mocks base method.

func (*MockRegistryClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRegistryClient) GetReadAccessToken

GetReadAccessToken mocks base method.

func (*MockRegistryClient) GetWriteAccessToken

GetWriteAccessToken mocks base method.

func (*MockRegistryClient) ListDigests

ListDigests mocks base method.

func (*MockRegistryClient) ListImages

ListImages mocks base method.

func (*MockRegistryClient) ListOrgs

ListOrgs mocks base method.

func (*MockRegistryClient) ListPublicImages

ListPublicImages mocks base method.

func (*MockRegistryClient) ListPublicOrgs

ListPublicOrgs mocks base method.

func (*MockRegistryClient) ListTagsWithDetails

ListTagsWithDetails mocks base method.

func (*MockRegistryClient) RemoveImage

RemoveImage mocks base method.

func (*MockRegistryClient) RepoAvailable

RepoAvailable mocks base method.

func (*MockRegistryClient) SetImageVisibility

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL