purestorage

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: Apache-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

Provider is the terraform resource provider called by main.go

Types

type Config

type Config struct {
	Username      string
	Password      string
	Target        string
	APIToken      string
	RestVersion   string
	VerifyHTTPS   bool
	SslCert       bool
	UserAgent     string
	RequestKwargs 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