Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidKeyFile = errors.New("invalid key file") ErrInvalidFormat = errors.New("invalid file content format") ErrInvalidIdentity = errors.New("invalid identity") ErrInvalidConfiguraion = errors.New("invalid configuration") )
View Source
var ( Version = "version-undefined" Sha = "sha-undefined" )
Functions ¶
This section is empty.
Types ¶
type DecryptConfig ¶
func (*DecryptConfig) Identities ¶
func (c *DecryptConfig) Identities() ([]age.Identity, error)
func (*DecryptConfig) Valid ¶
func (c *DecryptConfig) Valid() error
type DecryptOpt ¶
type DecryptOpt func(cfg *DecryptConfig)
func WithKey ¶
func WithKey(key string) DecryptOpt
func WithKeyFile ¶
func WithKeyFile(keyFile string) DecryptOpt
type Decryptor ¶
type Decryptor struct {
// contains filtered or unexported fields
}
func NewDecryptor ¶
func NewDecryptor(c *DecryptConfig, opts ...DecryptOpt) (Decryptor, error)
type Encryptor ¶
type Encryptor struct {
// contains filtered or unexported fields
}
func NewEncryptor ¶
Click to show internal directories.
Click to hide internal directories.