Documentation
¶
Overview ¶
Package github contains a directory provider for github.
Index ¶
Constants ¶
View Source
const Name = "github"
Name is the provider name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(cfg *config)
An Option updates the github configuration.
func WithHTTPClient ¶
WithHTTPClient sets the http client option.
func WithServiceAccount ¶
func WithServiceAccount(serviceAccount *ServiceAccount) Option
WithServiceAccount sets the service account in the config.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
The Provider retrieves users and groups from github.
type ServiceAccount ¶
type ServiceAccount struct { Username string `json:"username"` PersonalAccessToken string `json:"personal_access_token"` }
A ServiceAccount is used by the GitHub provider to query the GitHub API.
func ParseServiceAccount ¶
func ParseServiceAccount(rawServiceAccount string) (*ServiceAccount, error)
ParseServiceAccount parses the service account in the config options.
Click to show internal directories.
Click to hide internal directories.