Documentation ¶
Index ¶
- func CreateURL(c *golangsdk.ServiceClient) string
- func DeleteURL(c *golangsdk.ServiceClient, deploymentID string) string
- func DeployURL(c *golangsdk.ServiceClient, deploymentID string) string
- func ExpandURL(c *golangsdk.ServiceClient, deploymentID string) string
- type CreateOpts
- type CreateOptsBuilder
- type CreateResp
- type CreateResult
- type DeleteResult
- type DeployResp
- type DeployResult
- type EdgeCloud
- type ExpandResult
- type Location
- type SliceResourceOptsField
- type StackDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateURL ¶
func CreateURL(c *golangsdk.ServiceClient) string
Types ¶
type CreateOpts ¶
type CreateOpts struct {
EdgeCloud EdgeCloud `json:"edgecloud"`
}
EdgeCloud 边缘业务
func (CreateOpts) ToDeploymentCreateMap ¶
func (opts CreateOpts) ToDeploymentCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResp ¶
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
func (CreateResult) ExtractCreateResult ¶
func (r CreateResult) ExtractCreateResult() (*CreateResp, error)
type DeleteResult ¶
func Delete ¶
func Delete(client *golangsdk.ServiceClient, deploymentID string) (r DeleteResult)
type DeployResp ¶
type DeployResult ¶
type DeployResult struct {
// contains filtered or unexported fields
}
func Deploy ¶
func Deploy(client *golangsdk.ServiceClient, deploymentID string) (r DeployResult)
func Expand ¶
func Expand(client *golangsdk.ServiceClient, deploymentID string) (r DeployResult)
func (DeployResult) ExtractDeployOrExpandResult ¶
func (r DeployResult) ExtractDeployOrExpandResult() (*DeployResp, error)
type EdgeCloud ¶
type EdgeCloud struct { Name string `json:"name"` Description string `json:"description,omitempty"` StackObj StackDetail `json:"stack"` CoverageObj common.Coverage `json:"coverage"` }
type ExpandResult ¶
type ExpandResult struct {
// contains filtered or unexported fields
}
func (ExpandResult) ExtractExpandResult ¶
func (r ExpandResult) ExtractExpandResult() (*DeployResp, error)
type Location ¶
type Location struct { //SiteID site id SiteID string `json:"site_id"` // Area title Area string `json:"area"` // Province title Province string `json:"province"` // City title City string `json:"city"` // Operator title Operator string `json:"operator"` //Region region info Region string `json:"-"` // AvailabilityZone title AvailabilityZone string `json:"-"` // Count title Count int `json:"stack_count"` }
Location struct
type SliceResourceOptsField ¶
type SliceResourceOptsField []common.ResourceOpts
SliceResourceOptsField A slice string field.
type StackDetail ¶
type StackDetail struct { //ID ID string `json:"id"` //NAME Name string `json:"name"` Resources SliceResourceOptsField `json:"resources"` }
StackDetail Stack详情
Click to show internal directories.
Click to hide internal directories.