loadbalancers

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LBScope

type LBScope interface {
	azure.ClusterScoper
	azure.AsyncStatusUpdater
	LBSpecs() []azure.ResourceSpecGetter
}

LBScope defines the scope interface for a load balancer service.

type LBSpec added in v1.2.0

type LBSpec struct {
	Name                 string
	ResourceGroup        string
	SubscriptionID       string
	ClusterName          string
	Location             string
	ExtendedLocation     *infrav1.ExtendedLocationSpec
	Role                 string
	Type                 infrav1.LBType
	SKU                  infrav1.SKU
	VNetName             string
	VNetResourceGroup    string
	SubnetName           string
	BackendPoolName      string
	FrontendIPConfigs    []infrav1.FrontendIP
	APIServerPort        int32
	IdleTimeoutInMinutes *int32
	AdditionalTags       map[string]string
}

LBSpec defines the specification for a Load Balancer.

func (*LBSpec) OwnerResourceName added in v1.2.0

func (s *LBSpec) OwnerResourceName() string

OwnerResourceName is a no-op for load balancers.

func (*LBSpec) Parameters added in v1.2.0

func (s *LBSpec) Parameters(ctx context.Context, existing interface{}) (parameters interface{}, err error)

Parameters returns the parameters for the load balancer.

func (*LBSpec) ResourceGroupName added in v1.2.0

func (s *LBSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*LBSpec) ResourceName added in v1.2.0

func (s *LBSpec) ResourceName() string

ResourceName returns the name of the load balancer.

type Service

type Service struct {
	Scope LBScope
	async.Reconciler
}

Service provides operations on Azure resources.

func New

func New(scope LBScope) (*Service, error)

New creates a new service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete deletes the public load balancer with the provided name.

func (*Service) IsManaged added in v1.3.0

func (s *Service) IsManaged(ctx context.Context) (bool, error)

IsManaged returns always returns true as CAPZ does not support BYO load balancers.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile idempotently creates or updates a load balancer.

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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