Documentation
¶
Index ¶
- type AdapterFinderStub
- type AuthStub
- type CommitSignerStub
- type ForgeProviderStub
- func (s *ForgeProviderStub) AuthToken() string
- func (s *ForgeProviderStub) CloneURL(_ globalEntities.Repository) string
- func (s *ForgeProviderStub) ConfigureTransport()
- func (s *ForgeProviderStub) CreatePullRequest(_ context.Context, _ globalEntities.Repository, ...) (*globalEntities.PullRequest, error)
- func (s *ForgeProviderStub) DiscoverRepositories(_ context.Context, _ string) ([]globalEntities.Repository, error)
- func (s *ForgeProviderStub) GetAuthMethods(_ string) []transport.AuthMethod
- func (s *ForgeProviderStub) GetServiceType() globalEntities.ServiceType
- func (s *ForgeProviderStub) MatchesURL(rawURL string) bool
- func (s *ForgeProviderStub) Name() string
- func (s *ForgeProviderStub) PrepareCloneURL(url string) string
- func (s *ForgeProviderStub) PullRequestExists(_ context.Context, _ globalEntities.Repository, _ string) (bool, error)
- type RepositoryDiscovererStub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterFinderStub ¶
type AdapterFinderStub struct {
AdapterByServiceTypeValue globalEntities.LocalGitAuthProvider
AdapterByURLValue globalEntities.LocalGitAuthProvider
}
AdapterFinderStub implements git.AdapterFinder for testing.
func (*AdapterFinderStub) GetAdapterByServiceType ¶
func (s *AdapterFinderStub) GetAdapterByServiceType( _ globalEntities.ServiceType, ) globalEntities.LocalGitAuthProvider
func (*AdapterFinderStub) GetAdapterByURL ¶
func (s *AdapterFinderStub) GetAdapterByURL(_ string) globalEntities.LocalGitAuthProvider
type CommitSignerStub ¶
CommitSignerStub implements CommitSigner for testing.
type ForgeProviderStub ¶
type ForgeProviderStub struct {
NameValue string
MatchURLValue string
TokenValue string
ServiceTypeValue globalEntities.ServiceType
AuthMethodsValue []transport.AuthMethod
}
ForgeProviderStub implements ForgeProvider + LocalGitAuthProvider for testing.
func (*ForgeProviderStub) AuthToken ¶
func (s *ForgeProviderStub) AuthToken() string
func (*ForgeProviderStub) CloneURL ¶
func (s *ForgeProviderStub) CloneURL(_ globalEntities.Repository) string
func (*ForgeProviderStub) ConfigureTransport ¶
func (s *ForgeProviderStub) ConfigureTransport()
func (*ForgeProviderStub) CreatePullRequest ¶
func (s *ForgeProviderStub) CreatePullRequest( _ context.Context, _ globalEntities.Repository, _ globalEntities.PullRequestInput, ) (*globalEntities.PullRequest, error)
func (*ForgeProviderStub) DiscoverRepositories ¶
func (s *ForgeProviderStub) DiscoverRepositories( _ context.Context, _ string, ) ([]globalEntities.Repository, error)
func (*ForgeProviderStub) GetAuthMethods ¶
func (s *ForgeProviderStub) GetAuthMethods(_ string) []transport.AuthMethod
func (*ForgeProviderStub) GetServiceType ¶
func (s *ForgeProviderStub) GetServiceType() globalEntities.ServiceType
func (*ForgeProviderStub) MatchesURL ¶
func (s *ForgeProviderStub) MatchesURL(rawURL string) bool
func (*ForgeProviderStub) Name ¶
func (s *ForgeProviderStub) Name() string
func (*ForgeProviderStub) PrepareCloneURL ¶
func (s *ForgeProviderStub) PrepareCloneURL(url string) string
func (*ForgeProviderStub) PullRequestExists ¶
func (s *ForgeProviderStub) PullRequestExists( _ context.Context, _ globalEntities.Repository, _ string, ) (bool, error)
type RepositoryDiscovererStub ¶
type RepositoryDiscovererStub struct {
NameValue string
}
RepositoryDiscovererStub implements RepositoryDiscoverer for testing.
func (*RepositoryDiscovererStub) DiscoverRepositories ¶
func (s *RepositoryDiscovererStub) DiscoverRepositories( _ context.Context, _ string, ) ([]globalEntities.Repository, error)
func (*RepositoryDiscovererStub) Name ¶
func (s *RepositoryDiscovererStub) Name() string
Click to show internal directories.
Click to hide internal directories.