Documentation ¶
Index ¶
- func GetAllDetected() (token, v3ep, v3upload, v4ep, host, hostSource, tokenSource string)
- func GetTokenAndEndpoints() (token string, v3ep string, v3upload string, v4ep string)
- func NewGithubClient(opts ...Option) (*github.Client, error)
- type Config
- type Option
- func DialTimeout(to time.Duration) Option
- func Endpoint(t string) Option
- func HTTPClient(httpClient *http.Client) Option
- func Owner(owner string) Option
- func OwnerRepo(ownerrepo string) Option
- func SkipAuth(enable bool) Option
- func TLSHandshakeTimeout(to time.Duration) Option
- func Timeout(to time.Duration) Option
- func Token(t string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllDetected ¶ added in v41.0.11
func GetAllDetected() (token, v3ep, v3upload, v4ep, host, hostSource, tokenSource string)
GetAllDetected returns token, endpoints, host and sources. The endpoints to be generated are URLs without a trailing slash.
func GetTokenAndEndpoints ¶ added in v41.0.3
GetTokenAndEndpoints returns token and endpoints. The endpoints to be generated are URLs without a trailing slash.
Types ¶
Click to show internal directories.
Click to hide internal directories.