Documentation ¶
Index ¶
- type Provider
- func (p Provider) Compare(project string, fromRef, toRef providers.Ref) (cmp *providers.Comparison, err error)
- func (p Provider) ListRefs(project string) (refs providers.Refs, err error)
- func (p Provider) ListRepositories() (repos providers.Repositories, err error)
- func (p Provider) ListRepositoryBranches(owner, repo string) (refs providers.Refs, err error)
- func (p *Provider) ListRepositoryTags(owner, repo string) (refs providers.Refs, err error)
- func (p Provider) Type() providers.ProviderType
- func (p Provider) WebBaseURL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the Provider interface for GitHub
func NewProvider ¶
NewProvider returns a new Provider with a new GitHub client instanciation and associated config
func (Provider) Compare ¶
func (p Provider) Compare(project string, fromRef, toRef providers.Ref) (cmp *providers.Comparison, err error)
Compare calculates the diff between two git references
func (Provider) ListRepositories ¶
func (p Provider) ListRepositories() (repos providers.Repositories, err error)
ListRepositories returns the list of all projects which belong to the organizations configured
func (Provider) ListRepositoryBranches ¶
ListRepositoryBranches returns all the branches for a given repository
func (*Provider) ListRepositoryTags ¶
ListRepositoryTags returns all the tags for a given repository
func (Provider) Type ¶
func (p Provider) Type() providers.ProviderType
Type returns the provider type
func (Provider) WebBaseURL ¶
WebBaseURL returns the base URL for HTML rendered pages (non-API)
Click to show internal directories.
Click to hide internal directories.