Documentation ¶
Index ¶
- Constants
- func CleanSecretsCache() error
- func CleanSecretsCacheAll() error
- func InitProvider(paths []string, excludes []string) error
- func RemoveProvider() error
- type CryptoProvider
- type GpgCryptoProvider
- type SecretCommand
- func (c *SecretCommand) Clean()
- func (c *SecretCommand) Copy(from, to string, cleanFrom, cleanTo bool) error
- func (c *SecretCommand) Init()
- func (c *SecretCommand) Remove()
- func (c *SecretCommand) Show(passphrase string, paths []string, excludes []string) (string, error)
- func (c *SecretCommand) Verify(passphrase string, paths []string, excludes []string) error
- type SecretProvider
- type VaultSecretProvider
Constants ¶
View Source
const AppDirectory = gitDirectory + "sealbro/"
Variables ¶
This section is empty.
Functions ¶
func CleanSecretsCache ¶
func CleanSecretsCache() error
func CleanSecretsCacheAll ¶
func CleanSecretsCacheAll() error
func InitProvider ¶
func RemoveProvider ¶
func RemoveProvider() error
Types ¶
type CryptoProvider ¶
func MakeGpgCryptoProvider ¶
func MakeGpgCryptoProvider(passphrase []byte) CryptoProvider
type GpgCryptoProvider ¶
type GpgCryptoProvider struct {
// contains filtered or unexported fields
}
func (*GpgCryptoProvider) Decrypt ¶
func (p *GpgCryptoProvider) Decrypt() (string, error)
func (*GpgCryptoProvider) Encrypt ¶
func (p *GpgCryptoProvider) Encrypt(rawText string) error
type SecretCommand ¶
type SecretCommand struct { }
func (*SecretCommand) Clean ¶
func (c *SecretCommand) Clean()
func (*SecretCommand) Copy ¶
func (c *SecretCommand) Copy(from, to string, cleanFrom, cleanTo bool) error
func (*SecretCommand) Init ¶
func (c *SecretCommand) Init()
func (*SecretCommand) Remove ¶
func (c *SecretCommand) Remove()
type SecretProvider ¶
type SecretProvider interface { GetAllUniqSecrets(paths []string) ([]string, error) DeepCopyKV(from, to string) error }
func MakeVaultSecretProvider ¶
func MakeVaultSecretProvider(excludes []string) SecretProvider
type VaultSecretProvider ¶
type VaultSecretProvider struct {
// contains filtered or unexported fields
}
func (*VaultSecretProvider) DeepCopyKV ¶
func (p *VaultSecretProvider) DeepCopyKV(from, to string) error
func (*VaultSecretProvider) GetAllUniqSecrets ¶
func (p *VaultSecretProvider) GetAllUniqSecrets(paths []string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.