token

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	clientauthv1alpha1.ExecCredential
	// contains filtered or unexported fields
}

Token encapsulates the token from aws-iam-authenticator and extend its functionality

func GenerateToken

func GenerateToken(cluster *kluster.Kluster, roleARN string) (*Token, error)

GenerateToken returns an AWS IAM Authenticator token

func (*Token) FormatJSON

func (t *Token) FormatJSON() string

FormatJSON returns the token in JSON format

Jump to

Keyboard shortcuts

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