Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCredentials ¶
func ClientCredentials(ctx context.Context, clientID, clientSecret string, opts ...Option) oauth2.TokenSource
ClientCredentials returns a TokenSource that will retrieve client credentials for use with zveloAPI
Types ¶
type Option ¶
type Option func(*options)
An Option is used to configure different parts of this package
func WithTokenURL ¶
WithTokenURL returns an option that overrides the default TokenURL, zapi.Endpoint.TokenURL
Click to show internal directories.
Click to hide internal directories.