ecgroup

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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"`
}

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"`
}

type Service

type Service struct {
	Client *zcon.Client
}

func New

func New(c *zcon.Client) *Service

func (*Service) Delete

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

func (*Service) Get

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

func (*Service) GetAll

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

func (*Service) GetByName

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

func (*Service) GetEcGroupLiteByName

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

func (*Service) GetEcGroupLiteID

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

Jump to

Keyboard shortcuts

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