ucloud

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MPL-2.0 Imports: 28 Imported by: 0

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
	Region     string
	ProjectId  string

	MaxRetries int

	Insecure bool
}

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
}

func (*UCloudClient) DescribeImageById

func (client *UCloudClient) DescribeImageById(imageId string) (*uhost.UHostImageSet, error)

Jump to

Keyboard shortcuts

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