Documentation ¶
Index ¶
- Constants
- type LoadBalancer
- type LoadBalancerOptions
- type NSGroup
- type NSXClient
- func (c *NSXClient) AllocateIP(pool string) (string, error)
- func (c *NSXClient) CreateLoadBalancer(opts LoadBalancerOptions) (string, bool, error)
- func (c *NSXClient) CreateOrUpdateNSGroup(name string, targetType string, tags map[string]string) (*NSGroup, error)
- func (c *NSXClient) GET(path string) ([]byte, error)
- func (c *NSXClient) GetLoadBalancer(name string) (*loadbalancer.LbVirtualServer, error)
- func (c *NSXClient) GetLogicalPorts(ctx context.Context, vm string) ([]manager.LogicalPort, error)
- func (c *NSXClient) GetOrCreateHTTPHealthCheck(port string) (string, error)
- func (c *NSXClient) GetOrCreateTCPHealthCheck(port string) (string, error)
- func (c *NSXClient) Init() error
- func (c *NSXClient) Ping() (string, error)
- func (c *NSXClient) TagLogicalPort(ctx context.Context, id string, tags map[string]string) error
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 NSGroup ¶
type NSGroup struct {
Name, Id string
// contains filtered or unexported fields
}
nolint: golint, stylecheck
type NSXClient ¶
type NSXClient struct { logger.Logger Username, Password, Host string RemoteAuth bool // contains filtered or unexported fields }
nolint: golint
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 (*NSXClient) GetLoadBalancer ¶
func (c *NSXClient) GetLoadBalancer(name string) (*loadbalancer.LbVirtualServer, error)
func (*NSXClient) GetLogicalPorts ¶
func (*NSXClient) GetOrCreateHTTPHealthCheck ¶
func (*NSXClient) GetOrCreateTCPHealthCheck ¶
Click to show internal directories.
Click to hide internal directories.