edgegw

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 9 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

	// EdgeClient is the EdgeGateway client.
	*sdkv1.EdgeClient

	// NsxtEdgeGateway is the NSX-T edge gateway.
	//
	// Deprecated: Use EdgeClient instead.
	*govcd.NsxtEdgeGateway
}

func (EdgeGateway) GetID

func (e EdgeGateway) GetID() string

GetID returns the ID of the Edge Gateway.

func (EdgeGateway) GetIPSetByID added in v0.7.0

func (e EdgeGateway) GetIPSetByID(nsxtFirewallGroupID string) (*govcd.NsxtFirewallGroup, error)

GetIPSetByID.

func (EdgeGateway) GetIPSetByName added in v0.7.0

func (e EdgeGateway) GetIPSetByName(nsxtFirewallGroupName string) (*govcd.NsxtFirewallGroup, error)

GetIPSetByName.

func (EdgeGateway) GetIPSetByNameOrID added in v0.7.0

func (e EdgeGateway) GetIPSetByNameOrID(nsxtFirewallGroupNameOrID string) (*govcd.NsxtFirewallGroup, error)

GetIPSetByNameOrID.

func (EdgeGateway) GetName

func (e EdgeGateway) GetName() string

GetName returns the name of the Edge Gateway.

func (EdgeGateway) GetParent

func (e EdgeGateway) GetParent() (sdkv1.VDCOrVDCGroupInterface, error)

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

func (EdgeGateway) GetSecurityGroupByNameOrID added in v0.6.0

func (e EdgeGateway) GetSecurityGroupByNameOrID(nsxtFirewallGroupNameOrID string) (*govcd.NsxtFirewallGroup, error)

GetSecurityGroupByNameOrID.

func (EdgeGateway) Lock added in v0.2.0

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

Lock locks the Edge Gateway.

func (EdgeGateway) SetIPSet added in v0.7.0

SetIPSet.

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