Documentation ¶
Index ¶
- type NtnxCloud
- func (nc *NtnxCloud) Clusters() (cloudprovider.Clusters, bool)
- func (nc *NtnxCloud) EnsureLoadBalancer(ct context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error)
- func (nc *NtnxCloud) EnsureLoadBalancerDeleted(ct context.Context, clusterName string, service *v1.Service) error
- func (nc *NtnxCloud) GetLoadBalancer(ct context.Context, clusterName string, service *v1.Service) (*v1.LoadBalancerStatus, bool, error)
- func (nc *NtnxCloud) GetLoadBalancerName(ct context.Context, clusterName string, service *v1.Service) string
- func (nc *NtnxCloud) HasClusterID() bool
- func (nc *NtnxCloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stopCh <-chan struct{})
- func (nc *NtnxCloud) Instances() (cloudprovider.Instances, bool)
- func (nc *NtnxCloud) InstancesV2() (cloudprovider.InstancesV2, bool)
- func (nc *NtnxCloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (nc *NtnxCloud) ProviderName() string
- func (nc *NtnxCloud) Routes() (cloudprovider.Routes, bool)
- func (nc *NtnxCloud) SetInformers(informerFactory informers.SharedInformerFactory)
- func (nc *NtnxCloud) UpdateLoadBalancer(ct context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) error
- func (nc *NtnxCloud) Zones() (cloudprovider.Zones, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NtnxCloud ¶
type NtnxCloud struct {
// contains filtered or unexported fields
}
func (*NtnxCloud) EnsureLoadBalancer ¶
func (nc *NtnxCloud) EnsureLoadBalancer(ct context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) ( *v1.LoadBalancerStatus, error, )
It adds an entry "create" into the internal method call record.
func (*NtnxCloud) EnsureLoadBalancerDeleted ¶
func (nc *NtnxCloud) EnsureLoadBalancerDeleted(ct context.Context, clusterName string, service *v1.Service, ) error
EnsureLoadBalancerDeleted is a test-spy implementation of LoadBalancer.EnsureLoadBalancerDeleted. It adds an entry "delete" into the internal method call record.
func (*NtnxCloud) GetLoadBalancer ¶
func (nc *NtnxCloud) GetLoadBalancer(ct context.Context, clusterName string, service *v1.Service) ( *v1.LoadBalancerStatus, bool, error, )
get the status from the service Info. returning an error - keeps the intent alive bool indicates if an lb was found or not
func (*NtnxCloud) GetLoadBalancerName ¶
func (nc *NtnxCloud) GetLoadBalancerName(ct context.Context, clusterName string, service *v1.Service) string
GetLoadBalancerName returns the name of the load balancer. Implementations must treat the *v1.Service parameter as read-only and not modify it.
func (*NtnxCloud) HasClusterID ¶
HasClusterID returns true if the cluster has a clusterID
func (*NtnxCloud) Initialize ¶
func (nc *NtnxCloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stopCh <-chan struct{}, )
Initialize cloudprovider
func (*NtnxCloud) InstancesV2 ¶
func (nc *NtnxCloud) InstancesV2() (cloudprovider.InstancesV2, bool)
func (*NtnxCloud) LoadBalancer ¶
func (nc *NtnxCloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)
func (*NtnxCloud) ProviderName ¶
ProviderName returns the cloud provider ID.
func (*NtnxCloud) SetInformers ¶
func (nc *NtnxCloud) SetInformers(informerFactory informers.SharedInformerFactory)
SetInformers sets the informer on the cloud object. Implements cloudprovider.InformerUser