Documentation ¶
Index ¶
- func CheckDeleted(d *schema.ResourceData, err error, msg string) error
- 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 NetworkCreateOpts
- type RouterCreateOpts
- type SubnetCreateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
func VolumeV2StateRefreshFunc ¶ added in v0.7.0
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 { 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 ClientCertFile string ClientKeyFile string // contains filtered or unexported fields }
type NetworkCreateOpts ¶ added in v0.7.1
type NetworkCreateOpts struct { AdminStateUp *bool Name string TenantID string ValueSpecs map[string]string }
NetworkCreateOpts contains all teh values needed to create a new network.
func (NetworkCreateOpts) ToNetworkCreateMap ¶ added in v0.7.1
func (opts NetworkCreateOpts) ToNetworkCreateMap() (map[string]interface{}, error)
ToNetworkCreateMpa casts a networkCreateOpts struct to a map.
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.
type SubnetCreateOpts ¶ added in v0.7.1
type SubnetCreateOpts struct { // Required NetworkID string CIDR string // Optional Name string TenantID string AllocationPools []subnets.AllocationPool GatewayIP string NoGateway bool IPVersion int EnableDHCP *bool DNSNameservers []string HostRoutes []subnets.HostRoute ValueSpecs map[string]string }
SubnetCreateOpts represents the attributes used when creating a new subnet.
func (SubnetCreateOpts) ToSubnetCreateMap ¶ added in v0.7.1
func (opts SubnetCreateOpts) ToSubnetCreateMap() (map[string]interface{}, error)
ToSubnetCreateMap casts a CreateOpts struct to a map.
Source Files ¶
- config.go
- provider.go
- resource_openstack_blockstorage_volume_v1.go
- resource_openstack_blockstorage_volume_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_fw_firewall_v1.go
- resource_openstack_fw_policy_v1.go
- resource_openstack_fw_rule_v1.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
- util.go