cloud

package
v0.0.0-...-b4f7751 Latest Latest
Warning

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

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

Documentation

Overview

Package cloud implement cloud resources lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build interface {
	BuildGetter
	BuildSetter
}

Build is an interface which can get and set build information.

type BuildGetter

type BuildGetter interface {
	Client
	Project() string
	Region() string
	Name() string
	Namespace() string
	Zone() string
	NetworkName() string
	NetworkProject() string
	IsSharedVpc() bool
	Network() *infrav1.Network
	AdditionalLabels() infrav1.Labels
	GetBootstrapData() (string, error)
}

BuildGetter is an interface which can get build information.

type BuildSetter

type BuildSetter interface {
	SetInstanceID(instanceID string)
	SetInstanceStatus(v infrav1.InstanceStatus)
	EnsureCredentialsSecret(ctx context.Context, host string) error
}

BuildSetter is an interface which can set cluster information.

type Client

type Client interface {
	Cloud() Cloud
	NetworkCloud() Cloud
}

Client is an interface which can get cloud client.

type Cloud

type Cloud = cloud.Cloud

Cloud alias for cloud.Cloud interface.

type Reconciler

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

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

Directories

Path Synopsis
gcp
compute/firewalls
Package firewalls implements reconciler for cluster firwall components.
Package firewalls implements reconciler for cluster firwall components.
compute/images
Package images implements reconciler for exporting the image build.
Package images implements reconciler for exporting the image build.
compute/networks
Package networks implements reconciler for cluster networking components.
Package networks implements reconciler for cluster networking components.
compute/subnets
Package subnets implements reconciler for subnetworks.
Package subnets implements reconciler for subnetworks.
errors
Package gcperrors implements gcp errors types.
Package gcperrors implements gcp errors types.

Jump to

Keyboard shortcuts

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