Documentation ¶
Index ¶
- type CommitStatus
- type GitAuthenticationProvider
- type PullRequest
- func (pr *PullRequest) Close(ctx context.Context, pullRequest *v1alpha1.PullRequest) error
- func (pr *PullRequest) Create(ctx context.Context, title, head, base, description string, ...) (id string, err error)
- func (pr *PullRequest) FindOpen(ctx context.Context, pullRequest *v1alpha1.PullRequest) (bool, error)
- func (pr *PullRequest) Merge(ctx context.Context, commitMessage string, pullRequest *v1alpha1.PullRequest) error
- func (pr *PullRequest) Update(ctx context.Context, title, description string, ...) error
- type PullRequestProviderState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitStatus ¶
type CommitStatus struct{}
func NewFakeCommitStatusProvider ¶
func NewFakeCommitStatusProvider(secret v1.Secret) (*CommitStatus, error)
func (CommitStatus) Set ¶
func (cs CommitStatus) Set(ctx context.Context, commitStatus *promoterv1alpha1.CommitStatus) (*promoterv1alpha1.CommitStatus, error)
type GitAuthenticationProvider ¶
type GitAuthenticationProvider struct {
// contains filtered or unexported fields
}
func NewFakeGitAuthenticationProvider ¶
func NewFakeGitAuthenticationProvider(scmProvider *v1alpha1.ScmProvider, secret *v1.Secret) GitAuthenticationProvider
func (GitAuthenticationProvider) GetGitHttpsRepoUrl ¶
func (gh GitAuthenticationProvider) GetGitHttpsRepoUrl(gitRepo v1alpha1.GitRepository) string
type PullRequest ¶
type PullRequest struct {
// contains filtered or unexported fields
}
func NewFakePullRequestProvider ¶
func NewFakePullRequestProvider(k8sClient client.Client) *PullRequest
func (*PullRequest) Close ¶
func (pr *PullRequest) Close(ctx context.Context, pullRequest *v1alpha1.PullRequest) error
func (*PullRequest) Create ¶
func (pr *PullRequest) Create(ctx context.Context, title, head, base, description string, pullRequest *v1alpha1.PullRequest) (id string, err error)
func (*PullRequest) FindOpen ¶
func (pr *PullRequest) FindOpen(ctx context.Context, pullRequest *v1alpha1.PullRequest) (bool, error)
func (*PullRequest) Merge ¶
func (pr *PullRequest) Merge(ctx context.Context, commitMessage string, pullRequest *v1alpha1.PullRequest) error
func (*PullRequest) Update ¶
func (pr *PullRequest) Update(ctx context.Context, title, description string, pullRequest *v1alpha1.PullRequest) error
type PullRequestProviderState ¶
type PullRequestProviderState struct { ID string State v1alpha1.PullRequestState }
Click to show internal directories.
Click to hide internal directories.