googleidprovider

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	StatusOK               = 0
	StatusGetTokenFailed   = 1
	StatusParseTokenFailed = 2
)

Variables

This section is empty.

Functions

func NewServiceAccountSource

func NewServiceAccountSource(credentialsFile string, targetAudience string) (*serviceAccountSource, error)

Types

type Factory

type Factory struct {
}

func (*Factory) New

func (t *Factory) New(params []string) (apis.TokenProvider, error)

New implements apis.TokenProviderFactory

type TokenProvider

type TokenProvider struct {
	// contains filtered or unexported fields
}

func NewTokenProvider

func NewTokenProvider(options TokenProviderOptions) (*TokenProvider, error)

func (*TokenProvider) GetToken

GetToken implements apis.TokenProvider.GetToken method

type TokenProviderOptions

type TokenProviderOptions struct {
	Timeout int
	Adc     bool

	CredentialsWatch bool
	CredentialsFile  string
	TargetAudience   string
}

type TokenRefresher

type TokenRefresher struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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