Documentation
¶
Index ¶
- Constants
- func Execute()
- func GetFilesToProcess(cfg *config.Config) ([]string, error)
- func IsFIDO2Available() bool
- func IsFIDO2InitEnabled() bool
- func IsYubiKeyAvailable() bool
- func LoadDecryptionIdentity(cfg *config.Config, ageKeyFile, sshKeyFile string, useYubiKey, useFIDO2 bool) ([]age.Identity, error)
- func ResolveTarget(target string) (configPath string, singleFile string, err error)
- type FileWithFormat
Constants ¶
const AutoDetectMarker = "auto"
Variables ¶
This section is empty.
Functions ¶
func GetFilesToProcess ¶
GetFilesToProcess returns the list of files to process based on flags and config
func IsFIDO2Available ¶ added in v1.5.0
func IsFIDO2Available() bool
IsFIDO2Available checks if a FIDO2 device is connected
func IsFIDO2InitEnabled ¶ added in v1.5.0
func IsFIDO2InitEnabled() bool
IsFIDO2InitEnabled returns true if FIDO2 init is enabled
func IsYubiKeyAvailable ¶ added in v1.5.0
func IsYubiKeyAvailable() bool
IsYubiKeyAvailable checks if a YubiKey is connected
func LoadDecryptionIdentity ¶ added in v1.5.0
func LoadDecryptionIdentity(cfg *config.Config, ageKeyFile, sshKeyFile string, useYubiKey, useFIDO2 bool) ([]age.Identity, error)
LoadDecryptionIdentity loads a single identity that can decrypt a store entry. Priority: age > ssh > fido2 > yubikey Only loads identity types that are present in the store.
func ResolveTarget ¶ added in v1.8.0
ResolveTarget resolves a target path (file or folder) to a config path and optional single file. For a file: searches upward from the file's directory to find .confcrypt.yml For a folder: the folder must contain .confcrypt.yml directly (no upward search) Returns: configPath, singleFile (empty if folder/all files), error
Types ¶
type FileWithFormat ¶ added in v1.10.0
FileWithFormat represents a file to process along with its format override
func GetFilesToProcessWithFormat ¶ added in v1.10.0
func GetFilesToProcessWithFormat(cfg *config.Config) ([]FileWithFormat, error)
GetFilesToProcessWithFormat returns files with their format overrides