token

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim

type Claim struct {
	TimeStamp string `json:"timestamp"`
	AccessKey string `json:"accessKey"`
	HmacSign  string `json:"signature"`
	Path      string `json:"path"`
}

type Generator

type Generator interface {
	// Get a token using credentials in the default credentials chain.
	Get(*credentials.Credentials, string, string) (*Token, error)
	// FormatJSON returns the client auth formatted json for the ExecCredential auth
	FormatJSON(Token) (string, error)
}

Generator provides new JWT tokens

func NewGenerator

func NewGenerator() (Generator, error)

NewGenerator creates a Generator and returns it.

type Token

type Token struct {
	Token string
}

Token is generated and used by Kubernetes client-go to authenticate with a Kubernetes cluster.

Jump to

Keyboard shortcuts

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