sops

package
v0.0.0-...-561eda3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 24 Imported by: 0

README

sops

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SopsAgeParams

type SopsAgeParams struct {
	Recipients []string
	Key        string
}

type SopsEncryptParams

type SopsEncryptParams struct {
	ConfigPath string
	File       string
	FileType   string
	Indent     int
	Age        *SopsAgeParams
	Kms        *SopsKmsParams
	AzureKvUri string
	VaultUri   string
	PgpKey     string
}

type SopsKmsParams

type SopsKmsParams struct {
	Uri               string
	AwsProfile        string
	EncryptionContext string
}

type SopsSecretVault

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

func FromConfig

func FromConfig(cfg configs.VaultItem) *SopsSecretVault

func New

func (*SopsSecretVault) BatchGetSecretValues

func (s *SopsSecretVault) BatchGetSecretValues(keys []string, params *vaults.GetSecretValueParams) (map[string]string, error)

func (*SopsSecretVault) BatchSetSecretValues

func (s *SopsSecretVault) BatchSetSecretValues(values map[string]string, params *vaults.SetSecretValueParams) error

func (*SopsSecretVault) Decrypt

func (s *SopsSecretVault) Decrypt() error

func (*SopsSecretVault) DeleteSecret

func (s *SopsSecretVault) DeleteSecret(key string, params *vaults.DeleteSecretParams) error

func (*SopsSecretVault) Encrypt

func (s *SopsSecretVault) Encrypt() error

func (*SopsSecretVault) GetSecretValue

func (s *SopsSecretVault) GetSecretValue(key string, params *vaults.GetSecretValueParams) (string, error)

func (*SopsSecretVault) ListSecretNames

func (s *SopsSecretVault) ListSecretNames(params *vaults.ListSecretNamesParams) ([]string, error)

func (*SopsSecretVault) LoadData

func (s *SopsSecretVault) LoadData(data map[string]interface{}) error

func (*SopsSecretVault) MapSecretValues

func (s *SopsSecretVault) MapSecretValues(query map[string]string, params *vaults.GetSecretValueParams) (map[string]string, error)

func (*SopsSecretVault) SetSecretValue

func (s *SopsSecretVault) SetSecretValue(key, value string, params *vaults.SetSecretValueParams) error

type SopsSecretVaultParams

type SopsSecretVaultParams struct {
	File         string
	ConfileFile  string
	Age          *SopsAgeParams
	Kms          *SopsKmsParams
	AzureKvUri   string
	VaultUri     string
	PgpPublicKey string
	Driver       string
	Indent       int
}

Jump to

Keyboard shortcuts

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