nsxresource

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MPL-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Nsxc     *govnsx.Client
	Location string
}

func NewCommon

func NewCommon(c *govnsx.Client) Common

type Edge

type Edge struct {
	Common
}

func NewEdge

func NewEdge(c *govnsx.Client) *Edge

func (Edge) Delete

func (e Edge) Delete(edgeId string) error

DELETE Method for NSX Edge

func (Edge) Get

func (e Edge) Get(edgeId string) (*nsxtypes.Edge, error)

GET Method for a NSX Edge

func (Edge) Post

func (e Edge) Post(edgeSpec *nsxtypes.EdgeInstallSpec) (*nsxtypes.EdgePostResp, error)

POST Method for a NSX Edge

func (Edge) Put

func (e Edge) Put(edgeSpec *nsxtypes.EdgeInstallSpec, edgeId string) error

PUT Method for a NSX Edge

type EdgeDHCP

type EdgeDHCP struct {
	Common
}

func NewEdgeDHCP

func NewEdgeDHCP(c *govnsx.Client) *EdgeDHCP

func (EdgeDHCP) Delete

func (ed EdgeDHCP) Delete(edgeId string) error

DELETE Method to delete DHCP configuration from DHCP Service

func (EdgeDHCP) Get

func (ed EdgeDHCP) Get(edgeId string) (*nsxtypes.DHCPConfig, error)

GET Method to get DHCP configuration from DHCP Service

func (EdgeDHCP) Put

func (ed EdgeDHCP) Put(dhcpSpec *nsxtypes.ConfigDHCPServiceSpec,
	edgeId string) error

PUT Method for configuring an Edge with DHCP Service

type EdgeDHCPIPPool

type EdgeDHCPIPPool struct {
	Common
}

func NewEdgeDHCPIPPool

func NewEdgeDHCPIPPool(c *govnsx.Client) *EdgeDHCPIPPool

func (EdgeDHCPIPPool) Delete

func (ed EdgeDHCPIPPool) Delete(edgeId string, ipPoolId string) error

DELETE Method to delete IP Pool from DHCP configuration

func (EdgeDHCPIPPool) Post

POST Method to add IP Pool into DHCP configuration

type EdgeDLRInterfaces

type EdgeDLRInterfaces struct {
	Common
}

func NewEdgeDLRInterfaces

func NewEdgeDLRInterfaces(c *govnsx.Client) *EdgeDLRInterfaces

func (EdgeDLRInterfaces) Delete

func (edlr EdgeDLRInterfaces) Delete(edgeId string, index ...string) error

DELETE method to remove Interface

func (EdgeDLRInterfaces) Get

DLR modular APIs

func (EdgeDLRInterfaces) Post

POST Method to add Interfaces

type Network

type Network struct {
	Common
}

func NewNetwork

func NewNetwork(c *govnsx.Client) *Network

func (Network) Delete

func (n Network) Delete(location string) error

Delete Method for a NSX network - VirtualWire

func (Network) Get

func (n Network) Get(location string) (*nsxtypes.VirtualWire, error)

GET Method for a NSX network - VirtualWire

func (Network) Post

func (n Network) Post(vwSpec *nsxtypes.VWCreateSpec, scopeId string) (*nsxtypes.VWPostResp, error)

POST Method for a NSX network - VirtualWire

func (Network) Put

func (n Network) Put(vWire *nsxtypes.UpdateVirtualWire, location string) error

PUT Method for a NSX network - VirtualWire

Jump to

Keyboard shortcuts

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