Documentation
¶
Index ¶
- Constants
- Variables
- func WithClient(ctx context.Context, tkn string) (context.Context, error)
- type Client
- func (c *Client) Add(fn func() error)
- func (c *Client) AddRepoToTeam(ctx context.Context, scrb scribe.Scriber, org, team, repo, perm string) error
- func (c *Client) Apply() error
- func (c *Client) CreateRepo(ctx context.Context, scrb scribe.Scriber, org string, repo *github.Repository)
- func (c *Client) CreateTeam(ctx context.Context, scrb scribe.Scriber, orgName, teamName string)
- func (c *Client) GetBranchProtection(ctx context.Context, org, repo, branch string) (*github.Protection, error)
- func (c *Client) GetBranches(ctx context.Context, org, repo string) ([]*github.Branch, error)
- func (c *Client) GetLogins(ctx context.Context) ([]string, error)
- func (c *Client) GetMembers(ctx context.Context, orgName string) ([]*github.User, error)
- func (c *Client) GetOrg(ctx context.Context, orgName string) (*github.Organization, error)
- func (c *Client) GetRepo(ctx context.Context, org, name string) (*github.Repository, error)
- func (c *Client) GetRepoTeams(ctx context.Context, org, repo string) ([]*github.Team, error)
- func (c *Client) GetRepoTopics(ctx context.Context, org, name string) ([]string, error)
- func (c *Client) GetRepos(ctx context.Context, name string) ([]*github.Repository, error)
- func (c *Client) GetTeamMembers(ctx context.Context, org, team string) ([]*github.User, error)
- func (c *Client) GetTeams(ctx context.Context, orgName string) ([]*github.Team, error)
- func (c *Client) InitRepo(ctx context.Context, scrb scribe.Scriber, org, repo, branch string)
- func (c *Client) InviteMember(ctx context.Context, scrb scribe.Scriber, orgName string, username string)
- func (c *Client) InviteTeamMember(ctx context.Context, scrb scribe.Scriber, org, team, user string)
- func (c *Client) IsBranchProtected(ctx context.Context, org, repo, branch string) (bool, error)
- func (c *Client) OrgExists(ctx context.Context, orgName string) (bool, error)
- func (c *Client) ProtectBranch(ctx context.Context, scrb scribe.Scriber, org, repo, branch string, ...) error
- func (c *Client) RemoveRepoFromTeam(ctx context.Context, scrb scribe.Scriber, org, team, repo string)
- func (c *Client) RemoveTeamMember(ctx context.Context, orgID, teamID int64, user string) error
- func (c *Client) SetOrgPrivileges(ctx context.Context, scrb scribe.Scriber, orgName string, ...) error
- func (c *Client) SetRepoTopics(ctx context.Context, scrb scribe.Scriber, org, repo string, topics []string)
- func (c *Client) SetRequireSignedCommits(ctx context.Context, scrb scribe.Scriber, org, repo, branch string, ...) error
- func (c *Client) UpdateRepo(ctx context.Context, scrb scribe.Scriber, org, repo string, ...)
Constants ¶
View Source
const ( BurstLimit = 10 RequestsPerSecond = 10 )
Variables ¶
View Source
var ( ErrClientNotFound = errors.New("client not found in context") ErrTokenEmpty = errors.New("token is empty; please run `concord auth` or set the GITHUB_TOKEN environment variable") )
View Source
var ( ErrOrgNotFound = errors.New("organization not found") ErrUserNotFound = errors.New("user not found") )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddRepoToTeam ¶
func (*Client) CreateRepo ¶
func (*Client) CreateTeam ¶
func (*Client) GetBranchProtection ¶
func (*Client) GetBranches ¶
func (*Client) GetMembers ¶
func (*Client) GetRepoTeams ¶
func (*Client) GetRepoTopics ¶
func (*Client) GetTeamMembers ¶
func (*Client) InviteMember ¶
func (*Client) InviteTeamMember ¶
func (*Client) IsBranchProtected ¶
func (*Client) ProtectBranch ¶
func (*Client) RemoveRepoFromTeam ¶
func (*Client) RemoveTeamMember ¶
func (*Client) SetOrgPrivileges ¶
func (*Client) SetRepoTopics ¶
func (*Client) SetRequireSignedCommits ¶
func (*Client) UpdateRepo ¶
Click to show internal directories.
Click to hide internal directories.