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 ¶
GetEndpointURL will return endpoint url string by region
func GetInsecureEndpointURL ¶
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)
Source Files ¶
- config.go
- consts.go
- data_source_ucloud_eips.go
- data_source_ucloud_images.go
- data_source_ucloud_projects.go
- data_source_ucloud_zones.go
- doc.go
- endpoints.go
- errors.go
- provider.go
- resource_ucloud_disk.go
- resource_ucloud_disk_attachment.go
- resource_ucloud_eip.go
- resource_ucloud_eip_association.go
- resource_ucloud_instance.go
- resource_ucloud_lb.go
- resource_ucloud_lb_attachment.go
- resource_ucloud_lb_listener.go
- resource_ucloud_lb_rule.go
- resource_ucloud_security_group.go
- resource_ucloud_subnet.go
- resource_ucloud_vpc.go
- resource_ucloud_vpc_peering_connection.go
- service_ucloud_udisk.go
- service_ucloud_uhost.go
- service_ucloud_ulb.go
- service_ucloud_unet.go
- service_ucloud_vpc.go
- state.go
- style_converter.go
- type_converter.go
- types.go
- utils.go
- validators.go
Click to show internal directories.
Click to hide internal directories.