nsx

package
v0.16.11 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TCPProtocol = "TCP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer struct {
	Id string
	// contains filtered or unexported fields
}

nolint: structcheck, unused, golint, stylecheck

type LoadBalancerOptions

type LoadBalancerOptions struct {
	Name       string
	IPPool     string
	Protocol   string
	Ports      []string
	Tier0      string
	MemberTags map[string]string
}

type NSGroup

type NSGroup struct {
	Name, Id string
	// contains filtered or unexported fields
}

nolint: golint, stylecheck

func (*NSGroup) Add

func (group *NSGroup) Add(ips ...string) error

func (*NSGroup) List

func (group *NSGroup) List() ([]string, error)

func (*NSGroup) Remove

func (group *NSGroup) Remove(ips ...string) error

type NSXClient

type NSXClient struct {
	logger.Logger
	Username, Password, Host string
	RemoteAuth               bool
	// contains filtered or unexported fields
}

nolint: golint

func (*NSXClient) AllocateIP

func (c *NSXClient) AllocateIP(pool string) (string, error)

func (*NSXClient) CreateLoadBalancer

func (c *NSXClient) CreateLoadBalancer(opts LoadBalancerOptions) (string, bool, error)

CreateLoadBalancer creates a new loadbalancer or returns the existing loadbalancer's IP

func (*NSXClient) CreateOrUpdateNSGroup

func (c *NSXClient) CreateOrUpdateNSGroup(name string, targetType string, tags map[string]string) (*NSGroup, error)

func (*NSXClient) GET

func (c *NSXClient) GET(path string) ([]byte, error)

func (*NSXClient) GetLoadBalancer

func (c *NSXClient) GetLoadBalancer(name string) (*loadbalancer.LbVirtualServer, error)

func (*NSXClient) GetLogicalPorts

func (c *NSXClient) GetLogicalPorts(ctx context.Context, vm string) ([]manager.LogicalPort, error)

func (*NSXClient) GetOrCreateHTTPHealthCheck

func (c *NSXClient) GetOrCreateHTTPHealthCheck(port string) (string, error)

func (*NSXClient) GetOrCreateTCPHealthCheck

func (c *NSXClient) GetOrCreateTCPHealthCheck(port string) (string, error)

func (*NSXClient) Init

func (c *NSXClient) Init() error

func (*NSXClient) Ping

func (c *NSXClient) Ping() (string, error)

func (*NSXClient) TagLogicalPort

func (c *NSXClient) TagLogicalPort(ctx context.Context, id string, tags map[string]string) error

Jump to

Keyboard shortcuts

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