cloud

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Cloud

This package provides functions to interact with cloud providers. This is mainly used to fetch information about the current instance, or other instances of the Constellation cluster.

Implementation of the cloud provider specific code is done in subpackages named after the CSP. Code that is commonly used by other packages that do not require actual interaction with the CSP API, such as CSP URI string parsing or data types, should go in a <CSP>shared package instead.

A cloud package should implement the following interface:

type Cloud interface {
	List(ctx context.Context) ([]metadata.InstanceMetadata, error)
	Self(ctx context.Context) (metadata.InstanceMetadata, error)
	GetLoadBalancerEndpoint(ctx context.Context) (string, error)
	InitSecretHash(ctx context.Context) ([]byte, error)
	UID(ctx context.Context) (string, error)
}

Index

Constants

View Source
const (
	// TagRole is the tag/label key used to identify the role of a node.
	TagRole = "constellation-role"
	// TagUID is the tag/label key used to identify the UID of a cluster.
	TagUID = "constellation-uid"
	// TagInitSecretHash is the tag/label key used to identify the hash of the init secret.
	TagInitSecretHash = "constellation-init-secret-hash"
	// TagCustomEndpoint is the tag/label key used to identify the custom endpoint
	// or dns name that should be added to tls cert SANs.
	TagCustomEndpoint = "constellation-custom-endpoint"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Implements interaction with the AWS API.
Implements interaction with the AWS API.
Implements interaction with the Azure API.
Implements interaction with the Azure API.
Package gcpshared contains code to parse and define data types relevant for Microsoft Azure.
Package gcpshared contains code to parse and define data types relevant for Microsoft Azure.
Implements interaction with the GCP API.
Implements interaction with the GCP API.
Package gcpshared contains code to parse and define data types relevant for Google Cloud Platform.
Package gcpshared contains code to parse and define data types relevant for Google Cloud Platform.
This package provides an interface to fake a CSP API for QEMU instances.
This package provides an interface to fake a CSP API for QEMU instances.

Jump to

Keyboard shortcuts

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