client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NsxtClient

type NsxtClient struct {
	BaseUrl   string
	BasicAuth bool
	Token     string

	Debug bool
	// contains filtered or unexported fields
}

func NewNsxtClient

func NewNsxtClient(basicAuth bool, debug bool) *NsxtClient

func (*NsxtClient) ClusterInfo

func (c *NsxtClient) ClusterInfo()

func (*NsxtClient) CreateComputeManager

func (c *NsxtClient) CreateComputeManager(name string, address string, thumbprint string, user string, password string, trust bool)

func (*NsxtClient) CreateEdge

func (c *NsxtClient) CreateEdge(name string, template_name string, address string, root_password string, admin_password string)

func (*NsxtClient) CreateIpBlock

func (c *NsxtClient) CreateIpBlock(name string, cidr string)

func (*NsxtClient) CreateIpPool

func (c *NsxtClient) CreateIpPool(name string)

func (*NsxtClient) CreateSegment

func (c *NsxtClient) CreateSegment(segment_name string, transportzone string, vlan_id string, gateway_name string, interface_address string) error

func (*NsxtClient) CreateTransportZone

func (c *NsxtClient) CreateTransportZone(name string, transportType string)

func (*NsxtClient) DeleteComputeManager

func (c *NsxtClient) DeleteComputeManager(cmId string)

func (*NsxtClient) DeleteIpBlock

func (c *NsxtClient) DeleteIpBlock(name string)

func (*NsxtClient) DeleteIpPool

func (c *NsxtClient) DeleteIpPool(name string)

func (*NsxtClient) DeleteTransportZone

func (c *NsxtClient) DeleteTransportZone(tzId string)

func (*NsxtClient) GetBgpConfig

func (c *NsxtClient) GetBgpConfig(tier0Id string, locale string) structs.BgpConfig

func (*NsxtClient) GetBgpNeighbors

func (c *NsxtClient) GetBgpNeighbors(tier0Id string, locale string) []structs.BgpNeighbor

func (*NsxtClient) GetBgpNeighborsAdvRoutes

func (c *NsxtClient) GetBgpNeighborsAdvRoutes(path string) []structs.EdgeBgpAdvRoute

func (*NsxtClient) GetComputeManager

func (c *NsxtClient) GetComputeManager() *[]structs.ComputeManager

func (*NsxtClient) GetComputeManagerStatus

func (c *NsxtClient) GetComputeManagerStatus(cmId string) *structs.ComputeManagerStatus

func (*NsxtClient) GetDfwPolicies

func (c *NsxtClient) GetDfwPolicies(domain string, name string) ([]structs.DfwPolicy, error)

func (*NsxtClient) GetDfwRules

func (c *NsxtClient) GetDfwRules(policy structs.DfwPolicy) []structs.DfwRule

func (*NsxtClient) GetEdge

func (c *NsxtClient) GetEdge() []structs.TransportNode

func (*NsxtClient) GetEdgeCluster

func (c *NsxtClient) GetEdgeCluster() *[]structs.EdgeCluster

func (*NsxtClient) GetEdgeClusterUnderEnforcementPoint

func (c *NsxtClient) GetEdgeClusterUnderEnforcementPoint(site_id string, ep_id string) []string

func (*NsxtClient) GetEnforcementPoint

func (c *NsxtClient) GetEnforcementPoint(site_id string) *[]structs.EnforcementPoint

func (*NsxtClient) GetGatewayAggregateInfo

func (c *NsxtClient) GetGatewayAggregateInfo(gw_realization_id string) []map[string]string

func (*NsxtClient) GetGatewayInterfaceStats

func (c *NsxtClient) GetGatewayInterfaceStats(gw structs.Tier0Gateway) map[int]structs.RouterStats

func (*NsxtClient) GetInterface

func (c *NsxtClient) GetInterface(tier0_id string, locale_service_id string) []map[string]string

func (*NsxtClient) GetInterfaceStatistics

func (c *NsxtClient) GetInterfaceStatistics(tier0_id string, locale_service_id string, if_data map[string]string) structs.RouterStats

func (*NsxtClient) GetIpBlock

func (c *NsxtClient) GetIpBlock() structs.IpBlocks

func (*NsxtClient) GetIpPool

func (c *NsxtClient) GetIpPool() structs.IpPools

func (*NsxtClient) GetLocaleService

func (c *NsxtClient) GetLocaleService(tier0_id string) []string

func (*NsxtClient) GetPolicyTransportZone

func (c *NsxtClient) GetPolicyTransportZone(site string, ep string) *structs.TransportZones

func (*NsxtClient) GetRoutingTable

func (c *NsxtClient) GetRoutingTable(tier0Id string) []structs.EdgeRoute

func (*NsxtClient) GetSegment

func (c *NsxtClient) GetSegment() structs.Segments

func (*NsxtClient) GetSite

func (c *NsxtClient) GetSite() []string

func (*NsxtClient) GetTier0Gateway

func (c *NsxtClient) GetTier0Gateway(gwId string) structs.Tier0Gateways

func (*NsxtClient) GetTier0GatewayFromName

func (c *NsxtClient) GetTier0GatewayFromName(name string) (structs.Tier0Gateway, error)

func (*NsxtClient) GetTier1Gateway

func (c *NsxtClient) GetTier1Gateway(gwId string) structs.Tier1Gateways

func (*NsxtClient) GetTier1GatewayFromName

func (c *NsxtClient) GetTier1GatewayFromName(name string) (structs.Tier1Gateway, error)

func (*NsxtClient) GetTlsFingerprint

func (c *NsxtClient) GetTlsFingerprint(server string, port uint) string

func (*NsxtClient) GetTransportNode

func (c *NsxtClient) GetTransportNode(site string, ep string) structs.TransportNodes

func (*NsxtClient) GetTransportNodeById

func (c *NsxtClient) GetTransportNodeById(uuid string) *structs.TransportNode

func (*NsxtClient) GetTransportNodeProfile

func (c *NsxtClient) GetTransportNodeProfile() *structs.TransportNodeProfiles

func (*NsxtClient) GetTransportNodeStatus

func (c *NsxtClient) GetTransportNodeStatus(id string) string

func (*NsxtClient) GetTransportNodeTunnels

func (c *NsxtClient) GetTransportNodeTunnels(node_id string) structs.TransportNodeTunnels

func (*NsxtClient) GetTransportZone

func (c *NsxtClient) GetTransportZone()

DEPRECATED

func (*NsxtClient) GetVersion

func (c *NsxtClient) GetVersion() string

func (*NsxtClient) Login

func (c *NsxtClient) Login(cred url.Values) error

func (*NsxtClient) Logout

func (c *NsxtClient) Logout()

func (*NsxtClient) PublishFQDN

func (c *NsxtClient) PublishFQDN()

func (*NsxtClient) Request

func (c *NsxtClient) Request(method string, path string, query_param map[string]string, req_data []byte) *Response

type Response

type Response struct {
	*http.Response
	Body  interface{}
	Error error
}

func (*Response) BodyBytes

func (r *Response) BodyBytes() ([]byte, error)

func (*Response) Print

func (r *Response) Print(noPretty bool)

func (*Response) UnmarshalBody

func (r *Response) UnmarshalBody(strct interface{})

Jump to

Keyboard shortcuts

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