Rename provider

This commit is contained in:
katexochen 2022-04-13 15:09:33 +02:00 committed by Paul Meyer
parent 4496755c64
commit dad9a97ee2
8 changed files with 12 additions and 12 deletions

View file

@ -4,18 +4,18 @@ import "strings"
//go:generate stringer -type=CloudProvider
// CloudProvider is cloud provider used by the CLI.
type CloudProvider uint32
// Provider is cloud provider used by the CLI.
type Provider uint32
const (
Unknown CloudProvider = iota
Unknown Provider = iota
AWS
Azure
GCP
)
// FromString returns cloud provider from string.
func FromString(s string) CloudProvider {
func FromString(s string) Provider {
s = strings.ToLower(s)
switch s {
case "aws":