vthunder

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_PARTITION = "Common"

Variables

This section is empty.

Functions

func NewSession

func NewSession(host, user, passwd string) vThunder

func NewTokenSession

func NewTokenSession(host string, user string, passwd string) (b vThunder, err error)

func Provider

func Provider() terraform.ResourceProvider

Types

type APIRequest

type APIRequest struct {
	Method      string
	URL         string
	Body        string
	ContentType string
}

type Config

type Config struct {
	Address        string
	Username       string
	Password       string
	LoginReference string
}

func (*Config) Client

func (c *Config) Client() (vThunder, error)

type Credentials added in v0.2.0

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type RequestError

type RequestError struct {
	Code       int      `json:"code,omitempty"`
	Message    string   `json:"message,omitempty"`
	ErrorStack []string `json:"errorStack,omitempty"`
}

func (*RequestError) Error

func (r *RequestError) Error() error

type Token added in v0.2.0

type Token struct {
	Credentials Credentials
	// contains filtered or unexported fields
}

Source Files

Jump to

Keyboard shortcuts

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