divvycloud

package
v0.0.0-...-fbf6386 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL