Documentation ¶
Index ¶
- Constants
- func ConvertTokenToDiscoverableHash(token string) string
- func PrivateKeyFromFile(filepath string) (*rsa.PrivateKey, error)
- type Client
- func (c *Client) CreateRequestWithJWT(ctx context.Context, method string, requestPath string, body io.Reader, ...) (*http.Request, error)
- func (c *Client) GenerateJWT() ([]byte, error)
- func (c *Client) GetInstallationID(ctx context.Context, owner string, repo string, token []byte) (int, error)
- func (c *Client) GetInstallationToken(ctx context.Context, installationID int, token []byte) (string, error)
- func (c *Client) GetToken(ctx context.Context, owner, repo string) (string, error)
- type InstallationAccessTokenResponse
- type InstallationResponse
- type Transport
Constants ¶
View Source
const (
DefaultEndpoint = "https://api.github.com"
)
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyFromFile ¶
func PrivateKeyFromFile(filepath string) (*rsa.PrivateKey, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func BuildGitHubCloudClient ¶
func (*Client) CreateRequestWithJWT ¶
func (*Client) GenerateJWT ¶
func (*Client) GetInstallationID ¶
func (*Client) GetInstallationToken ¶
type InstallationResponse ¶
type InstallationResponse struct {
ID int `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.