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
Click to show internal directories.
Click to hide internal directories.