cloudproviders

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloudPoviderIDToDisplayNameMapping map[CloudProviderID]string = map[CloudProviderID]string{
	AWS:   "Amazon Web Services",
	Azure: "Microsoft Azure",
	GCP:   "Google Cloud Platform",
}

Functions

This section is empty.

Types

type CloudProviderCollection

type CloudProviderCollection struct {
	// contains filtered or unexported fields
}

func KnownCloudProviders

func KnownCloudProviders() CloudProviderCollection

KnownCloudProviders returns a CloudProviderCollection containing the Cloud Providers recognized by the Fleet Manager. Used to limit the providers that can be specified in the providers configuration file.

func (*CloudProviderCollection) Contains

Contains returns whether a given `id` CloudProvider is contained in the collection

type CloudProviderID

type CloudProviderID string

CloudProviderID represents a Cloud Provider ID

const (
	AWS   CloudProviderID = "aws"
	GCP   CloudProviderID = "gcp"
	Azure CloudProviderID = "azure"

	Unknown CloudProviderID = ""
)

CloudProviderID typed constants that can be used throughout the code to reference a specific Cloud Provider ID without duplicating its value in several places

func ParseCloudProviderID

func ParseCloudProviderID(id string) CloudProviderID

ParseCloudProviderID takes a Cloud Provider ID `id` string representation and returns its corresponding CloudProviderID typed representation. If it is not a recognized Cloud Provider ID by the Fleet Manager then the `Unknown` CloudProviderID is returned

func (CloudProviderID) String

func (c CloudProviderID) String() string

Jump to

Keyboard shortcuts

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