Documentation
¶
Index ¶
- Variables
- func BuildRequest(opts interface{}, parent string) (map[string]interface{}, error)
- func CheckDeleted(d *schema.ResourceData, err error, msg string) error
- func GetRegion(d *schema.ResourceData) string
- func MapValueSpecs(d *schema.ResourceData) map[string]string
- func Provider() terraform.ResourceProvider
- func SecGroupV2StateRefreshFunc(computeClient *gophercloud.ServiceClient, d *schema.ResourceData) resource.StateRefreshFunc
- func ServerV2StateRefreshFunc(client *gophercloud.ServiceClient, instanceID string) resource.StateRefreshFunc
- func VolumeV1StateRefreshFunc(client *gophercloud.ServiceClient, volumeID string) resource.StateRefreshFunc
- func VolumeV2StateRefreshFunc(client *gophercloud.ServiceClient, volumeID string) resource.StateRefreshFunc
- type Config
- type FirewallCreateOpts
- type FloatingIPCreateOpts
- type KeyPairCreateOpts
- type LogRoundTripper
- type NetworkCreateOpts
- type PolicyCreateOpts
- type PortCreateOpts
- type RouterCreateOpts
- type RuleCreateOpts
- type SubnetCreateOpts
Constants ¶
This section is empty.
Variables ¶
var ContainerFormats = [9]string{"ami", "ari", "aki", "bare", "ovf"}
var DiskFormats = [9]string{"ami", "ari", "aki", "vhd", "vmdk", "raw", "qcow2", "vdi", "iso"}
Functions ¶
func BuildRequest ¶
BuildRequest takes an opts struct and builds a request body for Gophercloud to execute
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 GetRegion ¶
func GetRegion(d *schema.ResourceData) string
GetRegion returns the region from either d.Get("region") or OS_REGION_NAME
func MapValueSpecs ¶
func MapValueSpecs(d *schema.ResourceData) map[string]string
MapValueSpecs converts ResourceData into a map
func Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a schema.Provider for OpenStack.
func SecGroupV2StateRefreshFunc ¶
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.
func VolumeV2StateRefreshFunc ¶
func VolumeV2StateRefreshFunc(client *gophercloud.ServiceClient, volumeID string) resource.StateRefreshFunc
VolumeV2StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an OpenStack volume.
Types ¶
type Config ¶
type Config struct {
CACertFile string
ClientCertFile string
ClientKeyFile string
DomainID string
DomainName string
EndpointType string
IdentityEndpoint string
Insecure bool
Password string
Swauth bool
TenantID string
TenantName string
Token string
Username string
UserID string
// contains filtered or unexported fields
}
type FirewallCreateOpts ¶
type FirewallCreateOpts struct {
firewalls.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
FirewallCreateOpts represents the attributes used when creating a new firewall.
func (FirewallCreateOpts) ToFirewallCreateMap ¶
func (opts FirewallCreateOpts) ToFirewallCreateMap() (map[string]interface{}, error)
ToFirewallCreateMap casts a CreateOpts struct to a map. It overrides firewalls.ToFirewallCreateMap to add the ValueSpecs field.
type FloatingIPCreateOpts ¶
type FloatingIPCreateOpts struct {
floatingips.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
FloatingIPCreateOpts represents the attributes used when creating a new floating ip.
func (FloatingIPCreateOpts) ToFloatingIPCreateMap ¶
func (opts FloatingIPCreateOpts) ToFloatingIPCreateMap() (map[string]interface{}, error)
ToFloatingIPCreateMap casts a CreateOpts struct to a map. It overrides floatingips.ToFloatingIPCreateMap to add the ValueSpecs field.
type KeyPairCreateOpts ¶
type KeyPairCreateOpts struct {
keypairs.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
KeyPairCreateOpts represents the attributes used when creating a new keypair.
func (KeyPairCreateOpts) ToKeyPairCreateMap ¶
func (opts KeyPairCreateOpts) ToKeyPairCreateMap() (map[string]interface{}, error)
ToKeyPairCreateMap casts a CreateOpts struct to a map. It overrides keypairs.ToKeyPairCreateMap to add the ValueSpecs field.
type LogRoundTripper ¶ added in v0.8.8
type LogRoundTripper struct {
// contains filtered or unexported fields
}
LogRoundTripper satisfies the http.RoundTripper interface and is used to customize the default http client RoundTripper to allow for logging.
type NetworkCreateOpts ¶
type NetworkCreateOpts struct {
networks.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
NetworkCreateOpts represents the attributes used when creating a new network.
func (NetworkCreateOpts) ToNetworkCreateMap ¶
func (opts NetworkCreateOpts) ToNetworkCreateMap() (map[string]interface{}, error)
ToNetworkCreateMap casts a CreateOpts struct to a map. It overrides networks.ToNetworkCreateMap to add the ValueSpecs field.
type PolicyCreateOpts ¶
type PolicyCreateOpts struct {
policies.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
PolicyCreateOpts represents the attributes used when creating a new firewall policy.
func (PolicyCreateOpts) ToFirewallPolicyCreateMap ¶
func (opts PolicyCreateOpts) ToFirewallPolicyCreateMap() (map[string]interface{}, error)
ToPolicyCreateMap casts a CreateOpts struct to a map. It overrides policies.ToFirewallPolicyCreateMap to add the ValueSpecs field.
type PortCreateOpts ¶
type PortCreateOpts struct {
ports.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
PortCreateOpts represents the attributes used when creating a new port.
func (PortCreateOpts) ToPortCreateMap ¶
func (opts PortCreateOpts) ToPortCreateMap() (map[string]interface{}, error)
ToPortCreateMap casts a CreateOpts struct to a map. It overrides ports.ToPortCreateMap to add the ValueSpecs field.
type RouterCreateOpts ¶
type RouterCreateOpts struct {
routers.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
RouterCreateOpts represents the attributes used when creating a new router.
func (RouterCreateOpts) ToRouterCreateMap ¶
func (opts RouterCreateOpts) ToRouterCreateMap() (map[string]interface{}, error)
ToRouterCreateMap casts a CreateOpts struct to a map. It overrides routers.ToRouterCreateMap to add the ValueSpecs field.
type RuleCreateOpts ¶
type RuleCreateOpts struct {
rules.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
RuleCreateOpts represents the attributes used when creating a new firewall rule.
func (RuleCreateOpts) ToRuleCreateMap ¶
func (opts RuleCreateOpts) ToRuleCreateMap() (map[string]interface{}, error)
ToRuleCreateMap casts a CreateOpts struct to a map. It overrides rules.ToRuleCreateMap to add the ValueSpecs field.
type SubnetCreateOpts ¶
type SubnetCreateOpts struct {
subnets.CreateOpts
ValueSpecs map[string]string `json:"value_specs,omitempty"`
}
SubnetCreateOpts represents the attributes used when creating a new subnet.
func (SubnetCreateOpts) ToSubnetCreateMap ¶
func (opts SubnetCreateOpts) ToSubnetCreateMap() (map[string]interface{}, error)
ToSubnetCreateMap casts a CreateOpts struct to a map. It overrides subnets.ToSubnetCreateMap to add the ValueSpecs field.
Source Files
¶
- config.go
- data_source_openstack_images_image_v2.go
- data_source_openstack_networking_network_v2.go
- provider.go
- resource_openstack_blockstorage_volume_attach_v2.go
- resource_openstack_blockstorage_volume_v1.go
- resource_openstack_blockstorage_volume_v2.go
- resource_openstack_compute_floatingip_associate_v2.go
- resource_openstack_compute_floatingip_v2.go
- resource_openstack_compute_instance_v2.go
- resource_openstack_compute_keypair_v2.go
- resource_openstack_compute_secgroup_v2.go
- resource_openstack_compute_servergroup_v2.go
- resource_openstack_compute_volume_attach_v2.go
- resource_openstack_fw_firewall_v1.go
- resource_openstack_fw_policy_v1.go
- resource_openstack_fw_rule_v1.go
- resource_openstack_images_image_v2.go
- resource_openstack_lb_listener_v2.go
- resource_openstack_lb_loadbalancer_v2.go
- resource_openstack_lb_member_v1.go
- resource_openstack_lb_member_v2.go
- resource_openstack_lb_monitor_v1.go
- resource_openstack_lb_monitor_v2.go
- resource_openstack_lb_pool_v1.go
- resource_openstack_lb_pool_v2.go
- resource_openstack_lb_vip_v1.go
- resource_openstack_networking_floatingip_v2.go
- resource_openstack_networking_network_v2.go
- resource_openstack_networking_port_v2.go
- resource_openstack_networking_router_interface_v2.go
- resource_openstack_networking_router_route_v2.go
- resource_openstack_networking_router_v2.go
- resource_openstack_networking_secgroup_rule_v2.go
- resource_openstack_networking_secgroup_v2.go
- resource_openstack_networking_subnet_v2.go
- resource_openstack_objectstorage_container_v1.go
- types.go
- util.go