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" )
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. |
Click to show internal directories.
Click to hide internal directories.