Skip to content

Commit

Permalink
Allow CloudType to be easily converted to string
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Oct 2, 2021
1 parent cd8ea7a commit a808fd7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions falcon/cloud.go
Expand Up @@ -53,3 +53,18 @@ func (c CloudType) Host() string {
return "api.laggar.gcw.crowdstrike.com"
}
}

func (c CloudType) String() string {
switch c {
case CloudUs1:
return "us-1"
case CloudUs2:
return "us-2"
case CloudEu1:
return "eu-1"
case CloudUsGov1:
return "us-gov-1"
default:
return "UNKNOWN FALCON CLOUD REGION"
}
}

0 comments on commit a808fd7

Please sign in to comment.