Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultOrganization = "navikt"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Org string // contains filtered or unexported fields }
func (*Client) Repositories ¶
func (c *Client) Repositories(ctx context.Context) ([]Repository, error)
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func (*Fetcher) Branches ¶
func (s *Fetcher) Branches(ctx context.Context, repo Repository) (Repository, error)
func (*Fetcher) Repositories ¶
func (s *Fetcher) Repositories() map[string]Repository
type Lister ¶
type Lister interface { Repositories(ctx context.Context) ([]Repository, error) Branches(ctx context.Context, r Repository) ([]Branch, error) }
type Repository ¶
type StaticLister ¶
type StaticLister struct {
// contains filtered or unexported fields
}
func NewStaticLister ¶
func NewStaticLister(repos []Repository, branches map[string][]Branch) *StaticLister
func (*StaticLister) Branches ¶
func (s *StaticLister) Branches(_ context.Context, r Repository) ([]Branch, error)
func (*StaticLister) Repositories ¶
func (s *StaticLister) Repositories(_ context.Context) ([]Repository, error)
Click to show internal directories.
Click to hide internal directories.