ecgroup

package
v2.61.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v2.61.0

func Delete(service *services.Service, ecGroupID int) (*http.Response, error)

Types

type DNS

type DNS struct {
	ID      int      `json:"id,omitempty"`
	IPs     []string `json:"ips,omitempty"`
	DNSType string   `json:"dnsType,omitempty"`
}

type ECInstances

type ECInstances struct {
	ServiceNw      *ManagementNw `json:"serviceNw,omitempty"`
	VirtualNw      *ManagementNw `json:"virtualNw,omitempty"`
	ECInstanceType string        `json:"ecInstanceType,omitempty"`
	OutGwIp        string        `json:"outGwIp,omitempty"`
	NatIP          string        `json:"natIp,omitempty"`
	DNSIp          string        `json:"dnsIp,omitempty"`
}

type EcGroup

type EcGroup struct {
	ID                    int                    `json:"id,omitempty"`
	Name                  string                 `json:"name,omitempty"`
	Description           string                 `json:"desc,omitempty"`
	DeployType            string                 `json:"deployType,omitempty"`
	Status                []string               `json:"status,omitempty"`
	Platform              string                 `json:"platform,omitempty"`
	AWSAvailabilityZone   string                 `json:"awsAvailabilityZone,omitempty"`
	AzureAvailabilityZone string                 `json:"azureAvailabilityZone,omitempty"`
	MaxEcCount            int                    `json:"maxEcCount,omitempty"`
	TunnelMode            string                 `json:"tunnelMode,omitempty"`
	Location              *common.GeneralPurpose `json:"location,omitempty"`
	ProvTemplate          *common.GeneralPurpose `json:"provTemplate,omitempty"`
	ECVMs                 []common.ECVMs         `json:"ecVMs,omitempty"`
}

func Get added in v2.61.0

func Get(service *services.Service, ecGroupID int) (*EcGroup, error)

func GetAll added in v2.61.0

func GetAll(service *services.Service) ([]EcGroup, error)

func GetByName added in v2.61.0

func GetByName(service *services.Service, ecGroupName string) (*EcGroup, error)

func GetEcGroupLiteByName added in v2.61.0

func GetEcGroupLiteByName(service *services.Service, ecGroupLiteName string) (*EcGroup, error)

func GetEcGroupLiteID added in v2.61.0

func GetEcGroupLiteID(service *services.Service, ecGroupID int) (*EcGroup, error)

type LBIPAddr

type LBIPAddr struct {
	IPStart string `json:"ipStart,omitempty"`
	IPEnd   string `json:"ipEnd,omitempty"`
}

type ManagementNw

type ManagementNw struct {
	ID             int    `json:"id,omitempty"`
	IPStart        string `json:"ipStart,omitempty"`
	IPEnd          string `json:"ipEnd,omitempty"`
	Netmask        string `json:"netmask,omitempty"`
	DefaultGateway string `json:"defaultGateway,omitempty"`
	NWType         string `json:"nwType,omitempty"`
	DNS            *DNS   `json:"dns,omitempty"`
}

Jump to

Keyboard shortcuts

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