Documentation
¶
Index ¶
- Constants
- Variables
- func IsIpInRange(testIp string, startIp string, endIp string) bool
- type Config
- type FirewallConfig
- type IpAddress
- type IpAddressAllocation
- type LB
- func (loadBalancer *LB) CreatePool(pool *types.LbPool) (*types.LbPool, error)
- func (loadBalancer *LB) CreateVirtualServer(name string, ip string, protocol LbProtocol, port int, ...) (*types.LbVirtualServer, error)
- func (loadBalancer *LB) DeleteFirewallRule(rule *types.EdgeFirewallRule) (bool, error)
- func (loadBalancer *LB) DeleteLbServerPoolById(id string) error
- func (loadBalancer *LB) DeleteLbVirtualServerById(id string) error
- func (loadBalancer *LB) EnsureLoadBalancer(ctx context.Context, clusterName string, service *corev1.Service, ...) (*corev1.LoadBalancerStatus, error)
- func (loadBalancer *LB) EnsureLoadBalancerDeleted(ctx context.Context, clusterName string, service *corev1.Service) error
- func (loadBalancer *LB) GetFirewallRule(name string) (*types.EdgeFirewallRule, error)
- func (loadBalancer *LB) GetLoadBalancer(ctx context.Context, clusterName string, service *corev1.Service) (status *corev1.LoadBalancerStatus, exists bool, err error)
- func (loadBalancer *LB) GetLoadBalancerByName(name string) (*types.LbVirtualServer, error)
- func (loadBalancer *LB) GetLoadBalancerName(ctx context.Context, clusterName string, service *corev1.Service) string
- func (loadBalancer *LB) GetLoadBalancerPool(name string) (*types.LbPool, error)
- func (loadBalancer *LB) GetNextAvailableIpAddressInVCloudNet(networkName string, ipnet string) (string, error)
- func (loadBalancer *LB) UpdateLoadBalancer(ctx context.Context, clusterName string, service *corev1.Service, ...) error
- func (loadBalancer *LB) UpdatePool(pool *types.LbPool) (*types.LbPool, error)
- type LbAlgorithm
- type LbProtocol
- type LoadBalancerOptions
Constants ¶
View Source
const ( HTTP LbProtocol = "HTTP" HTTPS = "HTTPS" TCP = "TCP" UDP = "UDP" )
View Source
const ( ROUND_ROBIN LbAlgorithm = "ROUND_ROBIN" IP_HASH = "IP_HASH" LEASTCONN = "LEASTCONN" URI = "URI" HTTPHEADER = "HTTPHEADER" URL = "URL" )
View Source
const ( IsWorkerNode = "node-role.kubernetes.io/worker" LoadBalancerType = "mk.plus.io/load-balancer-type" LoadBalancerExternalIP = "mk.plus.io/load-balancer-external-ip" LoadBalancerPoolAlgorithm = "mk.plus.io/pool-algorithm" LoadBalancerPoolMemberMinConnections = "mk.plus.io/pool-min-con" LoadBalancerPoolMemberMaxConnections = "mk.plus.io/pool-max-con" )
View Source
const ( VirtualServerDescription string = "This Service was automatically created and managed by vCloud-cloud-controller-manager" PoolDescription string = "This Pool was automatically created and managed by vCloud-cloud-controller-manager" )
View Source
const (
ProviderName = "vCloud"
)
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
View Source
var LbProtocols = []LbProtocol{ HTTP, HTTPS, TCP, UDP, }
Functions ¶
Types ¶
type Config ¶
type FirewallConfig ¶
type FirewallConfig struct { Source types.EdgeFirewallEndpoint Destination types.EdgeFirewallEndpoint Application types.EdgeFirewallApplication // contains filtered or unexported fields }
type IpAddressAllocation ¶
type LB ¶
type LB struct { LoadBalancerOptions // contains filtered or unexported fields }
func (*LB) CreatePool ¶
func (*LB) CreateVirtualServer ¶
func (*LB) DeleteFirewallRule ¶
func (*LB) DeleteLbServerPoolById ¶
func (*LB) DeleteLbVirtualServerById ¶
func (*LB) EnsureLoadBalancer ¶
func (*LB) EnsureLoadBalancerDeleted ¶
func (*LB) GetFirewallRule ¶
func (*LB) GetLoadBalancer ¶
func (*LB) GetLoadBalancerByName ¶
func (*LB) GetLoadBalancerName ¶
func (*LB) GetLoadBalancerPool ¶
func (*LB) GetNextAvailableIpAddressInVCloudNet ¶
func (*LB) UpdateLoadBalancer ¶
func (*LB) UpdatePool ¶
type LbAlgorithm ¶
type LbAlgorithm string
type LbProtocol ¶
type LbProtocol string
type LoadBalancerOptions ¶
type LoadBalancerOptions struct {
LBVersion string
}
Click to show internal directories.
Click to hide internal directories.