Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RepoTypes = [...]RepoType{ RepoTypeApp, RepoTypeLib, RepoTypePlat, RepoTypeCore, RepoTypeMisc, } )
Functions ¶
This section is empty.
Types ¶
type RepoPermissionLevel ¶
type RepoPermissionLevel string
const ( RepoPermissionRead RepoPermissionLevel = "read" RepoPermissionTriage RepoPermissionLevel = "triage" RepoPermissionWrite RepoPermissionLevel = "write" RepoPermissionMaintain RepoPermissionLevel = "maintain" RepoPermissionAdmin RepoPermissionLevel = "admin" )
type Repository ¶
type Repository struct { Type RepoType `yaml:"type,omitempty"` Origin string `yaml:"origin,omitempty"` Name string `yaml:"name,omitempty"` PermissionLevel RepoPermissionLevel `yaml:"permission,omitempty"` // contains filtered or unexported fields }
func FindRepoByName ¶
func FindRepoByName(a string, repos []*Repository) *Repository
func NewListOfReposFromPath ¶
func NewListOfReposFromPath(ghApi *ghapi.GithubClient, githubOrg, reposDir string) ([]*Repository, error)
func NewTeamFromYAML ¶
func NewTeamFromYAML(ghApi *ghapi.GithubClient, githubOrg, reposFile string) (*Repository, error)
func (*Repository) Fullname ¶
func (r *Repository) Fullname() string
func (*Repository) NameEquals ¶
func (r *Repository) NameEquals(name string) bool
Click to show internal directories.
Click to hide internal directories.