credentials

package
v0.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

func (*StaticCreds) Token

func (c *StaticCreds) Token(context.Context) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL