This commit is contained in:
Livio Amstutz 2021-02-02 11:41:50 +01:00
parent 960be5af1f
commit 4b426c899a
2 changed files with 28 additions and 7 deletions

View file

@ -11,13 +11,16 @@ const (
)
type keyFile struct {
Type string `json:"type"` // serviceaccount or application
KeyID string `json:"keyId"`
Key string `json:"key"`
Issuer string `json:"issuer"`
Type string `json:"type"` // serviceaccount or application
KeyID string `json:"keyId"`
Key string `json:"key"`
Issuer string `json:"issuer"`
//serviceaccount
UserID string `json:"userId"`
//application
ClientID string `json:"clientId"`
//TokenURL string `json:"token_uri"`
//ProjectID string `json:"project_id"`
}
func ConfigFromKeyFile(path string) (*keyFile, error) {