Documentation ¶
Index ¶
- type Gitstrap
- func (g *Gitstrap) Apply(m *spec.Model) error
- func (g *Gitstrap) Create(m *spec.Model) error
- func (g *Gitstrap) Delete(m *spec.Model) error
- func (g *Gitstrap) GetHooks(owner, name string) (<-chan *spec.Model, <-chan error)
- func (g *Gitstrap) GetOrg(name string) (*spec.Model, error)
- func (g *Gitstrap) GetProtection(owner, repo, branch string) (*spec.Model, error)
- func (g *Gitstrap) GetRepo(name string, owner string) (*spec.Model, error)
- func (g *Gitstrap) GetTeams(org string) (<-chan *spec.Model, <-chan error)
- func (g *Gitstrap) ListRepos(filter ListFilter, owner string, errs chan<- error) <-chan *RepoInfo
- type LfStarsCriteria
- type ListFilter
- type RepoInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gitstrap ¶
type Gitstrap struct {
// contains filtered or unexported fields
}
Gitstrap - main context
func (*Gitstrap) GetProtection ¶
type LfStarsCriteria ¶
LfStarsCriteria - criteria of repository stars for filtering
func LfStarsGt ¶
func LfStarsGt(val int) LfStarsCriteria
LfStarsGt - list filter stars criteria: greater than `val`
func LfStarsLt ¶
func LfStarsLt(val int) LfStarsCriteria
LfStarsLt - list filter stars criteria: less than `val`
type ListFilter ¶
type ListFilter interface {
// contains filtered or unexported methods
}
ListFilter for list results
var LfNop ListFilter = &lfNop{}
LfNop - list filter does nothing
func LfForks ¶
func LfForks(origin ListFilter, fork bool) ListFilter
LfForks - list filter by fork criteria
func LfStars ¶
func LfStars(origin ListFilter, criteria LfStarsCriteria) ListFilter
LfStars - list filter by stars count
Click to show internal directories.
Click to hide internal directories.