token

package
v0.0.0-...-b1c2c33 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsTokenGenerator

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

func NewAwsTokenGenerator

func NewAwsTokenGenerator(clusterID string, cfg aws.Config) *AwsTokenGenerator

func (*AwsTokenGenerator) Get

func (a *AwsTokenGenerator) Get(ctx context.Context) (*Token, error)

type GcpTokenGenerator

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

func NewGcpTokenGenerator

func NewGcpTokenGenerator(creds *google.Credentials) *GcpTokenGenerator

func (*GcpTokenGenerator) Get

func (g *GcpTokenGenerator) Get(ctx context.Context) (*Token, error)

type Generator

type Generator interface {
	Get(context.Context) (*Token, error)
}

type Token

type Token struct {
	Value      string
	Expiration time.Time
}

Jump to

Keyboard shortcuts

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