provider

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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) Clusters

func (nc *NtnxCloud) Clusters() (cloudprovider.Clusters, bool)

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

func (nc *NtnxCloud) HasClusterID() bool

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) Instances

func (nc *NtnxCloud) Instances() (cloudprovider.Instances, bool)

func (*NtnxCloud) InstancesV2

func (nc *NtnxCloud) InstancesV2() (cloudprovider.InstancesV2, bool)

func (*NtnxCloud) LoadBalancer

func (nc *NtnxCloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)

func (*NtnxCloud) ProviderName

func (nc *NtnxCloud) ProviderName() string

ProviderName returns the cloud provider ID.

func (*NtnxCloud) Routes

func (nc *NtnxCloud) Routes() (cloudprovider.Routes, bool)

func (*NtnxCloud) SetInformers

func (nc *NtnxCloud) SetInformers(informerFactory informers.SharedInformerFactory)

SetInformers sets the informer on the cloud object. Implements cloudprovider.InformerUser

func (*NtnxCloud) UpdateLoadBalancer

func (nc *NtnxCloud) UpdateLoadBalancer(ct context.Context,
	clusterName string, service *v1.Service, nodes []*v1.Node,
) error

func (*NtnxCloud) Zones

func (nc *NtnxCloud) Zones() (cloudprovider.Zones, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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