Documentation ¶
Overview ¶
Package mock_github is a generated GoMock package.
Package mock_github is a generated GoMock package.
Package mock_github is a generated GoMock package.
Index ¶
- type MockArtifactProvider
- type MockArtifactProviderMockRecorder
- type MockClientService
- func (m *MockClientService) DeleteInstallation(ctx context.Context, id int64, jwt string) (*github.Response, error)
- func (m *MockClientService) EXPECT() *MockClientServiceMockRecorder
- func (m *MockClientService) GetInstallation(ctx context.Context, id int64, jwt string) (*github.Installation, *github.Response, error)
- func (m *MockClientService) GetOrgMembership(ctx context.Context, token *oauth2.Token, org string) (*github.Membership, *github.Response, error)
- func (m *MockClientService) GetUserIdFromToken(ctx context.Context, token *oauth2.Token) (*int64, error)
- func (m *MockClientService) ListUserInstallations(ctx context.Context, token *oauth2.Token) ([]*github.Installation, error)
- type MockClientServiceMockRecorder
- func (mr *MockClientServiceMockRecorder) DeleteInstallation(ctx, id, jwt any) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetInstallation(ctx, id, jwt any) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetOrgMembership(ctx, token, org any) *gomock.Call
- func (mr *MockClientServiceMockRecorder) GetUserIdFromToken(ctx, token any) *gomock.Call
- func (mr *MockClientServiceMockRecorder) ListUserInstallations(ctx, token any) *gomock.Call
- type MockDelegate
- func (m *MockDelegate) EXPECT() *MockDelegateMockRecorder
- func (m *MockDelegate) GetCredential() v10.GitHubCredential
- func (m *MockDelegate) GetLogin(ctx context.Context) (string, error)
- func (m *MockDelegate) GetName(ctx context.Context) (string, error)
- func (m *MockDelegate) GetOwner() string
- func (m *MockDelegate) GetPrimaryEmail(ctx context.Context) (string, error)
- func (m *MockDelegate) GetUserId(ctx context.Context) (int64, error)
- func (m *MockDelegate) IsOrg() bool
- func (m *MockDelegate) ListAllRepositories(arg0 context.Context) ([]*v1.Repository, error)
- type MockDelegateMockRecorder
- func (mr *MockDelegateMockRecorder) GetCredential() *gomock.Call
- func (mr *MockDelegateMockRecorder) GetLogin(ctx any) *gomock.Call
- func (mr *MockDelegateMockRecorder) GetName(ctx any) *gomock.Call
- func (mr *MockDelegateMockRecorder) GetOwner() *gomock.Call
- func (mr *MockDelegateMockRecorder) GetPrimaryEmail(ctx any) *gomock.Call
- func (mr *MockDelegateMockRecorder) GetUserId(ctx any) *gomock.Call
- func (mr *MockDelegateMockRecorder) IsOrg() *gomock.Call
- func (mr *MockDelegateMockRecorder) ListAllRepositories(arg0 any) *gomock.Call
- type MockGetArtifactVersionsFilter
- type MockGetArtifactVersionsFilterMockRecorder
- type MockGit
- func (m *MockGit) CanImplement(trait v10.ProviderType) bool
- func (m *MockGit) Clone(ctx context.Context, url, branch string) (*git.Repository, error)
- func (m *MockGit) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockGit) EXPECT() *MockGitMockRecorder
- func (m *MockGit) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Properties, error)
- func (m *MockGit) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Property, error)
- func (m *MockGit) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
- func (m *MockGit) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
- func (m *MockGit) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
- func (m *MockGit) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockGit) SupportsEntity(entType v10.Entity) bool
- type MockGitHub
- func (m *MockGitHub) AddAuthToPushOptions(ctx context.Context, options *git.PushOptions) error
- func (m *MockGitHub) CanImplement(trait v10.ProviderType) bool
- func (m *MockGitHub) Clone(ctx context.Context, url, branch string) (*git.Repository, error)
- func (m *MockGitHub) ClosePullRequest(ctx context.Context, owner, repo string, number int) (*github.PullRequest, error)
- func (m *MockGitHub) CloseSecurityAdvisory(ctx context.Context, owner, repo, id string) error
- func (m *MockGitHub) CreateHook(ctx context.Context, owner, repo string, hook *github.Hook) (*github.Hook, error)
- func (m *MockGitHub) CreateIssueComment(ctx context.Context, owner, repo string, number int, comment string) (*github.IssueComment, error)
- func (m *MockGitHub) CreatePullRequest(ctx context.Context, owner, repo, title, body, head, base string) (*github.PullRequest, error)
- func (m *MockGitHub) CreateReview(arg0 context.Context, arg1, arg2 string, arg3 int, ...) (*github.PullRequestReview, error)
- func (m *MockGitHub) CreateSecurityAdvisory(ctx context.Context, owner, repo, severity, summary, description string, ...) (string, error)
- func (m *MockGitHub) DeleteHook(ctx context.Context, owner, repo string, id int64) error
- func (m *MockGitHub) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockGitHub) DismissReview(arg0 context.Context, arg1, arg2 string, arg3 int, arg4 int64, ...) (*github.PullRequestReview, error)
- func (m *MockGitHub) Do(ctx context.Context, req *http.Request) (*http.Response, error)
- func (m *MockGitHub) EXPECT() *MockGitHubMockRecorder
- func (m *MockGitHub) EditHook(ctx context.Context, owner, repo string, id int64, hook *github.Hook) (*github.Hook, error)
- func (m *MockGitHub) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Properties, error)
- func (m *MockGitHub) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Property, error)
- func (m *MockGitHub) GetArtifactVersions(ctx context.Context, artifact *v10.Artifact, ...) ([]*v10.ArtifactVersion, error)
- func (m *MockGitHub) GetBaseURL() string
- func (m *MockGitHub) GetBranchProtection(arg0 context.Context, arg1, arg2, arg3 string) (*github.Protection, error)
- func (m *MockGitHub) GetCredential() v11.GitHubCredential
- func (m *MockGitHub) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
- func (m *MockGitHub) GetLogin(ctx context.Context) (string, error)
- func (m *MockGitHub) GetName(ctx context.Context) (string, error)
- func (m *MockGitHub) GetNamespaceURL() string
- func (m *MockGitHub) GetPackageByName(arg0 context.Context, arg1, arg2, arg3 string) (*github.Package, error)
- func (m *MockGitHub) GetPackageVersionById(arg0 context.Context, arg1, arg2, arg3 string, arg4 int64) (*github.PackageVersion, error)
- func (m *MockGitHub) GetPrimaryEmail(ctx context.Context) (string, error)
- func (m *MockGitHub) GetPullRequest(arg0 context.Context, arg1, arg2 string, arg3 int) (*github.PullRequest, error)
- func (m *MockGitHub) GetRepository(arg0 context.Context, arg1, arg2 string) (*github.Repository, error)
- func (m *MockGitHub) GetUserId(ctx context.Context) (int64, error)
- func (m *MockGitHub) IsOrg() bool
- func (m *MockGitHub) ListAllRepositories(arg0 context.Context) ([]*v10.Repository, error)
- func (m *MockGitHub) ListFiles(ctx context.Context, owner, repo string, prNumber, perPage, pageNumber int) ([]*github.CommitFile, *github.Response, error)
- func (m *MockGitHub) ListHooks(ctx context.Context, owner, repo string) ([]*github.Hook, error)
- func (m *MockGitHub) ListImages(ctx context.Context) ([]string, error)
- func (m *MockGitHub) ListIssueComments(ctx context.Context, owner, repo string, number int, ...) ([]*github.IssueComment, error)
- func (m *MockGitHub) ListPackagesByRepository(arg0 context.Context, arg1, arg2 string, arg3 int64, arg4, arg5 int) ([]*github.Package, error)
- func (m *MockGitHub) ListPullRequests(ctx context.Context, owner, repo string, opt *github.PullRequestListOptions) ([]*github.PullRequest, error)
- func (m *MockGitHub) ListReviews(arg0 context.Context, arg1, arg2 string, arg3 int, arg4 *github.ListOptions) ([]*github.PullRequestReview, error)
- func (m *MockGitHub) NewRequest(method, url string, body any) (*http.Request, error)
- func (m *MockGitHub) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
- func (m *MockGitHub) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
- func (m *MockGitHub) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockGitHub) SetCommitStatus(arg0 context.Context, arg1, arg2, arg3 string, arg4 *github.RepoStatus) (*github.RepoStatus, error)
- func (m *MockGitHub) StartCheckRun(arg0 context.Context, arg1, arg2 string, arg3 *github.CreateCheckRunOptions) (*github.CheckRun, error)
- func (m *MockGitHub) SupportsEntity(entType v10.Entity) bool
- func (m *MockGitHub) UpdateBranchProtection(arg0 context.Context, arg1, arg2, arg3 string, arg4 *github.ProtectionRequest) error
- func (m *MockGitHub) UpdateCheckRun(arg0 context.Context, arg1, arg2 string, arg3 int64, ...) (*github.CheckRun, error)
- func (m *MockGitHub) UpdateIssueComment(ctx context.Context, owner, repo string, number int64, comment string) error
- func (m *MockGitHub) UpdateReview(arg0 context.Context, arg1, arg2 string, arg3 int, arg4 int64, arg5 string) (*github.PullRequestReview, error)
- type MockGitHubMockRecorder
- func (mr *MockGitHubMockRecorder) AddAuthToPushOptions(ctx, options any) *gomock.Call
- func (mr *MockGitHubMockRecorder) CanImplement(trait any) *gomock.Call
- func (mr *MockGitHubMockRecorder) Clone(ctx, url, branch any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ClosePullRequest(ctx, owner, repo, number any) *gomock.Call
- func (mr *MockGitHubMockRecorder) CloseSecurityAdvisory(ctx, owner, repo, id any) *gomock.Call
- func (mr *MockGitHubMockRecorder) CreateHook(ctx, owner, repo, hook any) *gomock.Call
- func (mr *MockGitHubMockRecorder) CreateIssueComment(ctx, owner, repo, number, comment any) *gomock.Call
- func (mr *MockGitHubMockRecorder) CreatePullRequest(ctx, owner, repo, title, body, head, base any) *gomock.Call
- func (mr *MockGitHubMockRecorder) CreateReview(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) CreateSecurityAdvisory(ctx, owner, repo, severity, summary, description, v any) *gomock.Call
- func (mr *MockGitHubMockRecorder) DeleteHook(ctx, owner, repo, id any) *gomock.Call
- func (mr *MockGitHubMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockGitHubMockRecorder) DismissReview(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) Do(ctx, req any) *gomock.Call
- func (mr *MockGitHubMockRecorder) EditHook(ctx, owner, repo, id, hook any) *gomock.Call
- func (mr *MockGitHubMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
- func (mr *MockGitHubMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetArtifactVersions(ctx, artifact, filter any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetBaseURL() *gomock.Call
- func (mr *MockGitHubMockRecorder) GetBranchProtection(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetCredential() *gomock.Call
- func (mr *MockGitHubMockRecorder) GetEntityName(entType, props any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetLogin(ctx any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetName(ctx any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetNamespaceURL() *gomock.Call
- func (mr *MockGitHubMockRecorder) GetPackageByName(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetPackageVersionById(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetPrimaryEmail(ctx any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetPullRequest(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetRepository(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) GetUserId(ctx any) *gomock.Call
- func (mr *MockGitHubMockRecorder) IsOrg() *gomock.Call
- func (mr *MockGitHubMockRecorder) ListAllRepositories(arg0 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ListFiles(ctx, owner, repo, prNumber, perPage, pageNumber any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ListHooks(ctx, owner, repo any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ListImages(ctx any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ListIssueComments(ctx, owner, repo, number, opts any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ListPackagesByRepository(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ListPullRequests(ctx, owner, repo, opt any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ListReviews(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) NewRequest(method, url, body any) *gomock.Call
- func (mr *MockGitHubMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
- func (mr *MockGitHubMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockGitHubMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockGitHubMockRecorder) SetCommitStatus(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) StartCheckRun(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) SupportsEntity(entType any) *gomock.Call
- func (mr *MockGitHubMockRecorder) UpdateBranchProtection(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) UpdateCheckRun(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockGitHubMockRecorder) UpdateIssueComment(ctx, owner, repo, number, comment any) *gomock.Call
- func (mr *MockGitHubMockRecorder) UpdateReview(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call
- type MockGitMockRecorder
- func (mr *MockGitMockRecorder) CanImplement(trait any) *gomock.Call
- func (mr *MockGitMockRecorder) Clone(ctx, url, branch any) *gomock.Call
- func (mr *MockGitMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockGitMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
- func (mr *MockGitMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
- func (mr *MockGitMockRecorder) GetEntityName(entType, props any) *gomock.Call
- func (mr *MockGitMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
- func (mr *MockGitMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockGitMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockGitMockRecorder) SupportsEntity(entType any) *gomock.Call
- type MockImageLister
- func (m *MockImageLister) CanImplement(trait v10.ProviderType) bool
- func (m *MockImageLister) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockImageLister) EXPECT() *MockImageListerMockRecorder
- func (m *MockImageLister) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Properties, error)
- func (m *MockImageLister) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Property, error)
- func (m *MockImageLister) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
- func (m *MockImageLister) GetNamespaceURL() string
- func (m *MockImageLister) ListImages(ctx context.Context) ([]string, error)
- func (m *MockImageLister) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
- func (m *MockImageLister) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
- func (m *MockImageLister) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockImageLister) SupportsEntity(entType v10.Entity) bool
- type MockImageListerMockRecorder
- func (mr *MockImageListerMockRecorder) CanImplement(trait any) *gomock.Call
- func (mr *MockImageListerMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockImageListerMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
- func (mr *MockImageListerMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
- func (mr *MockImageListerMockRecorder) GetEntityName(entType, props any) *gomock.Call
- func (mr *MockImageListerMockRecorder) GetNamespaceURL() *gomock.Call
- func (mr *MockImageListerMockRecorder) ListImages(ctx any) *gomock.Call
- func (mr *MockImageListerMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
- func (mr *MockImageListerMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockImageListerMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockImageListerMockRecorder) SupportsEntity(entType any) *gomock.Call
- type MockOCI
- func (m *MockOCI) CanImplement(trait v10.ProviderType) bool
- func (m *MockOCI) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockOCI) EXPECT() *MockOCIMockRecorder
- func (m *MockOCI) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Properties, error)
- func (m *MockOCI) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Property, error)
- func (m *MockOCI) GetArtifactVersions(ctx context.Context, artifact *v10.Artifact, ...) ([]*v10.ArtifactVersion, error)
- func (m *MockOCI) GetAuthenticator() (authn.Authenticator, error)
- func (m *MockOCI) GetDigest(ctx context.Context, name, tag string) (string, error)
- func (m *MockOCI) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
- func (m *MockOCI) GetManifest(ctx context.Context, name, tag string) (*v1.Manifest, error)
- func (m *MockOCI) GetReferrer(ctx context.Context, name, tag, artifactType string) (any, error)
- func (m *MockOCI) GetRegistry() string
- func (m *MockOCI) ListTags(ctx context.Context, name string) ([]string, error)
- func (m *MockOCI) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
- func (m *MockOCI) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
- func (m *MockOCI) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockOCI) SupportsEntity(entType v10.Entity) bool
- type MockOCIMockRecorder
- func (mr *MockOCIMockRecorder) CanImplement(trait any) *gomock.Call
- func (mr *MockOCIMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockOCIMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
- func (mr *MockOCIMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
- func (mr *MockOCIMockRecorder) GetArtifactVersions(ctx, artifact, filter any) *gomock.Call
- func (mr *MockOCIMockRecorder) GetAuthenticator() *gomock.Call
- func (mr *MockOCIMockRecorder) GetDigest(ctx, name, tag any) *gomock.Call
- func (mr *MockOCIMockRecorder) GetEntityName(entType, props any) *gomock.Call
- func (mr *MockOCIMockRecorder) GetManifest(ctx, name, tag any) *gomock.Call
- func (mr *MockOCIMockRecorder) GetReferrer(ctx, name, tag, artifactType any) *gomock.Call
- func (mr *MockOCIMockRecorder) GetRegistry() *gomock.Call
- func (mr *MockOCIMockRecorder) ListTags(ctx, name any) *gomock.Call
- func (mr *MockOCIMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
- func (mr *MockOCIMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockOCIMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockOCIMockRecorder) SupportsEntity(entType any) *gomock.Call
- type MockProvider
- func (m *MockProvider) CanImplement(trait v10.ProviderType) bool
- func (m *MockProvider) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Properties, error)
- func (m *MockProvider) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Property, error)
- func (m *MockProvider) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
- func (m *MockProvider) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
- func (m *MockProvider) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
- func (m *MockProvider) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockProvider) SupportsEntity(entType v10.Entity) bool
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) CanImplement(trait any) *gomock.Call
- func (mr *MockProviderMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockProviderMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
- func (mr *MockProviderMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
- func (mr *MockProviderMockRecorder) GetEntityName(entType, props any) *gomock.Call
- func (mr *MockProviderMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
- func (mr *MockProviderMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockProviderMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockProviderMockRecorder) SupportsEntity(entType any) *gomock.Call
- type MockREST
- func (m *MockREST) CanImplement(trait v10.ProviderType) bool
- func (m *MockREST) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockREST) Do(ctx context.Context, req *http.Request) (*http.Response, error)
- func (m *MockREST) EXPECT() *MockRESTMockRecorder
- func (m *MockREST) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Properties, error)
- func (m *MockREST) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Property, error)
- func (m *MockREST) GetBaseURL() string
- func (m *MockREST) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
- func (m *MockREST) NewRequest(method, url string, body any) (*http.Request, error)
- func (m *MockREST) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
- func (m *MockREST) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
- func (m *MockREST) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockREST) SupportsEntity(entType v10.Entity) bool
- type MockRESTMockRecorder
- func (mr *MockRESTMockRecorder) CanImplement(trait any) *gomock.Call
- func (mr *MockRESTMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockRESTMockRecorder) Do(ctx, req any) *gomock.Call
- func (mr *MockRESTMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
- func (mr *MockRESTMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
- func (mr *MockRESTMockRecorder) GetBaseURL() *gomock.Call
- func (mr *MockRESTMockRecorder) GetEntityName(entType, props any) *gomock.Call
- func (mr *MockRESTMockRecorder) NewRequest(method, url, body any) *gomock.Call
- func (mr *MockRESTMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
- func (mr *MockRESTMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockRESTMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockRESTMockRecorder) SupportsEntity(entType any) *gomock.Call
- type MockRepoLister
- func (m *MockRepoLister) CanImplement(trait v10.ProviderType) bool
- func (m *MockRepoLister) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockRepoLister) EXPECT() *MockRepoListerMockRecorder
- func (m *MockRepoLister) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Properties, error)
- func (m *MockRepoLister) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, ...) (*properties.Property, error)
- func (m *MockRepoLister) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
- func (m *MockRepoLister) ListAllRepositories(arg0 context.Context) ([]*v10.Repository, error)
- func (m *MockRepoLister) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
- func (m *MockRepoLister) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
- func (m *MockRepoLister) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
- func (m *MockRepoLister) SupportsEntity(entType v10.Entity) bool
- type MockRepoListerMockRecorder
- func (mr *MockRepoListerMockRecorder) CanImplement(trait any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) GetEntityName(entType, props any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) ListAllRepositories(arg0 any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
- func (mr *MockRepoListerMockRecorder) SupportsEntity(entType any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockArtifactProvider ¶
type MockArtifactProvider struct {
// contains filtered or unexported fields
}
MockArtifactProvider is a mock of ArtifactProvider interface.
func NewMockArtifactProvider ¶
func NewMockArtifactProvider(ctrl *gomock.Controller) *MockArtifactProvider
NewMockArtifactProvider creates a new mock instance.
func (*MockArtifactProvider) EXPECT ¶
func (m *MockArtifactProvider) EXPECT() *MockArtifactProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockArtifactProvider) GetArtifactVersions ¶
func (m *MockArtifactProvider) GetArtifactVersions(ctx context.Context, artifact *v10.Artifact, filter v11.GetArtifactVersionsFilter) ([]*v10.ArtifactVersion, error)
GetArtifactVersions mocks base method.
type MockArtifactProviderMockRecorder ¶
type MockArtifactProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockArtifactProviderMockRecorder is the mock recorder for MockArtifactProvider.
func (*MockArtifactProviderMockRecorder) GetArtifactVersions ¶
func (mr *MockArtifactProviderMockRecorder) GetArtifactVersions(ctx, artifact, filter any) *gomock.Call
GetArtifactVersions indicates an expected call of GetArtifactVersions.
type MockClientService ¶
type MockClientService struct {
// contains filtered or unexported fields
}
MockClientService is a mock of ClientService interface.
func NewMockClientService ¶
func NewMockClientService(ctrl *gomock.Controller) *MockClientService
NewMockClientService creates a new mock instance.
func (*MockClientService) DeleteInstallation ¶
func (m *MockClientService) DeleteInstallation(ctx context.Context, id int64, jwt string) (*github.Response, error)
DeleteInstallation mocks base method.
func (*MockClientService) EXPECT ¶
func (m *MockClientService) EXPECT() *MockClientServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientService) GetInstallation ¶
func (m *MockClientService) GetInstallation(ctx context.Context, id int64, jwt string) (*github.Installation, *github.Response, error)
GetInstallation mocks base method.
func (*MockClientService) GetOrgMembership ¶
func (m *MockClientService) GetOrgMembership(ctx context.Context, token *oauth2.Token, org string) (*github.Membership, *github.Response, error)
GetOrgMembership mocks base method.
func (*MockClientService) GetUserIdFromToken ¶
func (m *MockClientService) GetUserIdFromToken(ctx context.Context, token *oauth2.Token) (*int64, error)
GetUserIdFromToken mocks base method.
func (*MockClientService) ListUserInstallations ¶
func (m *MockClientService) ListUserInstallations(ctx context.Context, token *oauth2.Token) ([]*github.Installation, error)
ListUserInstallations mocks base method.
type MockClientServiceMockRecorder ¶
type MockClientServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockClientServiceMockRecorder is the mock recorder for MockClientService.
func (*MockClientServiceMockRecorder) DeleteInstallation ¶
func (mr *MockClientServiceMockRecorder) DeleteInstallation(ctx, id, jwt any) *gomock.Call
DeleteInstallation indicates an expected call of DeleteInstallation.
func (*MockClientServiceMockRecorder) GetInstallation ¶
func (mr *MockClientServiceMockRecorder) GetInstallation(ctx, id, jwt any) *gomock.Call
GetInstallation indicates an expected call of GetInstallation.
func (*MockClientServiceMockRecorder) GetOrgMembership ¶
func (mr *MockClientServiceMockRecorder) GetOrgMembership(ctx, token, org any) *gomock.Call
GetOrgMembership indicates an expected call of GetOrgMembership.
func (*MockClientServiceMockRecorder) GetUserIdFromToken ¶
func (mr *MockClientServiceMockRecorder) GetUserIdFromToken(ctx, token any) *gomock.Call
GetUserIdFromToken indicates an expected call of GetUserIdFromToken.
func (*MockClientServiceMockRecorder) ListUserInstallations ¶
func (mr *MockClientServiceMockRecorder) ListUserInstallations(ctx, token any) *gomock.Call
ListUserInstallations indicates an expected call of ListUserInstallations.
type MockDelegate ¶
type MockDelegate struct {
// contains filtered or unexported fields
}
MockDelegate is a mock of Delegate interface.
func NewMockDelegate ¶
func NewMockDelegate(ctrl *gomock.Controller) *MockDelegate
NewMockDelegate creates a new mock instance.
func (*MockDelegate) EXPECT ¶
func (m *MockDelegate) EXPECT() *MockDelegateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDelegate) GetCredential ¶
func (m *MockDelegate) GetCredential() v10.GitHubCredential
GetCredential mocks base method.
func (*MockDelegate) GetLogin ¶
func (m *MockDelegate) GetLogin(ctx context.Context) (string, error)
GetLogin mocks base method.
func (*MockDelegate) GetName ¶
func (m *MockDelegate) GetName(ctx context.Context) (string, error)
GetName mocks base method.
func (*MockDelegate) GetOwner ¶
func (m *MockDelegate) GetOwner() string
GetOwner mocks base method.
func (*MockDelegate) GetPrimaryEmail ¶
func (m *MockDelegate) GetPrimaryEmail(ctx context.Context) (string, error)
GetPrimaryEmail mocks base method.
func (*MockDelegate) GetUserId ¶
func (m *MockDelegate) GetUserId(ctx context.Context) (int64, error)
GetUserId mocks base method.
func (*MockDelegate) ListAllRepositories ¶
func (m *MockDelegate) ListAllRepositories(arg0 context.Context) ([]*v1.Repository, error)
ListAllRepositories mocks base method.
type MockDelegateMockRecorder ¶
type MockDelegateMockRecorder struct {
// contains filtered or unexported fields
}
MockDelegateMockRecorder is the mock recorder for MockDelegate.
func (*MockDelegateMockRecorder) GetCredential ¶
func (mr *MockDelegateMockRecorder) GetCredential() *gomock.Call
GetCredential indicates an expected call of GetCredential.
func (*MockDelegateMockRecorder) GetLogin ¶
func (mr *MockDelegateMockRecorder) GetLogin(ctx any) *gomock.Call
GetLogin indicates an expected call of GetLogin.
func (*MockDelegateMockRecorder) GetName ¶
func (mr *MockDelegateMockRecorder) GetName(ctx any) *gomock.Call
GetName indicates an expected call of GetName.
func (*MockDelegateMockRecorder) GetOwner ¶
func (mr *MockDelegateMockRecorder) GetOwner() *gomock.Call
GetOwner indicates an expected call of GetOwner.
func (*MockDelegateMockRecorder) GetPrimaryEmail ¶
func (mr *MockDelegateMockRecorder) GetPrimaryEmail(ctx any) *gomock.Call
GetPrimaryEmail indicates an expected call of GetPrimaryEmail.
func (*MockDelegateMockRecorder) GetUserId ¶
func (mr *MockDelegateMockRecorder) GetUserId(ctx any) *gomock.Call
GetUserId indicates an expected call of GetUserId.
func (*MockDelegateMockRecorder) IsOrg ¶
func (mr *MockDelegateMockRecorder) IsOrg() *gomock.Call
IsOrg indicates an expected call of IsOrg.
func (*MockDelegateMockRecorder) ListAllRepositories ¶
func (mr *MockDelegateMockRecorder) ListAllRepositories(arg0 any) *gomock.Call
ListAllRepositories indicates an expected call of ListAllRepositories.
type MockGetArtifactVersionsFilter ¶
type MockGetArtifactVersionsFilter struct {
// contains filtered or unexported fields
}
MockGetArtifactVersionsFilter is a mock of GetArtifactVersionsFilter interface.
func NewMockGetArtifactVersionsFilter ¶
func NewMockGetArtifactVersionsFilter(ctrl *gomock.Controller) *MockGetArtifactVersionsFilter
NewMockGetArtifactVersionsFilter creates a new mock instance.
func (*MockGetArtifactVersionsFilter) EXPECT ¶
func (m *MockGetArtifactVersionsFilter) EXPECT() *MockGetArtifactVersionsFilterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGetArtifactVersionsFilter) IsSkippable ¶
func (m *MockGetArtifactVersionsFilter) IsSkippable(createdAt time.Time, tags []string) error
IsSkippable mocks base method.
type MockGetArtifactVersionsFilterMockRecorder ¶
type MockGetArtifactVersionsFilterMockRecorder struct {
// contains filtered or unexported fields
}
MockGetArtifactVersionsFilterMockRecorder is the mock recorder for MockGetArtifactVersionsFilter.
func (*MockGetArtifactVersionsFilterMockRecorder) IsSkippable ¶
func (mr *MockGetArtifactVersionsFilterMockRecorder) IsSkippable(createdAt, tags any) *gomock.Call
IsSkippable indicates an expected call of IsSkippable.
type MockGit ¶
type MockGit struct {
// contains filtered or unexported fields
}
MockGit is a mock of Git interface.
func NewMockGit ¶
func NewMockGit(ctrl *gomock.Controller) *MockGit
NewMockGit creates a new mock instance.
func (*MockGit) CanImplement ¶
func (m *MockGit) CanImplement(trait v10.ProviderType) bool
CanImplement mocks base method.
func (*MockGit) DeregisterEntity ¶
func (m *MockGit) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
DeregisterEntity mocks base method.
func (*MockGit) EXPECT ¶
func (m *MockGit) EXPECT() *MockGitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGit) FetchAllProperties ¶
func (m *MockGit) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, cachedProps *properties.Properties) (*properties.Properties, error)
FetchAllProperties mocks base method.
func (*MockGit) FetchProperty ¶
func (m *MockGit) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, key string) (*properties.Property, error)
FetchProperty mocks base method.
func (*MockGit) GetEntityName ¶
func (m *MockGit) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
GetEntityName mocks base method.
func (*MockGit) PropertiesToProtoMessage ¶
func (m *MockGit) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
PropertiesToProtoMessage mocks base method.
func (*MockGit) RegisterEntity ¶
func (m *MockGit) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
RegisterEntity mocks base method.
func (*MockGit) ReregisterEntity ¶
func (m *MockGit) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
ReregisterEntity mocks base method.
type MockGitHub ¶
type MockGitHub struct {
// contains filtered or unexported fields
}
MockGitHub is a mock of GitHub interface.
func NewMockGitHub ¶
func NewMockGitHub(ctrl *gomock.Controller) *MockGitHub
NewMockGitHub creates a new mock instance.
func (*MockGitHub) AddAuthToPushOptions ¶
func (m *MockGitHub) AddAuthToPushOptions(ctx context.Context, options *git.PushOptions) error
AddAuthToPushOptions mocks base method.
func (*MockGitHub) CanImplement ¶
func (m *MockGitHub) CanImplement(trait v10.ProviderType) bool
CanImplement mocks base method.
func (*MockGitHub) Clone ¶
func (m *MockGitHub) Clone(ctx context.Context, url, branch string) (*git.Repository, error)
Clone mocks base method.
func (*MockGitHub) ClosePullRequest ¶
func (m *MockGitHub) ClosePullRequest(ctx context.Context, owner, repo string, number int) (*github.PullRequest, error)
ClosePullRequest mocks base method.
func (*MockGitHub) CloseSecurityAdvisory ¶
func (m *MockGitHub) CloseSecurityAdvisory(ctx context.Context, owner, repo, id string) error
CloseSecurityAdvisory mocks base method.
func (*MockGitHub) CreateHook ¶
func (m *MockGitHub) CreateHook(ctx context.Context, owner, repo string, hook *github.Hook) (*github.Hook, error)
CreateHook mocks base method.
func (*MockGitHub) CreateIssueComment ¶
func (m *MockGitHub) CreateIssueComment(ctx context.Context, owner, repo string, number int, comment string) (*github.IssueComment, error)
CreateIssueComment mocks base method.
func (*MockGitHub) CreatePullRequest ¶
func (m *MockGitHub) CreatePullRequest(ctx context.Context, owner, repo, title, body, head, base string) (*github.PullRequest, error)
CreatePullRequest mocks base method.
func (*MockGitHub) CreateReview ¶
func (m *MockGitHub) CreateReview(arg0 context.Context, arg1, arg2 string, arg3 int, arg4 *github.PullRequestReviewRequest) (*github.PullRequestReview, error)
CreateReview mocks base method.
func (*MockGitHub) CreateSecurityAdvisory ¶
func (m *MockGitHub) CreateSecurityAdvisory(ctx context.Context, owner, repo, severity, summary, description string, v []*github.AdvisoryVulnerability) (string, error)
CreateSecurityAdvisory mocks base method.
func (*MockGitHub) DeleteHook ¶
DeleteHook mocks base method.
func (*MockGitHub) DeregisterEntity ¶
func (m *MockGitHub) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
DeregisterEntity mocks base method.
func (*MockGitHub) DismissReview ¶
func (m *MockGitHub) DismissReview(arg0 context.Context, arg1, arg2 string, arg3 int, arg4 int64, arg5 *github.PullRequestReviewDismissalRequest) (*github.PullRequestReview, error)
DismissReview mocks base method.
func (*MockGitHub) EXPECT ¶
func (m *MockGitHub) EXPECT() *MockGitHubMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGitHub) EditHook ¶
func (m *MockGitHub) EditHook(ctx context.Context, owner, repo string, id int64, hook *github.Hook) (*github.Hook, error)
EditHook mocks base method.
func (*MockGitHub) FetchAllProperties ¶
func (m *MockGitHub) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, cachedProps *properties.Properties) (*properties.Properties, error)
FetchAllProperties mocks base method.
func (*MockGitHub) FetchProperty ¶
func (m *MockGitHub) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, key string) (*properties.Property, error)
FetchProperty mocks base method.
func (*MockGitHub) GetArtifactVersions ¶
func (m *MockGitHub) GetArtifactVersions(ctx context.Context, artifact *v10.Artifact, filter v11.GetArtifactVersionsFilter) ([]*v10.ArtifactVersion, error)
GetArtifactVersions mocks base method.
func (*MockGitHub) GetBaseURL ¶
func (m *MockGitHub) GetBaseURL() string
GetBaseURL mocks base method.
func (*MockGitHub) GetBranchProtection ¶
func (m *MockGitHub) GetBranchProtection(arg0 context.Context, arg1, arg2, arg3 string) (*github.Protection, error)
GetBranchProtection mocks base method.
func (*MockGitHub) GetCredential ¶
func (m *MockGitHub) GetCredential() v11.GitHubCredential
GetCredential mocks base method.
func (*MockGitHub) GetEntityName ¶
func (m *MockGitHub) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
GetEntityName mocks base method.
func (*MockGitHub) GetLogin ¶
func (m *MockGitHub) GetLogin(ctx context.Context) (string, error)
GetLogin mocks base method.
func (*MockGitHub) GetName ¶
func (m *MockGitHub) GetName(ctx context.Context) (string, error)
GetName mocks base method.
func (*MockGitHub) GetNamespaceURL ¶
func (m *MockGitHub) GetNamespaceURL() string
GetNamespaceURL mocks base method.
func (*MockGitHub) GetPackageByName ¶
func (m *MockGitHub) GetPackageByName(arg0 context.Context, arg1, arg2, arg3 string) (*github.Package, error)
GetPackageByName mocks base method.
func (*MockGitHub) GetPackageVersionById ¶
func (m *MockGitHub) GetPackageVersionById(arg0 context.Context, arg1, arg2, arg3 string, arg4 int64) (*github.PackageVersion, error)
GetPackageVersionById mocks base method.
func (*MockGitHub) GetPrimaryEmail ¶
func (m *MockGitHub) GetPrimaryEmail(ctx context.Context) (string, error)
GetPrimaryEmail mocks base method.
func (*MockGitHub) GetPullRequest ¶
func (m *MockGitHub) GetPullRequest(arg0 context.Context, arg1, arg2 string, arg3 int) (*github.PullRequest, error)
GetPullRequest mocks base method.
func (*MockGitHub) GetRepository ¶
func (m *MockGitHub) GetRepository(arg0 context.Context, arg1, arg2 string) (*github.Repository, error)
GetRepository mocks base method.
func (*MockGitHub) GetUserId ¶
func (m *MockGitHub) GetUserId(ctx context.Context) (int64, error)
GetUserId mocks base method.
func (*MockGitHub) ListAllRepositories ¶
func (m *MockGitHub) ListAllRepositories(arg0 context.Context) ([]*v10.Repository, error)
ListAllRepositories mocks base method.
func (*MockGitHub) ListFiles ¶
func (m *MockGitHub) ListFiles(ctx context.Context, owner, repo string, prNumber, perPage, pageNumber int) ([]*github.CommitFile, *github.Response, error)
ListFiles mocks base method.
func (*MockGitHub) ListImages ¶
func (m *MockGitHub) ListImages(ctx context.Context) ([]string, error)
ListImages mocks base method.
func (*MockGitHub) ListIssueComments ¶
func (m *MockGitHub) ListIssueComments(ctx context.Context, owner, repo string, number int, opts *github.IssueListCommentsOptions) ([]*github.IssueComment, error)
ListIssueComments mocks base method.
func (*MockGitHub) ListPackagesByRepository ¶
func (m *MockGitHub) ListPackagesByRepository(arg0 context.Context, arg1, arg2 string, arg3 int64, arg4, arg5 int) ([]*github.Package, error)
ListPackagesByRepository mocks base method.
func (*MockGitHub) ListPullRequests ¶
func (m *MockGitHub) ListPullRequests(ctx context.Context, owner, repo string, opt *github.PullRequestListOptions) ([]*github.PullRequest, error)
ListPullRequests mocks base method.
func (*MockGitHub) ListReviews ¶
func (m *MockGitHub) ListReviews(arg0 context.Context, arg1, arg2 string, arg3 int, arg4 *github.ListOptions) ([]*github.PullRequestReview, error)
ListReviews mocks base method.
func (*MockGitHub) NewRequest ¶
NewRequest mocks base method.
func (*MockGitHub) PropertiesToProtoMessage ¶
func (m *MockGitHub) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
PropertiesToProtoMessage mocks base method.
func (*MockGitHub) RegisterEntity ¶
func (m *MockGitHub) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
RegisterEntity mocks base method.
func (*MockGitHub) ReregisterEntity ¶
func (m *MockGitHub) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
ReregisterEntity mocks base method.
func (*MockGitHub) SetCommitStatus ¶
func (m *MockGitHub) SetCommitStatus(arg0 context.Context, arg1, arg2, arg3 string, arg4 *github.RepoStatus) (*github.RepoStatus, error)
SetCommitStatus mocks base method.
func (*MockGitHub) StartCheckRun ¶
func (m *MockGitHub) StartCheckRun(arg0 context.Context, arg1, arg2 string, arg3 *github.CreateCheckRunOptions) (*github.CheckRun, error)
StartCheckRun mocks base method.
func (*MockGitHub) SupportsEntity ¶
func (m *MockGitHub) SupportsEntity(entType v10.Entity) bool
SupportsEntity mocks base method.
func (*MockGitHub) UpdateBranchProtection ¶
func (m *MockGitHub) UpdateBranchProtection(arg0 context.Context, arg1, arg2, arg3 string, arg4 *github.ProtectionRequest) error
UpdateBranchProtection mocks base method.
func (*MockGitHub) UpdateCheckRun ¶
func (m *MockGitHub) UpdateCheckRun(arg0 context.Context, arg1, arg2 string, arg3 int64, arg4 *github.UpdateCheckRunOptions) (*github.CheckRun, error)
UpdateCheckRun mocks base method.
func (*MockGitHub) UpdateIssueComment ¶
func (m *MockGitHub) UpdateIssueComment(ctx context.Context, owner, repo string, number int64, comment string) error
UpdateIssueComment mocks base method.
func (*MockGitHub) UpdateReview ¶
func (m *MockGitHub) UpdateReview(arg0 context.Context, arg1, arg2 string, arg3 int, arg4 int64, arg5 string) (*github.PullRequestReview, error)
UpdateReview mocks base method.
type MockGitHubMockRecorder ¶
type MockGitHubMockRecorder struct {
// contains filtered or unexported fields
}
MockGitHubMockRecorder is the mock recorder for MockGitHub.
func (*MockGitHubMockRecorder) AddAuthToPushOptions ¶
func (mr *MockGitHubMockRecorder) AddAuthToPushOptions(ctx, options any) *gomock.Call
AddAuthToPushOptions indicates an expected call of AddAuthToPushOptions.
func (*MockGitHubMockRecorder) CanImplement ¶
func (mr *MockGitHubMockRecorder) CanImplement(trait any) *gomock.Call
CanImplement indicates an expected call of CanImplement.
func (*MockGitHubMockRecorder) Clone ¶
func (mr *MockGitHubMockRecorder) Clone(ctx, url, branch any) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockGitHubMockRecorder) ClosePullRequest ¶
func (mr *MockGitHubMockRecorder) ClosePullRequest(ctx, owner, repo, number any) *gomock.Call
ClosePullRequest indicates an expected call of ClosePullRequest.
func (*MockGitHubMockRecorder) CloseSecurityAdvisory ¶
func (mr *MockGitHubMockRecorder) CloseSecurityAdvisory(ctx, owner, repo, id any) *gomock.Call
CloseSecurityAdvisory indicates an expected call of CloseSecurityAdvisory.
func (*MockGitHubMockRecorder) CreateHook ¶
func (mr *MockGitHubMockRecorder) CreateHook(ctx, owner, repo, hook any) *gomock.Call
CreateHook indicates an expected call of CreateHook.
func (*MockGitHubMockRecorder) CreateIssueComment ¶
func (mr *MockGitHubMockRecorder) CreateIssueComment(ctx, owner, repo, number, comment any) *gomock.Call
CreateIssueComment indicates an expected call of CreateIssueComment.
func (*MockGitHubMockRecorder) CreatePullRequest ¶
func (mr *MockGitHubMockRecorder) CreatePullRequest(ctx, owner, repo, title, body, head, base any) *gomock.Call
CreatePullRequest indicates an expected call of CreatePullRequest.
func (*MockGitHubMockRecorder) CreateReview ¶
func (mr *MockGitHubMockRecorder) CreateReview(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
CreateReview indicates an expected call of CreateReview.
func (*MockGitHubMockRecorder) CreateSecurityAdvisory ¶
func (mr *MockGitHubMockRecorder) CreateSecurityAdvisory(ctx, owner, repo, severity, summary, description, v any) *gomock.Call
CreateSecurityAdvisory indicates an expected call of CreateSecurityAdvisory.
func (*MockGitHubMockRecorder) DeleteHook ¶
func (mr *MockGitHubMockRecorder) DeleteHook(ctx, owner, repo, id any) *gomock.Call
DeleteHook indicates an expected call of DeleteHook.
func (*MockGitHubMockRecorder) DeregisterEntity ¶
func (mr *MockGitHubMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
DeregisterEntity indicates an expected call of DeregisterEntity.
func (*MockGitHubMockRecorder) DismissReview ¶
func (mr *MockGitHubMockRecorder) DismissReview(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call
DismissReview indicates an expected call of DismissReview.
func (*MockGitHubMockRecorder) Do ¶
func (mr *MockGitHubMockRecorder) Do(ctx, req any) *gomock.Call
Do indicates an expected call of Do.
func (*MockGitHubMockRecorder) EditHook ¶
func (mr *MockGitHubMockRecorder) EditHook(ctx, owner, repo, id, hook any) *gomock.Call
EditHook indicates an expected call of EditHook.
func (*MockGitHubMockRecorder) FetchAllProperties ¶
func (mr *MockGitHubMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
FetchAllProperties indicates an expected call of FetchAllProperties.
func (*MockGitHubMockRecorder) FetchProperty ¶
func (mr *MockGitHubMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
FetchProperty indicates an expected call of FetchProperty.
func (*MockGitHubMockRecorder) GetArtifactVersions ¶
func (mr *MockGitHubMockRecorder) GetArtifactVersions(ctx, artifact, filter any) *gomock.Call
GetArtifactVersions indicates an expected call of GetArtifactVersions.
func (*MockGitHubMockRecorder) GetBaseURL ¶
func (mr *MockGitHubMockRecorder) GetBaseURL() *gomock.Call
GetBaseURL indicates an expected call of GetBaseURL.
func (*MockGitHubMockRecorder) GetBranchProtection ¶
func (mr *MockGitHubMockRecorder) GetBranchProtection(arg0, arg1, arg2, arg3 any) *gomock.Call
GetBranchProtection indicates an expected call of GetBranchProtection.
func (*MockGitHubMockRecorder) GetCredential ¶
func (mr *MockGitHubMockRecorder) GetCredential() *gomock.Call
GetCredential indicates an expected call of GetCredential.
func (*MockGitHubMockRecorder) GetEntityName ¶
func (mr *MockGitHubMockRecorder) GetEntityName(entType, props any) *gomock.Call
GetEntityName indicates an expected call of GetEntityName.
func (*MockGitHubMockRecorder) GetLogin ¶
func (mr *MockGitHubMockRecorder) GetLogin(ctx any) *gomock.Call
GetLogin indicates an expected call of GetLogin.
func (*MockGitHubMockRecorder) GetName ¶
func (mr *MockGitHubMockRecorder) GetName(ctx any) *gomock.Call
GetName indicates an expected call of GetName.
func (*MockGitHubMockRecorder) GetNamespaceURL ¶
func (mr *MockGitHubMockRecorder) GetNamespaceURL() *gomock.Call
GetNamespaceURL indicates an expected call of GetNamespaceURL.
func (*MockGitHubMockRecorder) GetPackageByName ¶
func (mr *MockGitHubMockRecorder) GetPackageByName(arg0, arg1, arg2, arg3 any) *gomock.Call
GetPackageByName indicates an expected call of GetPackageByName.
func (*MockGitHubMockRecorder) GetPackageVersionById ¶
func (mr *MockGitHubMockRecorder) GetPackageVersionById(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
GetPackageVersionById indicates an expected call of GetPackageVersionById.
func (*MockGitHubMockRecorder) GetPrimaryEmail ¶
func (mr *MockGitHubMockRecorder) GetPrimaryEmail(ctx any) *gomock.Call
GetPrimaryEmail indicates an expected call of GetPrimaryEmail.
func (*MockGitHubMockRecorder) GetPullRequest ¶
func (mr *MockGitHubMockRecorder) GetPullRequest(arg0, arg1, arg2, arg3 any) *gomock.Call
GetPullRequest indicates an expected call of GetPullRequest.
func (*MockGitHubMockRecorder) GetRepository ¶
func (mr *MockGitHubMockRecorder) GetRepository(arg0, arg1, arg2 any) *gomock.Call
GetRepository indicates an expected call of GetRepository.
func (*MockGitHubMockRecorder) GetUserId ¶
func (mr *MockGitHubMockRecorder) GetUserId(ctx any) *gomock.Call
GetUserId indicates an expected call of GetUserId.
func (*MockGitHubMockRecorder) IsOrg ¶
func (mr *MockGitHubMockRecorder) IsOrg() *gomock.Call
IsOrg indicates an expected call of IsOrg.
func (*MockGitHubMockRecorder) ListAllRepositories ¶
func (mr *MockGitHubMockRecorder) ListAllRepositories(arg0 any) *gomock.Call
ListAllRepositories indicates an expected call of ListAllRepositories.
func (*MockGitHubMockRecorder) ListFiles ¶
func (mr *MockGitHubMockRecorder) ListFiles(ctx, owner, repo, prNumber, perPage, pageNumber any) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockGitHubMockRecorder) ListHooks ¶
func (mr *MockGitHubMockRecorder) ListHooks(ctx, owner, repo any) *gomock.Call
ListHooks indicates an expected call of ListHooks.
func (*MockGitHubMockRecorder) ListImages ¶
func (mr *MockGitHubMockRecorder) ListImages(ctx any) *gomock.Call
ListImages indicates an expected call of ListImages.
func (*MockGitHubMockRecorder) ListIssueComments ¶
func (mr *MockGitHubMockRecorder) ListIssueComments(ctx, owner, repo, number, opts any) *gomock.Call
ListIssueComments indicates an expected call of ListIssueComments.
func (*MockGitHubMockRecorder) ListPackagesByRepository ¶
func (mr *MockGitHubMockRecorder) ListPackagesByRepository(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call
ListPackagesByRepository indicates an expected call of ListPackagesByRepository.
func (*MockGitHubMockRecorder) ListPullRequests ¶
func (mr *MockGitHubMockRecorder) ListPullRequests(ctx, owner, repo, opt any) *gomock.Call
ListPullRequests indicates an expected call of ListPullRequests.
func (*MockGitHubMockRecorder) ListReviews ¶
func (mr *MockGitHubMockRecorder) ListReviews(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
ListReviews indicates an expected call of ListReviews.
func (*MockGitHubMockRecorder) NewRequest ¶
func (mr *MockGitHubMockRecorder) NewRequest(method, url, body any) *gomock.Call
NewRequest indicates an expected call of NewRequest.
func (*MockGitHubMockRecorder) PropertiesToProtoMessage ¶
func (mr *MockGitHubMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
PropertiesToProtoMessage indicates an expected call of PropertiesToProtoMessage.
func (*MockGitHubMockRecorder) RegisterEntity ¶
func (mr *MockGitHubMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
RegisterEntity indicates an expected call of RegisterEntity.
func (*MockGitHubMockRecorder) ReregisterEntity ¶
func (mr *MockGitHubMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
ReregisterEntity indicates an expected call of ReregisterEntity.
func (*MockGitHubMockRecorder) SetCommitStatus ¶
func (mr *MockGitHubMockRecorder) SetCommitStatus(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
SetCommitStatus indicates an expected call of SetCommitStatus.
func (*MockGitHubMockRecorder) StartCheckRun ¶
func (mr *MockGitHubMockRecorder) StartCheckRun(arg0, arg1, arg2, arg3 any) *gomock.Call
StartCheckRun indicates an expected call of StartCheckRun.
func (*MockGitHubMockRecorder) SupportsEntity ¶
func (mr *MockGitHubMockRecorder) SupportsEntity(entType any) *gomock.Call
SupportsEntity indicates an expected call of SupportsEntity.
func (*MockGitHubMockRecorder) UpdateBranchProtection ¶
func (mr *MockGitHubMockRecorder) UpdateBranchProtection(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
UpdateBranchProtection indicates an expected call of UpdateBranchProtection.
func (*MockGitHubMockRecorder) UpdateCheckRun ¶
func (mr *MockGitHubMockRecorder) UpdateCheckRun(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
UpdateCheckRun indicates an expected call of UpdateCheckRun.
func (*MockGitHubMockRecorder) UpdateIssueComment ¶
func (mr *MockGitHubMockRecorder) UpdateIssueComment(ctx, owner, repo, number, comment any) *gomock.Call
UpdateIssueComment indicates an expected call of UpdateIssueComment.
func (*MockGitHubMockRecorder) UpdateReview ¶
func (mr *MockGitHubMockRecorder) UpdateReview(arg0, arg1, arg2, arg3, arg4, arg5 any) *gomock.Call
UpdateReview indicates an expected call of UpdateReview.
type MockGitMockRecorder ¶
type MockGitMockRecorder struct {
// contains filtered or unexported fields
}
MockGitMockRecorder is the mock recorder for MockGit.
func (*MockGitMockRecorder) CanImplement ¶
func (mr *MockGitMockRecorder) CanImplement(trait any) *gomock.Call
CanImplement indicates an expected call of CanImplement.
func (*MockGitMockRecorder) Clone ¶
func (mr *MockGitMockRecorder) Clone(ctx, url, branch any) *gomock.Call
Clone indicates an expected call of Clone.
func (*MockGitMockRecorder) DeregisterEntity ¶
func (mr *MockGitMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
DeregisterEntity indicates an expected call of DeregisterEntity.
func (*MockGitMockRecorder) FetchAllProperties ¶
func (mr *MockGitMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
FetchAllProperties indicates an expected call of FetchAllProperties.
func (*MockGitMockRecorder) FetchProperty ¶
func (mr *MockGitMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
FetchProperty indicates an expected call of FetchProperty.
func (*MockGitMockRecorder) GetEntityName ¶
func (mr *MockGitMockRecorder) GetEntityName(entType, props any) *gomock.Call
GetEntityName indicates an expected call of GetEntityName.
func (*MockGitMockRecorder) PropertiesToProtoMessage ¶
func (mr *MockGitMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
PropertiesToProtoMessage indicates an expected call of PropertiesToProtoMessage.
func (*MockGitMockRecorder) RegisterEntity ¶
func (mr *MockGitMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
RegisterEntity indicates an expected call of RegisterEntity.
func (*MockGitMockRecorder) ReregisterEntity ¶
func (mr *MockGitMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
ReregisterEntity indicates an expected call of ReregisterEntity.
func (*MockGitMockRecorder) SupportsEntity ¶
func (mr *MockGitMockRecorder) SupportsEntity(entType any) *gomock.Call
SupportsEntity indicates an expected call of SupportsEntity.
type MockImageLister ¶
type MockImageLister struct {
// contains filtered or unexported fields
}
MockImageLister is a mock of ImageLister interface.
func NewMockImageLister ¶
func NewMockImageLister(ctrl *gomock.Controller) *MockImageLister
NewMockImageLister creates a new mock instance.
func (*MockImageLister) CanImplement ¶
func (m *MockImageLister) CanImplement(trait v10.ProviderType) bool
CanImplement mocks base method.
func (*MockImageLister) DeregisterEntity ¶
func (m *MockImageLister) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
DeregisterEntity mocks base method.
func (*MockImageLister) EXPECT ¶
func (m *MockImageLister) EXPECT() *MockImageListerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockImageLister) FetchAllProperties ¶
func (m *MockImageLister) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, cachedProps *properties.Properties) (*properties.Properties, error)
FetchAllProperties mocks base method.
func (*MockImageLister) FetchProperty ¶
func (m *MockImageLister) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, key string) (*properties.Property, error)
FetchProperty mocks base method.
func (*MockImageLister) GetEntityName ¶
func (m *MockImageLister) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
GetEntityName mocks base method.
func (*MockImageLister) GetNamespaceURL ¶
func (m *MockImageLister) GetNamespaceURL() string
GetNamespaceURL mocks base method.
func (*MockImageLister) ListImages ¶
func (m *MockImageLister) ListImages(ctx context.Context) ([]string, error)
ListImages mocks base method.
func (*MockImageLister) PropertiesToProtoMessage ¶
func (m *MockImageLister) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
PropertiesToProtoMessage mocks base method.
func (*MockImageLister) RegisterEntity ¶
func (m *MockImageLister) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
RegisterEntity mocks base method.
func (*MockImageLister) ReregisterEntity ¶
func (m *MockImageLister) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
ReregisterEntity mocks base method.
func (*MockImageLister) SupportsEntity ¶
func (m *MockImageLister) SupportsEntity(entType v10.Entity) bool
SupportsEntity mocks base method.
type MockImageListerMockRecorder ¶
type MockImageListerMockRecorder struct {
// contains filtered or unexported fields
}
MockImageListerMockRecorder is the mock recorder for MockImageLister.
func (*MockImageListerMockRecorder) CanImplement ¶
func (mr *MockImageListerMockRecorder) CanImplement(trait any) *gomock.Call
CanImplement indicates an expected call of CanImplement.
func (*MockImageListerMockRecorder) DeregisterEntity ¶
func (mr *MockImageListerMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
DeregisterEntity indicates an expected call of DeregisterEntity.
func (*MockImageListerMockRecorder) FetchAllProperties ¶
func (mr *MockImageListerMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
FetchAllProperties indicates an expected call of FetchAllProperties.
func (*MockImageListerMockRecorder) FetchProperty ¶
func (mr *MockImageListerMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
FetchProperty indicates an expected call of FetchProperty.
func (*MockImageListerMockRecorder) GetEntityName ¶
func (mr *MockImageListerMockRecorder) GetEntityName(entType, props any) *gomock.Call
GetEntityName indicates an expected call of GetEntityName.
func (*MockImageListerMockRecorder) GetNamespaceURL ¶
func (mr *MockImageListerMockRecorder) GetNamespaceURL() *gomock.Call
GetNamespaceURL indicates an expected call of GetNamespaceURL.
func (*MockImageListerMockRecorder) ListImages ¶
func (mr *MockImageListerMockRecorder) ListImages(ctx any) *gomock.Call
ListImages indicates an expected call of ListImages.
func (*MockImageListerMockRecorder) PropertiesToProtoMessage ¶
func (mr *MockImageListerMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
PropertiesToProtoMessage indicates an expected call of PropertiesToProtoMessage.
func (*MockImageListerMockRecorder) RegisterEntity ¶
func (mr *MockImageListerMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
RegisterEntity indicates an expected call of RegisterEntity.
func (*MockImageListerMockRecorder) ReregisterEntity ¶
func (mr *MockImageListerMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
ReregisterEntity indicates an expected call of ReregisterEntity.
func (*MockImageListerMockRecorder) SupportsEntity ¶
func (mr *MockImageListerMockRecorder) SupportsEntity(entType any) *gomock.Call
SupportsEntity indicates an expected call of SupportsEntity.
type MockOCI ¶
type MockOCI struct {
// contains filtered or unexported fields
}
MockOCI is a mock of OCI interface.
func NewMockOCI ¶
func NewMockOCI(ctrl *gomock.Controller) *MockOCI
NewMockOCI creates a new mock instance.
func (*MockOCI) CanImplement ¶
func (m *MockOCI) CanImplement(trait v10.ProviderType) bool
CanImplement mocks base method.
func (*MockOCI) DeregisterEntity ¶
func (m *MockOCI) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
DeregisterEntity mocks base method.
func (*MockOCI) EXPECT ¶
func (m *MockOCI) EXPECT() *MockOCIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOCI) FetchAllProperties ¶
func (m *MockOCI) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, cachedProps *properties.Properties) (*properties.Properties, error)
FetchAllProperties mocks base method.
func (*MockOCI) FetchProperty ¶
func (m *MockOCI) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, key string) (*properties.Property, error)
FetchProperty mocks base method.
func (*MockOCI) GetArtifactVersions ¶
func (m *MockOCI) GetArtifactVersions(ctx context.Context, artifact *v10.Artifact, filter v11.GetArtifactVersionsFilter) ([]*v10.ArtifactVersion, error)
GetArtifactVersions mocks base method.
func (*MockOCI) GetAuthenticator ¶
func (m *MockOCI) GetAuthenticator() (authn.Authenticator, error)
GetAuthenticator mocks base method.
func (*MockOCI) GetEntityName ¶
func (m *MockOCI) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
GetEntityName mocks base method.
func (*MockOCI) GetManifest ¶
GetManifest mocks base method.
func (*MockOCI) GetReferrer ¶
GetReferrer mocks base method.
func (*MockOCI) PropertiesToProtoMessage ¶
func (m *MockOCI) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
PropertiesToProtoMessage mocks base method.
func (*MockOCI) RegisterEntity ¶
func (m *MockOCI) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
RegisterEntity mocks base method.
func (*MockOCI) ReregisterEntity ¶
func (m *MockOCI) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
ReregisterEntity mocks base method.
type MockOCIMockRecorder ¶
type MockOCIMockRecorder struct {
// contains filtered or unexported fields
}
MockOCIMockRecorder is the mock recorder for MockOCI.
func (*MockOCIMockRecorder) CanImplement ¶
func (mr *MockOCIMockRecorder) CanImplement(trait any) *gomock.Call
CanImplement indicates an expected call of CanImplement.
func (*MockOCIMockRecorder) DeregisterEntity ¶
func (mr *MockOCIMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
DeregisterEntity indicates an expected call of DeregisterEntity.
func (*MockOCIMockRecorder) FetchAllProperties ¶
func (mr *MockOCIMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
FetchAllProperties indicates an expected call of FetchAllProperties.
func (*MockOCIMockRecorder) FetchProperty ¶
func (mr *MockOCIMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
FetchProperty indicates an expected call of FetchProperty.
func (*MockOCIMockRecorder) GetArtifactVersions ¶
func (mr *MockOCIMockRecorder) GetArtifactVersions(ctx, artifact, filter any) *gomock.Call
GetArtifactVersions indicates an expected call of GetArtifactVersions.
func (*MockOCIMockRecorder) GetAuthenticator ¶
func (mr *MockOCIMockRecorder) GetAuthenticator() *gomock.Call
GetAuthenticator indicates an expected call of GetAuthenticator.
func (*MockOCIMockRecorder) GetDigest ¶
func (mr *MockOCIMockRecorder) GetDigest(ctx, name, tag any) *gomock.Call
GetDigest indicates an expected call of GetDigest.
func (*MockOCIMockRecorder) GetEntityName ¶
func (mr *MockOCIMockRecorder) GetEntityName(entType, props any) *gomock.Call
GetEntityName indicates an expected call of GetEntityName.
func (*MockOCIMockRecorder) GetManifest ¶
func (mr *MockOCIMockRecorder) GetManifest(ctx, name, tag any) *gomock.Call
GetManifest indicates an expected call of GetManifest.
func (*MockOCIMockRecorder) GetReferrer ¶
func (mr *MockOCIMockRecorder) GetReferrer(ctx, name, tag, artifactType any) *gomock.Call
GetReferrer indicates an expected call of GetReferrer.
func (*MockOCIMockRecorder) GetRegistry ¶
func (mr *MockOCIMockRecorder) GetRegistry() *gomock.Call
GetRegistry indicates an expected call of GetRegistry.
func (*MockOCIMockRecorder) ListTags ¶
func (mr *MockOCIMockRecorder) ListTags(ctx, name any) *gomock.Call
ListTags indicates an expected call of ListTags.
func (*MockOCIMockRecorder) PropertiesToProtoMessage ¶
func (mr *MockOCIMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
PropertiesToProtoMessage indicates an expected call of PropertiesToProtoMessage.
func (*MockOCIMockRecorder) RegisterEntity ¶
func (mr *MockOCIMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
RegisterEntity indicates an expected call of RegisterEntity.
func (*MockOCIMockRecorder) ReregisterEntity ¶
func (mr *MockOCIMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
ReregisterEntity indicates an expected call of ReregisterEntity.
func (*MockOCIMockRecorder) SupportsEntity ¶
func (mr *MockOCIMockRecorder) SupportsEntity(entType any) *gomock.Call
SupportsEntity indicates an expected call of SupportsEntity.
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) CanImplement ¶
func (m *MockProvider) CanImplement(trait v10.ProviderType) bool
CanImplement mocks base method.
func (*MockProvider) DeregisterEntity ¶
func (m *MockProvider) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
DeregisterEntity mocks base method.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) FetchAllProperties ¶
func (m *MockProvider) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, cachedProps *properties.Properties) (*properties.Properties, error)
FetchAllProperties mocks base method.
func (*MockProvider) FetchProperty ¶
func (m *MockProvider) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, key string) (*properties.Property, error)
FetchProperty mocks base method.
func (*MockProvider) GetEntityName ¶
func (m *MockProvider) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
GetEntityName mocks base method.
func (*MockProvider) PropertiesToProtoMessage ¶
func (m *MockProvider) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
PropertiesToProtoMessage mocks base method.
func (*MockProvider) RegisterEntity ¶
func (m *MockProvider) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
RegisterEntity mocks base method.
func (*MockProvider) ReregisterEntity ¶
func (m *MockProvider) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
ReregisterEntity mocks base method.
func (*MockProvider) SupportsEntity ¶
func (m *MockProvider) SupportsEntity(entType v10.Entity) bool
SupportsEntity mocks base method.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) CanImplement ¶
func (mr *MockProviderMockRecorder) CanImplement(trait any) *gomock.Call
CanImplement indicates an expected call of CanImplement.
func (*MockProviderMockRecorder) DeregisterEntity ¶
func (mr *MockProviderMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
DeregisterEntity indicates an expected call of DeregisterEntity.
func (*MockProviderMockRecorder) FetchAllProperties ¶
func (mr *MockProviderMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
FetchAllProperties indicates an expected call of FetchAllProperties.
func (*MockProviderMockRecorder) FetchProperty ¶
func (mr *MockProviderMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
FetchProperty indicates an expected call of FetchProperty.
func (*MockProviderMockRecorder) GetEntityName ¶
func (mr *MockProviderMockRecorder) GetEntityName(entType, props any) *gomock.Call
GetEntityName indicates an expected call of GetEntityName.
func (*MockProviderMockRecorder) PropertiesToProtoMessage ¶
func (mr *MockProviderMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
PropertiesToProtoMessage indicates an expected call of PropertiesToProtoMessage.
func (*MockProviderMockRecorder) RegisterEntity ¶
func (mr *MockProviderMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
RegisterEntity indicates an expected call of RegisterEntity.
func (*MockProviderMockRecorder) ReregisterEntity ¶
func (mr *MockProviderMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
ReregisterEntity indicates an expected call of ReregisterEntity.
func (*MockProviderMockRecorder) SupportsEntity ¶
func (mr *MockProviderMockRecorder) SupportsEntity(entType any) *gomock.Call
SupportsEntity indicates an expected call of SupportsEntity.
type MockREST ¶
type MockREST struct {
// contains filtered or unexported fields
}
MockREST is a mock of REST interface.
func NewMockREST ¶
func NewMockREST(ctrl *gomock.Controller) *MockREST
NewMockREST creates a new mock instance.
func (*MockREST) CanImplement ¶
func (m *MockREST) CanImplement(trait v10.ProviderType) bool
CanImplement mocks base method.
func (*MockREST) DeregisterEntity ¶
func (m *MockREST) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
DeregisterEntity mocks base method.
func (*MockREST) EXPECT ¶
func (m *MockREST) EXPECT() *MockRESTMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockREST) FetchAllProperties ¶
func (m *MockREST) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, cachedProps *properties.Properties) (*properties.Properties, error)
FetchAllProperties mocks base method.
func (*MockREST) FetchProperty ¶
func (m *MockREST) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, key string) (*properties.Property, error)
FetchProperty mocks base method.
func (*MockREST) GetEntityName ¶
func (m *MockREST) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
GetEntityName mocks base method.
func (*MockREST) NewRequest ¶
NewRequest mocks base method.
func (*MockREST) PropertiesToProtoMessage ¶
func (m *MockREST) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
PropertiesToProtoMessage mocks base method.
func (*MockREST) RegisterEntity ¶
func (m *MockREST) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
RegisterEntity mocks base method.
func (*MockREST) ReregisterEntity ¶
func (m *MockREST) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
ReregisterEntity mocks base method.
type MockRESTMockRecorder ¶
type MockRESTMockRecorder struct {
// contains filtered or unexported fields
}
MockRESTMockRecorder is the mock recorder for MockREST.
func (*MockRESTMockRecorder) CanImplement ¶
func (mr *MockRESTMockRecorder) CanImplement(trait any) *gomock.Call
CanImplement indicates an expected call of CanImplement.
func (*MockRESTMockRecorder) DeregisterEntity ¶
func (mr *MockRESTMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
DeregisterEntity indicates an expected call of DeregisterEntity.
func (*MockRESTMockRecorder) Do ¶
func (mr *MockRESTMockRecorder) Do(ctx, req any) *gomock.Call
Do indicates an expected call of Do.
func (*MockRESTMockRecorder) FetchAllProperties ¶
func (mr *MockRESTMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
FetchAllProperties indicates an expected call of FetchAllProperties.
func (*MockRESTMockRecorder) FetchProperty ¶
func (mr *MockRESTMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
FetchProperty indicates an expected call of FetchProperty.
func (*MockRESTMockRecorder) GetBaseURL ¶
func (mr *MockRESTMockRecorder) GetBaseURL() *gomock.Call
GetBaseURL indicates an expected call of GetBaseURL.
func (*MockRESTMockRecorder) GetEntityName ¶
func (mr *MockRESTMockRecorder) GetEntityName(entType, props any) *gomock.Call
GetEntityName indicates an expected call of GetEntityName.
func (*MockRESTMockRecorder) NewRequest ¶
func (mr *MockRESTMockRecorder) NewRequest(method, url, body any) *gomock.Call
NewRequest indicates an expected call of NewRequest.
func (*MockRESTMockRecorder) PropertiesToProtoMessage ¶
func (mr *MockRESTMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
PropertiesToProtoMessage indicates an expected call of PropertiesToProtoMessage.
func (*MockRESTMockRecorder) RegisterEntity ¶
func (mr *MockRESTMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
RegisterEntity indicates an expected call of RegisterEntity.
func (*MockRESTMockRecorder) ReregisterEntity ¶
func (mr *MockRESTMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
ReregisterEntity indicates an expected call of ReregisterEntity.
func (*MockRESTMockRecorder) SupportsEntity ¶
func (mr *MockRESTMockRecorder) SupportsEntity(entType any) *gomock.Call
SupportsEntity indicates an expected call of SupportsEntity.
type MockRepoLister ¶
type MockRepoLister struct {
// contains filtered or unexported fields
}
MockRepoLister is a mock of RepoLister interface.
func NewMockRepoLister ¶
func NewMockRepoLister(ctrl *gomock.Controller) *MockRepoLister
NewMockRepoLister creates a new mock instance.
func (*MockRepoLister) CanImplement ¶
func (m *MockRepoLister) CanImplement(trait v10.ProviderType) bool
CanImplement mocks base method.
func (*MockRepoLister) DeregisterEntity ¶
func (m *MockRepoLister) DeregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
DeregisterEntity mocks base method.
func (*MockRepoLister) EXPECT ¶
func (m *MockRepoLister) EXPECT() *MockRepoListerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepoLister) FetchAllProperties ¶
func (m *MockRepoLister) FetchAllProperties(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, cachedProps *properties.Properties) (*properties.Properties, error)
FetchAllProperties mocks base method.
func (*MockRepoLister) FetchProperty ¶
func (m *MockRepoLister) FetchProperty(ctx context.Context, getByProps *properties.Properties, entType v10.Entity, key string) (*properties.Property, error)
FetchProperty mocks base method.
func (*MockRepoLister) GetEntityName ¶
func (m *MockRepoLister) GetEntityName(entType v10.Entity, props *properties.Properties) (string, error)
GetEntityName mocks base method.
func (*MockRepoLister) ListAllRepositories ¶
func (m *MockRepoLister) ListAllRepositories(arg0 context.Context) ([]*v10.Repository, error)
ListAllRepositories mocks base method.
func (*MockRepoLister) PropertiesToProtoMessage ¶
func (m *MockRepoLister) PropertiesToProtoMessage(entType v10.Entity, props *properties.Properties) (protoreflect.ProtoMessage, error)
PropertiesToProtoMessage mocks base method.
func (*MockRepoLister) RegisterEntity ¶
func (m *MockRepoLister) RegisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) (*properties.Properties, error)
RegisterEntity mocks base method.
func (*MockRepoLister) ReregisterEntity ¶
func (m *MockRepoLister) ReregisterEntity(ctx context.Context, entType v10.Entity, props *properties.Properties) error
ReregisterEntity mocks base method.
func (*MockRepoLister) SupportsEntity ¶
func (m *MockRepoLister) SupportsEntity(entType v10.Entity) bool
SupportsEntity mocks base method.
type MockRepoListerMockRecorder ¶
type MockRepoListerMockRecorder struct {
// contains filtered or unexported fields
}
MockRepoListerMockRecorder is the mock recorder for MockRepoLister.
func (*MockRepoListerMockRecorder) CanImplement ¶
func (mr *MockRepoListerMockRecorder) CanImplement(trait any) *gomock.Call
CanImplement indicates an expected call of CanImplement.
func (*MockRepoListerMockRecorder) DeregisterEntity ¶
func (mr *MockRepoListerMockRecorder) DeregisterEntity(ctx, entType, props any) *gomock.Call
DeregisterEntity indicates an expected call of DeregisterEntity.
func (*MockRepoListerMockRecorder) FetchAllProperties ¶
func (mr *MockRepoListerMockRecorder) FetchAllProperties(ctx, getByProps, entType, cachedProps any) *gomock.Call
FetchAllProperties indicates an expected call of FetchAllProperties.
func (*MockRepoListerMockRecorder) FetchProperty ¶
func (mr *MockRepoListerMockRecorder) FetchProperty(ctx, getByProps, entType, key any) *gomock.Call
FetchProperty indicates an expected call of FetchProperty.
func (*MockRepoListerMockRecorder) GetEntityName ¶
func (mr *MockRepoListerMockRecorder) GetEntityName(entType, props any) *gomock.Call
GetEntityName indicates an expected call of GetEntityName.
func (*MockRepoListerMockRecorder) ListAllRepositories ¶
func (mr *MockRepoListerMockRecorder) ListAllRepositories(arg0 any) *gomock.Call
ListAllRepositories indicates an expected call of ListAllRepositories.
func (*MockRepoListerMockRecorder) PropertiesToProtoMessage ¶
func (mr *MockRepoListerMockRecorder) PropertiesToProtoMessage(entType, props any) *gomock.Call
PropertiesToProtoMessage indicates an expected call of PropertiesToProtoMessage.
func (*MockRepoListerMockRecorder) RegisterEntity ¶
func (mr *MockRepoListerMockRecorder) RegisterEntity(ctx, entType, props any) *gomock.Call
RegisterEntity indicates an expected call of RegisterEntity.
func (*MockRepoListerMockRecorder) ReregisterEntity ¶
func (mr *MockRepoListerMockRecorder) ReregisterEntity(ctx, entType, props any) *gomock.Call
ReregisterEntity indicates an expected call of ReregisterEntity.
func (*MockRepoListerMockRecorder) SupportsEntity ¶
func (mr *MockRepoListerMockRecorder) SupportsEntity(entType any) *gomock.Call
SupportsEntity indicates an expected call of SupportsEntity.