v0.6.16 Latest Latest

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

Go to latest
Published: May 9, 2016 License: MPL-2.0 Imports: 47 Imported by: 0




This section is empty.


This section is empty.


func CheckDeleted

func CheckDeleted(d *schema.ResourceData, err error, msg string) error

CheckDeleted checks the error to see if it's a 404 (Not Found) and, if so, sets the resource ID to the empty string instead of throwing an error.

func Provider

func Provider() terraform.ResourceProvider

Provider returns a schema.Provider for OpenStack.

func SecGroupV2StateRefreshFunc added in v0.6.7

func SecGroupV2StateRefreshFunc(computeClient *gophercloud.ServiceClient, d *schema.ResourceData) resource.StateRefreshFunc

func ServerV2StateRefreshFunc

func ServerV2StateRefreshFunc(client *gophercloud.ServiceClient, instanceID string) resource.StateRefreshFunc

ServerV2StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an OpenStack instance.

func VolumeV1StateRefreshFunc

func VolumeV1StateRefreshFunc(client *gophercloud.ServiceClient, volumeID string) resource.StateRefreshFunc

VolumeV1StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an OpenStack volume.


type Config

type Config struct {
	Username         string
	UserID           string
	Password         string
	Token            string
	APIKey           string
	IdentityEndpoint string
	TenantID         string
	TenantName       string
	DomainID         string
	DomainName       string
	Insecure         bool
	EndpointType     string
	CACertFile       string
	// contains filtered or unexported fields

type RouterCreateOpts added in v0.6.15

type RouterCreateOpts struct {
	Name         string
	AdminStateUp *bool
	Distributed  *bool
	TenantID     string
	GatewayInfo  *routers.GatewayInfo
	ValueSpecs   map[string]string

routerCreateOpts contains all the values needed to create a new router. There are no required values.

func (RouterCreateOpts) ToRouterCreateMap added in v0.6.15

func (opts RouterCreateOpts) ToRouterCreateMap() (map[string]interface{}, error)

ToRouterCreateMap casts a routerCreateOpts struct to a map.

Jump to

Keyboard shortcuts

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