Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponse ¶
type AccessTokenResponse struct { Token string `json:"token"` ExpiresAt time.Time `json:"expires_at"` Permissions map[string]string `json:"permissions"` RepositorySelection string `json:"repository_selection"` Repositories []Repository `json:"repositories,omitempty"` }
AccessTokenResponse represents the response from GitHub API for access token
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a GitHub API client
func NewClient ¶
func NewClient(config ClientConfig) *Client
NewClient creates a new GitHub API client
func (*Client) CreateInstallationAccessToken ¶
func (c *Client) CreateInstallationAccessToken(installationID string, jwt string) (*AccessTokenResponse, error)
CreateInstallationAccessToken creates an installation access token for a GitHub App
type ClientConfig ¶
type ClientConfig struct {
BaseURL string
}
ClientConfig holds the configuration for the GitHub API client
type Repository ¶
Repository represents a GitHub repository
Click to show internal directories.
Click to hide internal directories.