Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTokenSource ¶
func NewTokenSource(clientid string, clientsecret string, options ...Option) oauth2.TokenSource
NewTokenSource returns a new token source for stackpath
Types ¶
type Option ¶
type Option func(*TokenSource)
Option is used to pass options to the client during creation
func HTTPClientOption ¶
HTTPClientOption returns an option telling the Client to use the given http.Client
type TokenSource ¶
type TokenSource struct {
// contains filtered or unexported fields
}
TokenSource is an oauth2 token source for stackpath
Click to show internal directories.
Click to hide internal directories.