cache

package
v1.38.12 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenCache

type TokenCache struct {
	VaultAddressPtr *string // Vault address
	// contains filtered or unexported fields
}

func NewTokenCache

func NewTokenCache(tokenKey string, token *string, vaptr *string) *TokenCache

func NewTokenCacheEmpty

func NewTokenCacheEmpty(varVaptr ...*string) *TokenCache

func (*TokenCache) AddRole added in v1.38.0

func (tc *TokenCache) AddRole(roleKey string, roleSlice *[]string) error

func (*TokenCache) AddRoleStr added in v1.38.0

func (tc *TokenCache) AddRoleStr(roleKey string, role *string) error

func (*TokenCache) AddToken

func (tc *TokenCache) AddToken(tokenKey string, token *string) error

func (*TokenCache) Clear

func (tc *TokenCache) Clear()

func (*TokenCache) GetRole added in v1.38.0

func (tc *TokenCache) GetRole(roleKey string) *[]string

func (*TokenCache) GetRoleStr added in v1.38.0

func (tc *TokenCache) GetRoleStr(roleKey *string) *[]string

func (*TokenCache) GetRoleWithDefault added in v1.38.0

func (tc *TokenCache) GetRoleWithDefault(roleKey string, defaultRole string) *[]string

func (*TokenCache) GetToken

func (tc *TokenCache) GetToken(tokenKey string) *string

func (*TokenCache) GetTokenStr added in v1.38.0

func (tc *TokenCache) GetTokenStr(tokenKeyPtr *string) *string

func (*TokenCache) IsEmpty added in v1.38.9

func (tc *TokenCache) IsEmpty() bool

func (*TokenCache) SetVaultAddress added in v1.38.0

func (tc *TokenCache) SetVaultAddress(vaptr *string) error

Jump to

Keyboard shortcuts

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