Documentation
¶
Index ¶
- func Delete(client *golangsdk.ServiceClient, id string) (err error)
- type ActionProgress
- type Cluster
- type ClusterLinks
- type ClusterQuery
- type ClusterResponse
- type ClusterTask
- type CreateFailed
- type CreateOpts
- type CustomerConfig
- type Datastore
- type DetailedInstances
- type EmptyObj
- type ExtendedProp
- type FailedReasons
- type Flavor
- type Instance
- type InstanceResp
- type JobId
- type MaintainWindow
- type Nic
- type PublicEndpointStatus
- type Resource
- type RestartOpts
- type RestartStruct
- type StopOpts
- type StopStruct
- type Task
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionProgress ¶
type Cluster ¶
type Cluster struct {
ScheduleBootTime string `json:"scheduleBootTime,omitempty"`
IsScheduleBootOff *bool `json:"isScheduleBootOff,omitempty"`
Instances []Instance `json:"instances,omitempty"`
DataStore *Datastore `json:"datastore,omitempty"`
ExtendedProperties *ExtendedProp `json:"extended_properties,omitempty"`
ScheduleOffTime string `json:"scheduleOffTime,omitempty"`
VpcId string `json:"vpcId,omitempty"`
Name string `json:"name,omitempty"`
SysTags []tag.ResourceTag `json:"sys_tags,omitempty"`
IsAutoOff *bool `json:"isAutoOff"`
}
type ClusterLinks ¶
type ClusterQuery ¶
type ClusterQuery struct {
PublicEndpoint string `json:"public_endpoint"`
Instances []DetailedInstances `json:"instances"`
SecurityGroupId string `json:"security_group_id"`
SubnetId string `json:"subnet_id"`
VpcId string `json:"vpc_id"`
CustomerConfig CustomerConfig `json:"customerConfig"`
Datastore Datastore `json:"datastore"`
IsAutoOff bool `json:"isAutoOff"`
PublicEndpointDomainName string `json:"publicEndpointDomainName"`
BakExpectedStartTime string `json:"bakExpectedStartTime"`
BakKeepDay string `json:"bakKeepDay"`
MaintainWindow MaintainWindow `json:"maintainWindow"`
RecentEvent int `json:"recentEvent"`
FlavorName string `json:"flavorName"`
AzName string `json:"azName"`
EndpointDomainName string `json:"endpointDomainName"`
PublicEndpointStatus PublicEndpointStatus `json:"publicEndpointStatus"`
IsScheduleBootOff bool `json:"isScheduleBootOff"`
Namespace string `json:"namespace"`
EipId string `json:"eipId"`
FailedReasons FailedReasons `json:"failedReasons"`
DbUser string `json:"dbuser"`
Links []ClusterLinks `json:"links"`
ClusterMode string `json:"clusterMode"`
Task ClusterTask `json:"task"`
Created string `json:"created"`
StatusDetail string `json:"statusDetail"`
ConfigStatus string `json:"config_status"`
ActionProgress ActionProgress `json:"actionProgress"`
Name string `json:"name"`
Id string `json:"id"`
IsFrozen string `json:"isFrozen"`
Actions []string `json:"actions"`
Updated string `json:"updated"`
Status string `json:"status"`
}
func Get ¶
func Get(client *golangsdk.ServiceClient, clusterId string) (*ClusterQuery, error)
type ClusterResponse ¶
type ClusterResponse struct {
Name string `json:"name"`
Id string `json:"id"`
Task Task `json:"task"`
Datastore Datastore `json:"datastore"`
Instances []InstanceResp `json:"instances"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*ClusterResponse, error)
type ClusterTask ¶
type CreateFailed ¶
type CreateOpts ¶
type CustomerConfig ¶
type CustomerConfig struct {
FailureRemind string `json:"failureRemind"`
ClusterName string `json:"clusterName"`
ServiceProvider string `json:"serviceProvider"`
LocalDisk string `json:"localDisk"`
Ssl string `json:"ssl"`
CreateFrom string `json:"createFrom"`
ResourceId string `json:"resourceId"`
FlavorType string `json:"flavorType"`
WorkSpaceId string `json:"workSpaceId"`
Trial string `json:"trial"`
}
type DetailedInstances ¶
type DetailedInstances struct {
Flavor Flavor `json:"flavor"`
Volume Volume `json:"volume"`
Status string `json:"status"`
Actions []string `json:"actions"`
Type string `json:"string"`
Name string `json:"name"`
Id string `json:"id"`
IsFrozen string `json:"isFrozen"`
Components string `json:"components"`
ConfigStatus string `json:"config_status"`
Role string `json:"role"`
Group string `json:"group"`
Links []ClusterLinks `json:"links"`
ParamsGroupId string `json:"paramsGroupId"`
PublicIp string `json:"publicIp"`
ManageIp string `json:"manageIp"`
TrafficIp string `json:"trafficIp"`
ShardId string `json:"shard_id"`
ManageFixIp string `json:"manage_fix_ip"`
PrivateIp string `json:"private_ip"`
InternalIp string `json:"internal_ip"`
Resource []Resource `json:"resource"`
}
type ExtendedProp ¶
type FailedReasons ¶
type FailedReasons struct {
CreateFailed CreateFailed `json:"CREATE_FAILED"`
}
type Flavor ¶
type Flavor struct {
Id string `json:"id"`
Links []ClusterLinks `json:"links"`
}
type InstanceResp ¶
type JobId ¶
type JobId struct {
JobId []string `json:"jobId"`
}
func Restart ¶
func Restart(client *golangsdk.ServiceClient, opts RestartOpts) (*JobId, error)
type MaintainWindow ¶
type PublicEndpointStatus ¶
type RestartOpts ¶
type RestartOpts struct {
Id string `json:"-"`
Restart RestartStruct `json:"restart" required:"true"`
}
type RestartStruct ¶
type StopOpts ¶
type StopOpts struct {
Id string `json:"-"`
Stop StopStruct `json:"stop" required:"true"`
}
type StopStruct ¶
Click to show internal directories.
Click to hide internal directories.