token

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature added in v1.2.0

type Feature struct {
	IsEnabled      func(dk dynakube.DynaKube) bool
	Name           string
	RequiredScopes []string
}

func (*Feature) IsScopeMissing added in v1.2.0

func (feature *Feature) IsScopeMissing(scopes []string) (bool, []string)

type Reader

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

func NewReader

func NewReader(apiReader client.Reader, dk *dynakube.DynaKube) Reader

func (Reader) ReadTokens

func (reader Reader) ReadTokens(ctx context.Context) (Tokens, error)

type Token

type Token struct {
	Type     string
	Value    string
	Features []Feature
}

type Tokens

type Tokens map[string]*Token

func (Tokens) AddFeatureScopesToTokens added in v1.2.0

func (tokens Tokens) AddFeatureScopesToTokens() Tokens

func (Tokens) ApiToken

func (tokens Tokens) ApiToken() *Token

func (Tokens) DataIngestToken

func (tokens Tokens) DataIngestToken() *Token

func (Tokens) PaasToken

func (tokens Tokens) PaasToken() *Token

func (Tokens) VerifyScopes

func (tokens Tokens) VerifyScopes(ctx context.Context, dtClient dtclient.Client, dk dynakube.DynaKube) error

func (Tokens) VerifyValues

func (tokens Tokens) VerifyValues() error

Jump to

Keyboard shortcuts

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