Documentation
¶
Index ¶
Constants ¶
View Source
const (
// PerPageResultsDefault defines the default page size for search query responses
PerPageResultsDefault = 100
)
Variables ¶
View Source
var ( // WellKnownTokenVarNames lists known env var names for Github related tokens WellKnownTokenVarNames = []string{"GITHUB_TOKEN", "GH_TOKEN", "NPM_TOKEN"} )
Functions ¶
func NewClient ¶
NewClient conveniently creates a client connection to the Github API based on an already authenticated http client connection
If the authenticated client is not provided, a new client will be created by calling [NewOAuthClient] trying to find tokens in [WellKnownGithubTokenVarNames]
Providing a parameter for gccf would allow creating the github client with a customized function
Types ¶
type ClientCreationFunc ¶
ClientCreationFunc defines the structure of a function, which is capable for creating an oauth2 client
Click to show internal directories.
Click to hide internal directories.