token

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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 Reader

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

func NewReader

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

func (Reader) ReadTokens

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

type Token

type Token struct {
	Value          string
	RequiredScopes []string
}

type Tokens

type Tokens map[string]Token

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) SetScopesForDynakube

func (tokens Tokens) SetScopesForDynakube(dynakube dynatracev1beta1.DynaKube) Tokens

func (Tokens) VerifyScopes

func (tokens Tokens) VerifyScopes(dtc dtclient.Client) 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