edgeclouds

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteURL

func DeleteURL(c *golangsdk.ServiceClient, edgeCloudID string) string

func GetURL

func GetURL(c *golangsdk.ServiceClient, edgeCloudID string) string

Types

type DeleteResult

type DeleteResult struct {
	golangsdk.ErrResult
}

func Delete

func Delete(client *golangsdk.ServiceClient, edgeCloudID string) (r DeleteResult)

type EdgeCloud

type EdgeCloud struct {
	ID             string          `json:"id,omitempty"`
	Name           string          `json:"name,omitempty"`
	Description    string          `json:"description,omitempty"`
	StackOptsSlice []StackDetail   `json:"stacks"`
	Coverage       common.Coverage `json:"coverage"`
	DeploymentIDs  []string        `json:"-"`
	ServerCount    int             `json:"-"`
	SuccessNum     int             `json:"success_num"`
	FailedNum      int             `json:"failed_num"`
	Status         string          `json:"status"`
	FailMessage    FailReason      `json:"fail_reason,omitempty"`
	// 边缘业务支持的边缘区域数目,等同于边缘业务下所有实例的区域数目总和
	EdgeRegions int `json:"edge_regions,omitempty"`
	TimeModel
}

EdgeCloud 边缘业务详情

type FailReason

type FailReason struct {
	ErrorCode    string `json:"fail_code,omitempty"`
	ErrorMessage string `json:"fail_message,omitempty"`
}

FailReason 失败缘由,只有失败的边缘业务中会显示

type GetResult

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

func Get

func Get(client *golangsdk.ServiceClient, edgeCloudID string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*EdgeCloud, error)

type SliceResourceOptsField

type SliceResourceOptsField []servers.CreateOpts

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详情

type TimeModel

type TimeModel struct {
	CreateAt time.Time `orm:"column(CREATEAT);type(datetime);auto_now_add" json:"create_at,omitempty"`
	UpdateAt time.Time `orm:"column(UPDATEAT);type(datetime);auto_now" json:"update_at,omitempty"`
	DeleteAt time.Time `orm:"column(DELETEAT);type(datetime)" json:"-"`
	Deleted  string    `orm:"column(DELETED)" json:"-"`
}

TimeModel record the time of creating, updating, deleting

Jump to

Keyboard shortcuts

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