mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
dev-docs: Go package docs (#958)
* Remove unused package * Add Go package docs to most packages Signed-off-by: Daniel Weiße <dw@edgeless.systems> Signed-off-by: Fabian Kammel <fk@edgeless.systems> Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> Co-authored-by: Fabian Kammel <fk@edgeless.systems>
This commit is contained in:
parent
b7740723ac
commit
690b50b29d
118 changed files with 735 additions and 750 deletions
|
@ -4,6 +4,26 @@ Copyright (c) Edgeless Systems GmbH
|
|||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/*
|
||||
# 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)
|
||||
}
|
||||
*/
|
||||
package cloud
|
||||
|
||||
const (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue