Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (s *CloudProviderCollection) Contains(id CloudProviderID) bool
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