ucloud

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MPL-2.0 Imports: 41 Imported by: 2

Documentation

Overview

Package ucloud is a terraform provider for UCloud

Index

Constants

View Source
const EnumUnknownInt = -1
View Source
const EnumUnknownString = "unknown"
View Source
const (
	NotFound = "Notfound"
)

Variables

This section is empty.

Functions

func GetEndpointURL

func GetEndpointURL(region string) string

GetEndpointURL will return endpoint url string by region

func GetInsecureEndpointURL

func GetInsecureEndpointURL(region string) string

GetInsecureEndpointURL will return endpoint url string by region

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

Types

type Config

type Config struct {
	PublicKey             string
	PrivateKey            string
	Profile               string
	SharedCredentialsFile string

	Region     string
	ProjectId  string
	Insecure   bool
	BaseURL    string
	MaxRetries int
}

Config is the configuration of ucloud meta data

func (*Config) Client

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

Client will returns a client with connections for all product

type ProviderError

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

func (*ProviderError) Error

func (e *ProviderError) Error() string

func (*ProviderError) ErrorCode

func (err *ProviderError) ErrorCode() string

func (*ProviderError) Message

func (err *ProviderError) Message() string

type UCloudClient

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

UCloudClient is the ucloud openapi client

Source Files

Jump to

Keyboard shortcuts

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