Documentation
¶
Index ¶
- type Bitbucket
- func (g *Bitbucket) AuthedUser(ctx context.Context) (string, error)
- func (g *Bitbucket) ListBranches(ctx context.Context, fullName string) ([]*provider.Branch, error)
- func (g *Bitbucket) ListRepos(ctx context.Context) ([]*provider.Repo, error)
- func (g *Bitbucket) ListTags(ctx context.Context, fullName string) ([]*provider.Tag, error)
- type Constructor
- type Github
- func (g *Github) AuthedUser(ctx context.Context) (string, error)
- func (g *Github) ListBranches(ctx context.Context, fullName string) ([]*provider.Branch, error)
- func (g *Github) ListRepos(ctx context.Context) ([]*provider.Repo, error)
- func (g *Github) ListTags(ctx context.Context, fullName string) ([]*provider.Tag, error)
- type Gitlab
- func (g *Gitlab) AuthedUser(ctx context.Context) (string, error)
- func (g *Gitlab) ListBranches(ctx context.Context, fullName string) ([]*provider.Branch, error)
- func (g *Gitlab) ListRepos(ctx context.Context) ([]*provider.Repo, error)
- func (g *Gitlab) ListTags(ctx context.Context, fullName string) ([]*provider.Tag, error)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
type Provider ¶
type Provider interface {
AuthedUser(ctx context.Context) (string, error)
ListRepos(ctx context.Context) ([]*provider.Repo, error)
ListBranches(ctx context.Context, fullName string) ([]*provider.Branch, error)
ListTags(ctx context.Context, fullName string) ([]*provider.Tag, error)
}
func NewBitbucket ¶
Click to show internal directories.
Click to hide internal directories.