Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TokenDecodeError = errors.New("Failed to decode token") JSONParseError = errors.New("Failed to parse JSON") )
View Source
var (
DEBUG = false
)
Functions ¶
Types ¶
type Client ¶
type Client struct { Host string BasicAuthUsername string BasicAuthPassword string AccessToken string VerifySSL bool }
Http Client, wraps go's http.Client for our usecase
func (Client) MakeRequest ¶
Make request with the given basic auth and ssl settings, returns reponse code and body as a byte array
func (Client) WithAuthorizationToken ¶
func (Client) WithBasicAuthCredentials ¶
type Token ¶
Encapsulates the access and refresh tokens from UAA
type UAAEnvironment ¶
type UAAEnvironment struct { Domain string Scheme string `env:"SCHEME" ` UAAClientID string `env:"UAA_CLIENT_ID" ` UAAClientSecret string `env:"UAA_CLIENT_SECRET" ` UAAHost string `env:"UAA_HOST" ` VerifySSL bool `env:"VERIFY_SSL" ` }
func UaaEnvironment ¶
func UaaEnvironment() UAAEnvironment
Click to show internal directories.
Click to hide internal directories.