Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provider ¶
func Provider() terraform.ResourceProvider
Types ¶
type ClientTokenWrapper ¶
type ClientTokenWrapper struct { Token string *client.DivvyCloudV2 }
Wrap the generated divvycloud client with a token that is returned from the login call at client setup TODO: figure out if we can use the token auth support in go-swagger. the client swagger.json will need to support and it'll need to work with the login process
type LoginConfig ¶
type LoginConfig struct { Username string Password string Client *client.DivvyCloudV2 }
func (*LoginConfig) WrappedClient ¶
func (c *LoginConfig) WrappedClient() (interface{}, error)
I've no idea if this is proper doing the login here to get the session token divvycloud requires a login with a username/password and then taking the session id returned and using it as a token in X-Auth-Token header
Click to show internal directories.
Click to hide internal directories.