creds

package
v0.0.0-...-b8e8469 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredsConfig

type CredsConfig struct {
	SshConsoleKeyPath          string         `desc:"Path where the SSH private key file for console access will be writen to."`
	SecureStorageAdapter       StorageAdapter `desc:"Type of secure storage adapter to use for credentials retrieval."`
	VaultBasePath              string         `desc:"Base path in Vault where credentials are stored."`
	VaultRole                  string         `desc:"Vault role to use when authenticating to Vault."`
	LocalStoreFilePath         string         `desc:"Path to local secure storage file."`
	LocalStoreKey              string         `desc:"Key to use for local secure storage decryption."`
	SecureStorageSshKeysPath   string         `desc:"Path where the SSH keys can be found in secure storage. Leave empty to skip SSH key management."`
	SecureStoragePasswordsPath string         `desc:"Path where the console credentials access can be found in secure storage."`
}

func DefaultCredsConfig

func DefaultCredsConfig() CredsConfig

type CredsService

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

func NewCredsService

func NewCredsService(config CredsConfig) *CredsService

func (*CredsService) CheckForUpdates

func (cs *CredsService) CheckForUpdates() (bool, error)

function to do check for credential changes

func (*CredsService) EnsureConsoleKeysPresent

func (cs *CredsService) EnsureConsoleKeysPresent() (bool, error)

func (*CredsService) GetPasswords

func (cs *CredsService) GetPasswords(xnames []string) map[string]compcreds.CompCredentials

GetPasswords returns credentials from the last refresh for the given xnames. Missing credentials are omitted. CheckForUpdates refreshes the snapshot.

type SignalConmanTERM

type SignalConmanTERM func()

type StorageAdapter

type StorageAdapter string
const (
	StorageAdapterVault StorageAdapter = "vault"
	StorageAdapterLocal StorageAdapter = "local"
)

func NewStorageAdapter

func NewStorageAdapter(value string) (StorageAdapter, error)

func (StorageAdapter) Validate

func (s StorageAdapter) Validate() error

Jump to

Keyboard shortcuts

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