adaptiveip

package
v0.0.0-...-ac260c1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(restClient *client.RestClient, adaptiveIP string, requestOpts *client.RequestOpts) error

func List

func List(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]AdaptiveIPInfo, error)

func ListAvailableIP

func ListAvailableIP(restClient *client.RestClient, requestOpts *client.RequestOpts) (*[]IPInfo, error)

Types

type AdaptiveIPInfo

type AdaptiveIPInfo struct {
	ID          string
	IP          string
	Name        string
	Rules       interface{}
	TenantId    string
	Creator     string
	State       string
	CreatedAt   string
	PrivateIp   string
	Protection  int
	RuleCount   int
	VmName      string
	Description string
}

func Create

func Create(restClient *client.RestClient, requestOpts *client.RequestOpts) (*AdaptiveIPInfo, error)

func Get

func Get(restClient *client.RestClient, adaptiveIPId string, requestOpts *client.RequestOpts) (*AdaptiveIPInfo, error)

type IPInfo

type IPInfo struct {
	IP string `json:"addr"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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