import "go.chromium.org/goma/server/auth/account"
Package account manages service account.
type Account interface { // Equals compare account with other. Equals(other Account) bool // Token generates new oauth2 token for the account. Token(ctx context.Context) (*oauth2.Token, error) }
Account represents service account.
type Empty struct{}
Empty doesn't provide any service accounts.
JSONDir is a Pool with json files. It should be used for experiments only. we need to rotate keys. It uses application default credential, if "default" is requested. https://cloud.google.com/docs/authentication/production
New creates new account by loading json file in the dir. if name is "default", returns default service account instead.
Pool manages service accounts.
Package account imports 9 packages (graph) and is imported by 4 packages. Updated 2020-10-27. Refresh now. Tools for package owners.