Documentation ¶
Index ¶
- type FetchRepositoriesRequest
- type FetchRepositoriesResponse
- type Remote
- func NewBitbucketRemote(cfg *config.Bitbucket) (Remote, error)
- func NewCompositeRemote(remotes ...Remote) Remote
- func NewGenericRemote(cfg *config.Generic) Remote
- func NewGithubRemote(cfg *config.Github) (Remote, error)
- func NewGitlabRemote(cfg *config.Gitlab) (Remote, error)
- func NewStaticRemote(cfg *config.Static) Remote
- func ParseConfig(configuration *config.Configuration) (Remote, error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchRepositoriesRequest ¶ added in v0.1.0
type FetchRepositoriesRequest struct { }
FetchRepositoriesRequest is a request wrapper that encapsulates request data. Currently unused but may be leveraged for filters later on.
type FetchRepositoriesResponse ¶ added in v0.1.0
type FetchRepositoriesResponse struct {
Repositories []*Repository
}
FetchRepositoriesResponse is a response wrapper that encapsulates response data.
type Remote ¶
type Remote interface {
FetchRepositories(request *FetchRepositoriesRequest) (*FetchRepositoriesResponse, error)
}
Remote defines an abstraction for interacting with upstream source control providers.
func NewBitbucketRemote ¶
NewBitbucketRemote constructs a new remote implementation that speaks with Bitbucket for repository related information.
func NewCompositeRemote ¶
NewCompositeRemote wraps the supplied remotes in a composite wrapper which logs errors and continues processing remote endpoints.
func NewGenericRemote ¶
NewGenericRemote constructs a new remote endpoint that
func NewGithubRemote ¶
NewGithubRemote constructs a new remote implementation that speaks with GitHub for repository related information.
func NewGitlabRemote ¶
NewGitlabRemote constructs a new remote implementation that speaks with Gitlab for repository related information.
func NewStaticRemote ¶
NewStaticRemote produces a new remote from static configuration
func ParseConfig ¶
func ParseConfig(configuration *config.Configuration) (Remote, error)
ParseConfig is used to parse the account configuration and construct the necessary remote endpoint based on the configuration object.
type Repository ¶ added in v0.1.0
Repository represents the combination of a URL and it's corresponding clone credentials.