Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoInstallation = errors.New("github app is not installed for the repository")
ErrNoInstallation means the App is not installed for the requested repository.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client talks to the GitHub API using go-github and ghinstallation.
func (*Client) Mint ¶
func (c *Client) Mint(ctx context.Context, owner, repository string, repositories []string, permissions map[string]string) (Token, error)
Mint resolves the App installation for the repository and creates an installation token, optionally narrowed to repositories and permissions.
type Minter ¶
type Minter interface {
Mint(ctx context.Context, owner, repository string, repositories []string, permissions map[string]string) (Token, error)
}
Minter mints installation tokens. permissions may be nil to request all permissions granted to the App (callers should normally narrow them).
Click to show internal directories.
Click to hide internal directories.