bms

package
v1.24.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Overview

This set of code handles all functions required to configure addresses on an opentelekomcloud_compute_bms_server_v2 datasource.

This is a complicated task because it's not possible to obtain all information in a single API call. In fact, it even traverses multiple OpenTelekomCloud services.

The end result, from the user's point of view, is a structured set of understandable network information within the instance resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BmsServerV2StateRefreshFunc

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

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

func DataSourceBMSFlavorV2

func DataSourceBMSFlavorV2() *schema.Resource

func DataSourceBMSKeyPairV2

func DataSourceBMSKeyPairV2() *schema.Resource

func DataSourceBMSNicV2

func DataSourceBMSNicV2() *schema.Resource

func DataSourceBMSServersV2

func DataSourceBMSServersV2() *schema.Resource

func ResourceBMSTagsV2

func ResourceBMSTagsV2() *schema.Resource

func ResourceComputeBMSInstanceV2

func ResourceComputeBMSInstanceV2() *schema.Resource

Types

type ServerAddress

type ServerAddress struct {
	NetworkName string
	ServerNICS  []ServerNICS
}

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

type ServerNICS

type ServerNICS struct {
	IP      string
	MAC     string
	Type    string
	Version float64
}

ServerNICS is a structured representation of a Gophercloud servers.Server virtual NIC.

type ServerNetwork

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

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

Jump to

Keyboard shortcuts

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