ipset

package
v0.0.0-...-c3caef9 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIPSetAPI

type CreateIPSetAPI struct {
	*api.BaseAPI
}

CreateIPSetAPI api object

func NewCreate

func NewCreate(scopeID string, ipSet *IPSet) *CreateIPSetAPI

NewCreate returns a new object of CreateIpSetAPI.

func (CreateIPSetAPI) GetResponse

func (ca CreateIPSetAPI) GetResponse() string

GetResponse returns a ResponseObject of CreateIpSetAPI.

type DeleteIPSetAPI

type DeleteIPSetAPI struct {
	*api.BaseAPI
}

DeleteIPSetAPI base object.

func NewDelete

func NewDelete(ipSetID string) *DeleteIPSetAPI

NewDelete returns a new object of DeleteIpSetAPI.

type GetAllIPSetAPI

type GetAllIPSetAPI struct {
	*api.BaseAPI
}

GetAllIPSetAPI base object.

func NewGetAll

func NewGetAll(scopeID string) *GetAllIPSetAPI

NewGetAll returns a new object of GetAllIpSetAPI.

func (GetAllIPSetAPI) GetResponse

func (ga GetAllIPSetAPI) GetResponse() *List

GetResponse returns ResponseObject of GetAllIpSetAPI.

type GetIPSetAPI

type GetIPSetAPI struct {
	*api.BaseAPI
}

GetIPSetAPI base object.

func NewGet

func NewGet(scopeID string) *GetIPSetAPI

NewGet returns a new object of GetIpSetAPI.

func (GetIPSetAPI) GetResponse

func (ga GetIPSetAPI) GetResponse() *IPSet

GetResponse returns ResponseObject of GetIpSetAPI.

type IPSet

type IPSet struct {
	XMLName            xml.Name `xml:"ipset"`
	ObjectID           string   `xml:"objectId,omitempty"`
	ObjectTypeName     string   `xml:"objectTypeName,omitempty"`
	VsmUUID            string   `xml:"vsmUuid,omitempty"`
	NodeID             string   `xml:"nodeId,omitempty"`
	Revision           int      `xml:"revision,omitempty"`
	TypeName           string   `xml:"type,omitempty>typeName,omitempty"`
	Name               string   `xml:"name,omitempty"`
	Description        string   `xml:"description,omitempty"`
	IsUniversal        bool     `xml:"isUniversal,omitempty"`
	InheritanceAllowed bool     `xml:"inheritanceAllowed,omitempty"`
	Value              string   `xml:"value,omitempty"`
}

IPSet object struct

type IPSets

type IPSets struct {
	IPSets []IPSet `xml:"ipset"`
}

IPSets top level struct

type List

type List struct {
	XMLName xml.Name `xml:"list"`
	IPSets  []IPSet  `xml:"ipset"`
}

List - top level <list> element

type UpdateIPSetAPI

type UpdateIPSetAPI struct {
	*api.BaseAPI
}

UpdateIPSetAPI object

func NewUpdate

func NewUpdate(ipsetID string, ipsetPayload *IPSet) *UpdateIPSetAPI

NewUpdate creates a new object of UpdateIpSetAPI

func (UpdateIPSetAPI) GetResponse

func (updateAPI UpdateIPSetAPI) GetResponse() *IPSet

GetResponse returns the ResponseObject from UpdateServiceAPI

Jump to

Keyboard shortcuts

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