Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewIamCreds = func(logger log.Logger) (Credentials, error) { return nil, xerrors.Errorf("not implemented") }
View Source
var NewServiceAccountCreds = func(logger log.Logger, serviceAccountID string) (Credentials, error) { return nil, xerrors.New("not implemented") }
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials interface { Token(context.Context) (string, error) ExpiresAt() *timestamp.Timestamp }
func NewStaticCreds ¶
func NewStaticCreds(token string) Credentials
type StaticCreds ¶
type StaticCreds struct {
AuthToken string
}
func (*StaticCreds) ExpiresAt ¶
func (c *StaticCreds) ExpiresAt() *timestamp.Timestamp
Click to show internal directories.
Click to hide internal directories.