edgegw

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEdgeGatewayIDOrNameIsEmpty = fmt.Errorf("edge gateway ID or name is empty")

Functions

This section is empty.

Types

type BaseEdgeGW

type BaseEdgeGW struct {
	ID   types.String
	Name types.String
}

func (BaseEdgeGW) GetID

func (e BaseEdgeGW) GetID() string

GetID returns the ID of the Edge Gateway.

func (BaseEdgeGW) GetIDOrName

func (e BaseEdgeGW) GetIDOrName() string

GetIDOrName returns the ID or the name of the Edge Gateway.

func (BaseEdgeGW) GetName

func (e BaseEdgeGW) GetName() string

GetName returns the Edge Gateway Name.

type EdgeGateway

type EdgeGateway struct {
	Client *client.CloudAvenue
	*govcd.NsxtEdgeGateway
}

func (EdgeGateway) GetID

func (e EdgeGateway) GetID() string

GetID returns the ID of the Edge Gateway.

func (EdgeGateway) GetName

func (e EdgeGateway) GetName() string

GetName returns the name of the Edge Gateway.

func (EdgeGateway) GetParent

func (e EdgeGateway) GetParent() (client.VDCOrVDCGroupHandler, error)

GetParent returns the parent of the Edge Gateway. The parent is VDC Or VDC Group object.

func (EdgeGateway) Lock added in v0.2.0

func (e EdgeGateway) Lock(ctx context.Context)

Lock locks the Edge Gateway.

func (EdgeGateway) Unlock added in v0.2.0

func (e EdgeGateway) Unlock(ctx context.Context)

Unlock unlocks the Edge Gateway.

type Handler

type Handler interface {
	// GetEdgeGateway allows retrieving NSX-T edge gateway by ID Or Name.
	GetEdgeGateway(egw BaseEdgeGW) (EdgeGateway, error)
}

Jump to

Keyboard shortcuts

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