fake

package
v0.0.1-rc5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

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

func (GitAuthenticationProvider) GetToken

func (GitAuthenticationProvider) GetUser

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
}

Jump to

Keyboard shortcuts

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