edgeinterface

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: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressGroup

type AddressGroup struct {
	XMLName        xml.Name `xml:"addressGroup"`
	PrimaryAddress string   `xml:"primaryAddress"`
	SubnetMask     string   `xml:"subnetMask"`
}

AddressGroup object within AddressGroup list.

type AddressGroups

type AddressGroups struct {
	AddressGroups []AddressGroup `xml:"addressGroup"`
}

AddressGroups within EdgeInterface.

type CreateEdgeInterfaceAPI

type CreateEdgeInterfaceAPI struct {
	*api.BaseAPI
}

CreateEdgeInterfaceAPI struct

func NewCreate

func NewCreate(edgeInterfaceList *EdgeInterfaces, edgeID string) *CreateEdgeInterfaceAPI

NewCreate returns a new object of CreateEdgeInterfaceAPI

func (CreateEdgeInterfaceAPI) GetResponse

func (createAPI CreateEdgeInterfaceAPI) GetResponse() *EdgeInterfaces

GetResponse returns the ResponseObject.

type DeleteEdgeInterfaceAPI

type DeleteEdgeInterfaceAPI struct {
	*api.BaseAPI
}

DeleteEdgeInterfaceAPI struct

func NewDelete

func NewDelete(edgeID string, index int) *DeleteEdgeInterfaceAPI

NewDelete returns a new delete method object of DeleteEdgeInterfaceAPI

type EdgeInterface

type EdgeInterface struct {
	XMLName       xml.Name      `xml:"interface"`
	Name          string        `xml:"name"`
	Label         string        `xml:"label,omitempty"`
	Mtu           int           `xml:"mtu"`
	Type          string        `xml:"type"`
	IsConnected   bool          `xml:"isConnected"`
	ConnectedToID string        `xml:"connectedToId"`
	AddressGroups AddressGroups `xml:"addressGroups"`
	Index         int           `xml:"index,omitempty"`
}

EdgeInterface object within EdgeInterfaces list.

type EdgeInterfaces

type EdgeInterfaces struct {
	XMLName    xml.Name        `xml:"interfaces"`
	Interfaces []EdgeInterface `xml:"interface"`
}

EdgeInterfaces top level list object

func (EdgeInterfaces) FilterByName

func (s EdgeInterfaces) FilterByName(name string) *EdgeInterface

FilterByName filters EdgeInterfaces list by given name of interface and returns the found interface object.

func (EdgeInterfaces) String

func (s EdgeInterfaces) String() string

type GetAllEdgeInterfacesAPI

type GetAllEdgeInterfacesAPI struct {
	*api.BaseAPI
}

GetAllEdgeInterfacesAPI base object.

func NewGetAll

func NewGetAll(edgeID string) *GetAllEdgeInterfacesAPI

NewGetAll returns the api object of GetAllEdgeInterfacesAPI

func (GetAllEdgeInterfacesAPI) GetResponse

func (getAllAPI GetAllEdgeInterfacesAPI) GetResponse() *EdgeInterfaces

GetResponse returns ResponseObject of GetAllEdgeInterfacesAPI

type GetEdgeInterfaceAPI

type GetEdgeInterfaceAPI struct {
	*api.BaseAPI
}

GetEdgeInterfaceAPI base object.

func NewGet

func NewGet(edgeID string, index int) *GetEdgeInterfaceAPI

NewGet returns the api object of GetEdgeInterfaceAPI

func (GetEdgeInterfaceAPI) GetResponse

func (getAPI GetEdgeInterfaceAPI) GetResponse() EdgeInterface

GetResponse returns ResponseObject of GetEdgeInterfaceAPI

type UpdateEdgeInterfaceAPI

type UpdateEdgeInterfaceAPI struct {
	*api.BaseAPI
}

UpdateEdgeInterfaceAPI struct

func NewUpdate

func NewUpdate(edgeID string, index int, edge EdgeInterface) *UpdateEdgeInterfaceAPI

NewUpdate returns a new delete method object of UpdateEdgeInterfaceAPI

Jump to

Keyboard shortcuts

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