mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 14:03:30 +08:00
17 lines
474 B
Go
17 lines
474 B
Go
package containers
|
|
|
|
import "github.com/grafana/grafana/pkg/build/daggerbuild/cliutil"
|
|
|
|
// GCPOpts are options used when using Google Cloud Platform / the Google Cloud SDK.
|
|
type GCPOpts struct {
|
|
ServiceAccountKey string
|
|
ServiceAccountKeyBase64 string
|
|
}
|
|
|
|
func GCPOptsFromFlags(c cliutil.CLIContext) *GCPOpts {
|
|
return &GCPOpts{
|
|
ServiceAccountKeyBase64: c.String("gcp-service-account-key-base64"),
|
|
ServiceAccountKey: c.String("gcp-service-account-key"),
|
|
}
|
|
}
|