ecs

package
v1.36.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceComputeAvailabilityZonesV2

func DataSourceComputeAvailabilityZonesV2() *schema.Resource

func DataSourceComputeFlavorV2 added in v1.25.3

func DataSourceComputeFlavorV2() *schema.Resource

func DataSourceComputeInstanceV2 added in v1.29.8

func DataSourceComputeInstanceV2() *schema.Resource

func DataSourceComputeInstancesV2 added in v1.33.0

func DataSourceComputeInstancesV2() *schema.Resource

func DataSourceComputeKeypairV2 added in v1.35.9

func DataSourceComputeKeypairV2() *schema.Resource

func FlattenInstanceNetworks

func FlattenInstanceNetworks(d *schema.ResourceData, meta interface{}) ([]map[string]interface{}, error)

FlattenInstanceNetworks collects instance network information from different sources and aggregates it all together into a map array.

func FloatingIPV2StateRefreshFunc

func FloatingIPV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, d *schema.ResourceData) resource.StateRefreshFunc

func GetInstanceAccessAddresses

func GetInstanceAccessAddresses(_ *schema.ResourceData, networks []map[string]interface{}) (string, string)

GetInstanceAccessAddresses determines the best IP address to communicate with the instance. It does this by looping through all networks and looking for a valid IP address. Priority is given to a network that was flagged as an access_network.

func GetInstanceNetworkInfo

func GetInstanceNetworkInfo(d *schema.ResourceData, meta interface{}, queryType, queryTerm string) (map[string]interface{}, error)

GetInstanceNetworkInfo will query for network information in order to make an accurate determination of a network's name and a network's ID.

We will try to first query the Neutron network service and fall back to the legacy nova-network service if that fails.

If OS_NOVA_NETWORK is set, query nova-network even if Neutron is available. This is to be able to explicitly test the nova-network API.

func ParseComputeFloatingIPAssociateId

func ParseComputeFloatingIPAssociateId(id string) (string, string, string, error)

func ParseComputeVolumeAttachmentId

func ParseComputeVolumeAttachmentId(id string) (string, string, error)

func ResourceComputeFloatingIPAssociateV2

func ResourceComputeFloatingIPAssociateV2() *schema.Resource

func ResourceComputeFloatingIPV2

func ResourceComputeFloatingIPV2() *schema.Resource

func ResourceComputeInstanceV2

func ResourceComputeInstanceV2() *schema.Resource

func ResourceComputeKeypairV2

func ResourceComputeKeypairV2() *schema.Resource

func ResourceComputeSecGroupV2

func ResourceComputeSecGroupV2() *schema.Resource

func ResourceComputeServerGroupV2

func ResourceComputeServerGroupV2() *schema.Resource

func ResourceComputeVolumeAttachV2

func ResourceComputeVolumeAttachV2() *schema.Resource

func ResourceEcsInstanceV1

func ResourceEcsInstanceV1() *schema.Resource

func ResourceInstanceBlockDevicesV2

func ResourceInstanceBlockDevicesV2(_ *schema.ResourceData, bds []interface{}) ([]bootfromvolume.BlockDevice, error)

func SecGroupV2StateRefreshFunc

func SecGroupV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, secGroupId string) resource.StateRefreshFunc

func ServerV2StateRefreshFunc

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

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

func SetTagForInstance

func SetTagForInstance(d *schema.ResourceData, meta interface{}, instanceID string, tagsMap map[string]interface{}) error

Types

type InstanceAddresses

type InstanceAddresses struct {
	NetworkName  string
	InstanceNICs []InstanceNIC
}

InstanceAddresses is a collection of InstanceNICs, grouped by the network name. An instance/server could have multiple NICs on the same network.

type InstanceNIC

type InstanceNIC struct {
	FixedIPv4 string
	FixedIPv6 string
	MAC       string
}

InstanceNIC is a structured representation of a golangsdk servers.Server virtual NIC.

type InstanceNetwork

type InstanceNetwork struct {
	UUID          string
	Name          string
	Port          string
	FixedIP       string
	AccessNetwork bool
}

InstanceNetwork represents a collection of network information that a Terraform instance needs to satisfy all network information requirements.

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 ServerGroupCreateOpts

type ServerGroupCreateOpts struct {
	servergroups.CreateOpts
	ValueSpecs map[string]string `json:"value_specs,omitempty"`
}

ServerGroupCreateOpts represents the attributes used when creating a new router.

func (ServerGroupCreateOpts) ToServerGroupCreateMap

func (opts ServerGroupCreateOpts) ToServerGroupCreateMap() (map[string]interface{}, error)

ToServerGroupCreateMap casts a CreateOpts struct to a map. It overrides routers.ToServerGroupCreateMap to add the ValueSpecs field.

Jump to

Keyboard shortcuts

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