cloud

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: 3 Imported by: 0

Documentation

Overview

Package cloud implements cloud resources lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	ClusterGetter
	ClusterSetter
}

Cluster is an interface which can get and set cluster information.

type ClusterGetter

type ClusterGetter interface {
	GetNetworkID() string
	GetLabels() infrav1.Labels
	GetClient() yandex.Client
	GetLBType() infrav1.LoadBalancerType
	GetLBSpec() infrav1.LoadBalancerSpec
	GetLBName() string
	GetFolderID() string
}

ClusterGetter is an interface which can get cluster information.

type ClusterSetter

type ClusterSetter interface {
	SetReady()
}

ClusterSetter is an interface which can set cluster information.

type LoadBalancer

type LoadBalancer interface {
	LoadBalancerGetter
	LoadBalancerSetter
}

LoadBalancer is an interface which provides ALB/NLB management.

type LoadBalancerGetter

type LoadBalancerGetter interface {
	Describe(ctx context.Context) (infrav1.LoadBalancerStatus, error)
	IsActive(ctx context.Context) (bool, error)
}

LoadBalancerGetter is an interface which can get load balancer information.

type LoadBalancerSetter

type LoadBalancerSetter interface {
	AddTarget(ctx context.Context, addr, subnetID string) error
	RemoveTarget(ctx context.Context, addr, subnetID string) error
}

LoadBalancerSetter is an interface which can add and remove client to/from load balancer target group.

type Reconciler

type Reconciler interface {
	Reconcile(ctx context.Context) error
	Delete(ctx context.Context) (bool, error)
}

Reconciler is a generic interface used by components offering a type of service.

Directories

Path Synopsis
Package scope implements scope types.
Package scope implements scope types.
services
compute
Package compute has all services and interface to work with the YandexCloud compute API.
Package compute has all services and interface to work with the YandexCloud compute API.
loadbalancers
Package loadbalancer have all services and interface to work with the YandexCloud loadbalancer API.
Package loadbalancer have all services and interface to work with the YandexCloud loadbalancer API.
loadbalancers/builders
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.
Package ycerrors implements helper functions for Yandex Cloud errors
Package ycerrors implements helper functions for Yandex Cloud errors

Jump to

Keyboard shortcuts

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