loadbalancer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package loadbalancer have all services and interface to work with the YandexCloud loadbalancer API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements instances reconciler.

func New

func New(scp *scope.ClusterScope) *Service

New returns a new load balancer service.

func (*Service) AddTarget

func (s *Service) AddTarget(ctx context.Context, addr, subnetID string) error

AddTarget adds address to the load balancer target group.

func (*Service) Delete

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

Delete deletes the loadbalancer instance.

func (*Service) Describe

func (s *Service) Describe(ctx context.Context) (infrav1.LoadBalancerStatus, error)

Describe returns the IP address and port of the load balancer listener.

func (*Service) IsActive

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

IsActive returns true when the load balancer instance have an ACTIVE status.

func (*Service) Reconcile

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

Reconcile reconciles the loadbalancer instance.

func (*Service) RemoveTarget

func (s *Service) RemoveTarget(ctx context.Context, addr, subnetID string) error

RemoveTarget removes address from the load balancer target group.

Directories

Path Synopsis
Package builders have load balancer request bulders for the YandexCloud ALB and NLB balancer types.
Package builders have load balancer request bulders for the YandexCloud ALB and NLB balancer types.

Jump to

Keyboard shortcuts

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