Documentation ¶
Index ¶
- type FakeCommitClient
- type FakeGitClientFactory
- func (fgcf *FakeGitClientFactory) Clean() error
- func (fgcf *FakeGitClientFactory) ClientFor(_, _ string) (git.RepoClient, error)
- func (fgcf *FakeGitClientFactory) ClientForWithRepoOpts(_, _ string, _ git.RepoOpts) (git.RepoClient, error)
- func (fgcf *FakeGitClientFactory) ClientFromDir(_, _, _ string) (git.RepoClient, error)
- type FakeInteractor
- func (fi *FakeInteractor) Am(_ string) error
- func (fi *FakeInteractor) BranchExists(_ string) bool
- func (fi *FakeInteractor) Checkout(_ string) error
- func (fi *FakeInteractor) CheckoutNewBranch(_ string) error
- func (fi *FakeInteractor) CheckoutPullRequest(_ int) error
- func (fi *FakeInteractor) Clean() error
- func (fi *FakeInteractor) CommitExists(_ string) (bool, error)
- func (fi *FakeInteractor) Config(_ ...string) error
- func (fi *FakeInteractor) Diff(_, _ string) (changes []string, err error)
- func (fi *FakeInteractor) Directory() string
- func (fi *FakeInteractor) Fetch(_ ...string) error
- func (fi *FakeInteractor) FetchFromRemote(_ git.RemoteResolver, _ string) error
- func (fi *FakeInteractor) FetchRef(_ string) error
- func (fi *FakeInteractor) IsDirty() (bool, error)
- func (fi *FakeInteractor) Merge(_ string) (bool, error)
- func (fi *FakeInteractor) MergeAndCheckout(_, _ string, _ ...string) error
- func (fi *FakeInteractor) MergeCommitsExistBetween(_, _ string) (bool, error)
- func (fi *FakeInteractor) MergeWithStrategy(_, _ string, _ ...git.MergeOpt) (bool, error)
- func (fi *FakeInteractor) ObjectExists(_ string) (bool, error)
- func (fi *FakeInteractor) ResetHard(_ string) error
- func (fi *FakeInteractor) RevParse(_ string) (string, error)
- func (fi *FakeInteractor) RevParseN(_ []string) (map[string]string, error)
- func (fi *FakeInteractor) ShowRef(_ string) (string, error)
- type FakePublisher
- type FakeRepoClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCommitClient ¶
type FakeCommitClient struct{}
FakeCommitClient fakes the gardener/ci-infra githubinteractor CommitClient
type FakeGitClientFactory ¶
type FakeGitClientFactory struct {
DirectoryString string
}
FakeGitClientFactory fakes the prow git client factory
func (*FakeGitClientFactory) Clean ¶
func (fgcf *FakeGitClientFactory) Clean() error
Clean is a fake for Clean
func (*FakeGitClientFactory) ClientFor ¶
func (fgcf *FakeGitClientFactory) ClientFor(_, _ string) (git.RepoClient, error)
ClientFor is a fake for ClientFor
func (*FakeGitClientFactory) ClientForWithRepoOpts ¶
func (fgcf *FakeGitClientFactory) ClientForWithRepoOpts(_, _ string, _ git.RepoOpts) (git.RepoClient, error)
ClientForWithRepoOpts is a fake for ClientForWithRepoOpts
func (*FakeGitClientFactory) ClientFromDir ¶
func (fgcf *FakeGitClientFactory) ClientFromDir(_, _, _ string) (git.RepoClient, error)
ClientFromDir is a fake for ClientFromDir
type FakeInteractor ¶
type FakeInteractor struct{}
FakeInteractor fakes the prow git Publisher
func (*FakeInteractor) BranchExists ¶
func (fi *FakeInteractor) BranchExists(_ string) bool
BranchExists is a fake for BranchExists
func (*FakeInteractor) Checkout ¶
func (fi *FakeInteractor) Checkout(_ string) error
Checkout is a fake for Checkout
func (*FakeInteractor) CheckoutNewBranch ¶
func (fi *FakeInteractor) CheckoutNewBranch(_ string) error
CheckoutNewBranch is a fake for CheckoutNewBranch
func (*FakeInteractor) CheckoutPullRequest ¶
func (fi *FakeInteractor) CheckoutPullRequest(_ int) error
CheckoutPullRequest is a fake for CheckoutPullRequest
func (*FakeInteractor) CommitExists ¶
func (fi *FakeInteractor) CommitExists(_ string) (bool, error)
CommitExists is a fake for CommitExists
func (*FakeInteractor) Config ¶
func (fi *FakeInteractor) Config(_ ...string) error
Config is a fake for Config
func (*FakeInteractor) Diff ¶
func (fi *FakeInteractor) Diff(_, _ string) (changes []string, err error)
Diff is a fake for Diff
func (*FakeInteractor) Directory ¶
func (fi *FakeInteractor) Directory() string
Directory is a fake for Directory
func (*FakeInteractor) Fetch ¶
func (fi *FakeInteractor) Fetch(_ ...string) error
Fetch is a fake for Fetch
func (*FakeInteractor) FetchFromRemote ¶
func (fi *FakeInteractor) FetchFromRemote(_ git.RemoteResolver, _ string) error
FetchFromRemote is a fake for FetchFromRemote
func (*FakeInteractor) FetchRef ¶
func (fi *FakeInteractor) FetchRef(_ string) error
FetchRef is a fake for FetchRef
func (*FakeInteractor) IsDirty ¶
func (fi *FakeInteractor) IsDirty() (bool, error)
IsDirty is a fake for IsDirty
func (*FakeInteractor) Merge ¶
func (fi *FakeInteractor) Merge(_ string) (bool, error)
Merge is a fake for Merge
func (*FakeInteractor) MergeAndCheckout ¶
func (fi *FakeInteractor) MergeAndCheckout(_, _ string, _ ...string) error
MergeAndCheckout is a fake for MergeAndCheckout
func (*FakeInteractor) MergeCommitsExistBetween ¶
func (fi *FakeInteractor) MergeCommitsExistBetween(_, _ string) (bool, error)
MergeCommitsExistBetween is a fake for MergeCommitsExistBetween
func (*FakeInteractor) MergeWithStrategy ¶
func (fi *FakeInteractor) MergeWithStrategy(_, _ string, _ ...git.MergeOpt) (bool, error)
MergeWithStrategy is a fake for MergeWithStrategy
func (*FakeInteractor) ObjectExists ¶
func (fi *FakeInteractor) ObjectExists(_ string) (bool, error)
ObjectExists is a fake for ObjectExists
func (*FakeInteractor) ResetHard ¶
func (fi *FakeInteractor) ResetHard(_ string) error
ResetHard is a fake for ResetHard
func (*FakeInteractor) RevParse ¶
func (fi *FakeInteractor) RevParse(_ string) (string, error)
RevParse is a fake for RevParse
type FakePublisher ¶
type FakePublisher struct{}
FakePublisher fakes the prow git Publisher
func (*FakePublisher) Commit ¶
func (fp *FakePublisher) Commit(_, _ string) error
Commit is a fake for Commit
func (*FakePublisher) PushToCentral ¶
func (fp *FakePublisher) PushToCentral(_ string, _ bool) error
PushToCentral is a fake for PushToCentral
func (*FakePublisher) PushToFork ¶
func (fp *FakePublisher) PushToFork(_ string, _ bool) error
PushToFork is a fake for PushToFork
func (*FakePublisher) PushToNamedFork ¶
func (fp *FakePublisher) PushToNamedFork(_, _ string, _ bool) error
PushToNamedFork is a fake for PushToNamedFork
type FakeRepoClient ¶
type FakeRepoClient struct { FakePublisher FakeInteractor }
FakeRepoClient fakes the prow git RepoClient