Documentation
¶
Overview ¶
Package github provides a client to interact with GitHub Enterprise.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTokenRequired is returned when a GitHub Enterprise token is not provided. ErrTokenRequired = fmt.Errorf("GitHub Enterprise token is required") // ErrAPIBaseURLRequired is returned when a GitHub Enterprise API base URL is not provided. ErrAPIBaseURLRequired = fmt.Errorf("GitHub Enterprise API base URL is required") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a GitHub client wrapper.
func NewClient ¶
func NewClient(ctx context.Context, logger *slog.Logger, m *metrics.Client, cfg config.GHEConfig) (*Client, error)
NewClient creates a new GitHub Enterprise client.
func (*Client) Organizations ¶
Organizations returns the list of all GitHub Enterprise organizations.
Click to show internal directories.
Click to hide internal directories.