tumblebug

package
v0.0.0-...-2bff06c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firewall

type Firewall struct {
	Model
	Config               string          `json:"connectionName"`
	VPCId                string          `json:"vNetId"`
	Description          string          `json:"description"`
	FirewallRules        []FirewallRules `json:"firewallRules"`
	CspSecurityGroupId   string          `json:"cspSecurityGroupId"`   // output
	CspSecurityGroupName string          `json:"cspSecurityGroupName"` // output
	KeyValueList         []KeyValue      `json:"keyValueList"`         // output
}

func NewFirewall

func NewFirewall(ns string, name string, conf string) *Firewall

func (*Firewall) DELETE

func (self *Firewall) DELETE(ns string) error

func (*Firewall) GET

func (self *Firewall) GET() (bool, error)

func (*Firewall) POST

func (self *Firewall) POST() error

type FirewallRules

type FirewallRules struct {
	From      string `json:"fromPort"`
	To        string `json:"toPort"`
	Protocol  string `json:"ipProtocol"`
	Direction string `json:"direction"`
}

type Image

type Image struct {
	Model
	Config       string     `json:"connectionName"`
	CspImageId   string     `json:"cspImageId"`
	CspImageName string     `json:"cspImageName"` // output
	CreationDate string     `json:"creationDate"` // output
	Description  string     `json:"description"`  //
	GuestOS      string     `json:"guestOS"`      //
	Status       string     `json:"status"`       // output
	KeyValueList []KeyValue `json:"keyValueList"` // output
}

func NewImage

func NewImage(ns string, name string, conf string) *Image

func (*Image) DELETE

func (self *Image) DELETE(ns string) error

func (*Image) GET

func (self *Image) GET() (bool, error)

func (*Image) POST

func (self *Image) POST() error

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type MCIS

type MCIS struct {
	Model
	Description string     `json:"description"`
	VMs         []model.VM `json:"vm"` // output
}

func NewMCIS

func NewMCIS(ns string, name string) *MCIS

func (*MCIS) DELETE

func (self *MCIS) DELETE() error

func (*MCIS) GET

func (self *MCIS) GET() (bool, error)

func (*MCIS) POST

func (self *MCIS) POST() error

type Model

type Model struct {
	Name string `json:"name"`
	// contains filtered or unexported fields
}

type NS

type NS struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

func NewNS

func NewNS(ns string) *NS

func (*NS) GET

func (self *NS) GET() (bool, error)

type SSHKey

type SSHKey struct {
	Model
	Config     string `json:"connectionName"`
	Username   string `json:"username"`
	PrivateKey string `json:"privateKey"` // output
}

func NewSSHKey

func NewSSHKey(ns string, name string, conf string) *SSHKey

func (*SSHKey) DELETE

func (self *SSHKey) DELETE(ns string) error

func (*SSHKey) GET

func (self *SSHKey) GET() (bool, error)

func (*SSHKey) POST

func (self *SSHKey) POST() error

type Spec

type Spec struct {
	Model
	Config      string `json:"connectionName"`
	CspSpecName string `json:"cspSpecName"`
	Role        string `json:"role"`
}

func NewSpec

func NewSpec(ns string, name string, conf string) *Spec

func (*Spec) DELETE

func (self *Spec) DELETE(ns string) error

func (*Spec) GET

func (self *Spec) GET() (bool, error)

func (*Spec) POST

func (self *Spec) POST() error

type Subnet

type Subnet struct {
	Name      string `json:"Name"`
	CidrBlock string `json:"IPv4_CIDR"`
}

type TVM

type TVM struct {
	Model
	VM model.VM
}

func NewTVm

func NewTVm(ns string, mcisName string) *TVM

func (*TVM) DELETE

func (self *TVM) DELETE() error

func (*TVM) GET

func (self *TVM) GET() (bool, error)

func (*TVM) POST

func (self *TVM) POST() error

type VPC

type VPC struct {
	Model
	Config       string     `json:"connectionName"`
	CidrBlock    string     `json:"cidrBlock"`
	Subnets      []Subnet   `json:"subnetInfoList"`
	Description  string     `json:"description"`
	CspVNetId    string     `json:"cspVNetId"`    // output
	CspVNetName  string     `json:"cspVNetName"`  // output
	Status       string     `json:"status"`       // output
	KeyValueList []KeyValue `json:"keyValueList"` // output
}

func NewVPC

func NewVPC(ns string, name string, conf string) *VPC

func (*VPC) DELETE

func (self *VPC) DELETE() error

func (*VPC) GET

func (self *VPC) GET() (bool, error)

func (*VPC) POST

func (self *VPC) POST() error

Jump to

Keyboard shortcuts

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