loadbalancer

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TemplatesRootDir = "services/terraformer/templates"
)

Variables

View Source
var (
	// ErrCreateDNSRecord is returned when an error occurs during the creation of the DNS records
	ErrCreateDNSRecord = errors.New("failed to create DNS record")
	// ErrCreateNodePools is returned when an error occurs during the creation of the desired nodepools.
	ErrCreateNodePools = errors.New("failed to create desired nodepools")
)

Functions

This section is empty.

Types

type DNS

type DNS struct {
	ProjectName string
	ClusterName string
	ClusterHash string

	DesiredNodeIPs []string
	CurrentNodeIPs []string

	CurrentDNS *spec.DNS
	DesiredDNS *spec.DNS

	// SpawnProcessLimit limits the number of spawned terraform processes.
	SpawnProcessLimit *semaphore.Weighted
}

func (*DNS) CreateDNSRecords

func (d *DNS) CreateDNSRecords(logger zerolog.Logger) error

CreateDNSRecords creates DNS records for the Loadbalancer cluster.

func (*DNS) DestroyDNSRecords

func (d *DNS) DestroyDNSRecords(logger zerolog.Logger) error

DestroyDNSRecords destroys DNS records for the Loadbalancer cluster.

type LBcluster

type LBcluster struct {
	ProjectName string

	DesiredState *spec.LBcluster
	CurrentState *spec.LBcluster

	// SpawnProcessLimit  limits the number of spawned terraform processes.
	SpawnProcessLimit *semaphore.Weighted
}

func (*LBcluster) Build

func (l *LBcluster) Build(logger zerolog.Logger) error

func (*LBcluster) Destroy

func (l *LBcluster) Destroy(logger zerolog.Logger) error

func (*LBcluster) Id

func (l *LBcluster) Id() string

func (*LBcluster) UpdateCurrentState added in v0.4.0

func (l *LBcluster) UpdateCurrentState()

Jump to

Keyboard shortcuts

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