Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the oauth library
func NewClient ¶
NewClient returns a new oauth client, the defaults are primarily for testing purposes
func (*Client) Token ¶
func (c *Client) Token(scope oauth.Permissions, audience string) (*oauth.BearerToken, error)
Token returns a client credentials token
type Option ¶
type Option func(*Client)
Option is a client option method used to set proprties of the oauth client
func WithClient ¶
WithClient sets the http client for the carmack api client
Click to show internal directories.
Click to hide internal directories.