purestorage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type Config

type Config struct {
	Username       string
	Password       string
	Target         string
	ApiToken       string
	Rest_version   string
	Verify_https   bool
	Ssl_cert       bool
	User_agent     string
	Request_kwargs map[string]string
}

Config is the configuration for the Purestorage FlashArray Go Client. It holds the connection information to connect to the array API. Either the Username and Password or the API Token should be provided, but not both.

func NewConfig

func NewConfig(d *schema.ResourceData) (*Config, error)

NewConfig returns a new Config from a supplied ResourceData.

func (*Config) Client

func (c *Config) Client() (*flasharray.Client, error)

Client() returns a new client for accessing flasharray.

Jump to

Keyboard shortcuts

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