deployments

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateURL

func CreateURL(c *golangsdk.ServiceClient) string

func DeleteURL

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

func DeployURL

func DeployURL(c *golangsdk.ServiceClient, deploymentID string) string

func ExpandURL

func ExpandURL(c *golangsdk.ServiceClient, deploymentID string) 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 CreateOptsBuilder interface {
	ToDeploymentCreateMap() (map[string]interface{}, error)
}

type CreateResp

type CreateResp struct {
	ID        string     `json:"id"`
	Locations []Location `json:"locations"`
}

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

type DeleteResult struct {
	golangsdk.ErrResult
}

func Delete

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

type DeployResp

type DeployResp struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	DeploymentID string `json:"deployment_id"`
	Status       string `orm:"column(STATUS)" json:"status"`
}

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

Jump to

Keyboard shortcuts

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