ncloud

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiErrorAuthorityParameter = "800"
	ApiErrorUnknown            = "1300"

	ApiErrorObjectInOperation                            = "25013"
	ApiErrorPortForwardingObjectInOperation              = "25033"
	ApiErrorServerObjectInOperation                      = "23006" // Unable to request server termination and creation simultaneously
	ApiErrorServerObjectInOperation2                     = "25017"
	ApiErrorPreviousServersHaveNotBeenEntirelyTerminated = "23003"

	ApiErrorDetachingMountedStorage = "24002"
)
View Source
const DefaultCreateTimeout = 1 * time.Hour
View Source
const DefaultStopTimeout = 5 * time.Minute
View Source
const DefaultTimeout = 5 * time.Minute

Default timeout

View Source
const DefaultUpdateTimeout = 10 * time.Minute
View Source
const DefaultWaitForInterval = 10

DefaultWaitForInterval is Interval for checking status in WaitForXXX method

Variables

This section is empty.

Functions

func PortForwardingRuleId

func PortForwardingRuleId(portForwardingConfigurationNo string, zonNo string, portForwardingExternalPort int32) string

func Provider

func Provider() terraform.ResourceProvider

func StringField

func StringField(f reflect.Value) *string

func StringPtrOrNil

func StringPtrOrNil(v interface{}, ok bool) *string

Types

type CommonCode

type CommonCode struct {
	Code     *string `json:"code,omitempty"`
	CodeName *string `json:"codeName,omitempty"`
}

type CommonResponse

type CommonResponse struct {
	RequestId     *string `json:"requestId,omitempty"`
	ReturnCode    *string `json:"returnCode,omitempty"`
	ReturnMessage *string `json:"returnMessage,omitempty"`
}

func GetCommonResponse

func GetCommonResponse(i interface{}) *CommonResponse

type Config

type Config struct {
	AccessKey string
	SecretKey string
}

func (*Config) Client

func (c *Config) Client() (*NcloudAPIClient, error)

type NcloudAPIClient

type NcloudAPIClient struct {
	// contains filtered or unexported fields
}

type Region

type Region struct {
	RegionNo   *string `json:"regionNo,omitempty"`
	RegionCode *string `json:"regionCode,omitempty"`
	RegionName *string `json:"regionName,omitempty"`
}

func GetRegion

func GetRegion(i interface{}) *Region

type Zone

type Zone struct {
	ZoneNo          *string `json:"zoneNo,omitempty"`
	ZoneName        *string `json:"zoneName,omitempty"`
	ZoneCode        *string `json:"zoneCode,omitempty"`
	ZoneDescription *string `json:"zoneDescription,omitempty"`
	RegionNo        *string `json:"regionNo,omitempty"`
}

func GetZone

func GetZone(i interface{}) *Zone

Jump to

Keyboard shortcuts

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