loadbalancer

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

Functions

This section is empty.

Types

type DNS

type DNS struct {
	ProjectName string
	ClusterName string
	ClusterHash string

	DesiredNodeIPs []string
	CurrentNodeIPs []string

	CurrentDNS *pb.DNS
	DesiredDNS *pb.DNS

	// SpawnProcessLimit represents a synchronization channel which limits the number of spawned terraform
	// processes. This values should always be non-nil and be buffered, where the capacity indicates
	// the limit.
	SpawnProcessLimit chan struct{}
}

func (DNS) CreateDNSRecords

func (d DNS) CreateDNSRecords(logger zerolog.Logger) (string, 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 DNSData

type DNSData struct {
	ClusterName  string
	ClusterHash  string
	HostnameHash string
	DNSZone      string
	NodeIPs      []string
	Provider     *pb.Provider
}

type LBcluster

type LBcluster struct {
	ProjectName string

	DesiredState *pb.LBcluster
	CurrentState *pb.LBcluster

	// SpawnProcessLimit represents a synchronization channel which limits the number of spawned terraform
	// processes. This values should always be non-nil and be buffered, where the capacity indicates
	// the limit.
	SpawnProcessLimit chan struct{}
}

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