mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 23:35:11 -04:00
Rename provider
This commit is contained in:
parent
4496755c64
commit
dad9a97ee2
8 changed files with 12 additions and 12 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue