credstore

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CREDSTORE_GLOBALS

type CREDSTORE_GLOBALS struct {
	Logger            *logrus.Logger
	Running           *bool
	CredCacheDuration int
	VaultKeypath      string
	// contains filtered or unexported fields
}

func (*CREDSTORE_GLOBALS) NewGlobals

func (g *CREDSTORE_GLOBALS) NewGlobals(logger *logrus.Logger,
	running *bool,
	credCacheDuration int,
	keypath string)

type CompCredCached

type CompCredCached struct {
	User   string
	Pw     string
	Expire time.Time
}

type CredStoreProvider

type CredStoreProvider interface {
	Init(glb *CREDSTORE_GLOBALS)
	IsReady() bool
	GetCredentials(xname string) (string, string, error)
	GetControllerCredentials(xname string) (string, string, error)
}

type MockStore added in v2.11.0

type MockStore struct {
	Username, Password string
}

func (*MockStore) GetControllerCredentials added in v2.11.0

func (s *MockStore) GetControllerCredentials(_ string) (string, string, error)

func (*MockStore) GetCredentials added in v2.11.0

func (s *MockStore) GetCredentials(_ string) (string, string, error)

func (*MockStore) Init added in v2.11.0

func (s *MockStore) Init(_ *CREDSTORE_GLOBALS)

func (*MockStore) IsReady added in v2.11.0

func (s *MockStore) IsReady() bool

type VAULTv0

type VAULTv0 struct {
	CredStoreGlobals CREDSTORE_GLOBALS
}

func (*VAULTv0) GetControllerCredentials

func (b *VAULTv0) GetControllerCredentials(xname string) (user string, pw string, err error)

Get the credentials for the controller of a specified xname. This will only go to vault if the credentials are unknown or have been cached for too long.

func (*VAULTv0) GetCredentials

func (b *VAULTv0) GetCredentials(xname string) (user string, pw string, err error)

Get the credentials for a specified xname. This will only go to vault if the credentials are unknown or have been cached for too long.

func (*VAULTv0) Init

func (b *VAULTv0) Init(globals *CREDSTORE_GLOBALS)

func (*VAULTv0) IsReady

func (b *VAULTv0) IsReady() bool

Jump to

Keyboard shortcuts

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