Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAesSecretKey ¶ added in v1.2.5
func IsExtractDataError ¶
Types ¶
type AesEncoder ¶ added in v1.2.5
func NewAesEncoder ¶ added in v1.2.5
func NewAesEncoder(key []byte) (*AesEncoder, error)
type YamlEncoder ¶ added in v1.2.5
type YamlEncoder struct { Encoder Encoder // contains filtered or unexported fields }
YamlEncoder is an Encoder compatible object with additional helpers to work with yaml data: EncryptYamlData and DecryptYamlData
func NewYamlEncoder ¶ added in v1.2.5
func NewYamlEncoder(encoder Encoder) *YamlEncoder
func (*YamlEncoder) Decrypt ¶ added in v1.2.5
func (s *YamlEncoder) Decrypt(data []byte) ([]byte, error)
func (*YamlEncoder) DecryptYamlData ¶ added in v1.2.5
func (s *YamlEncoder) DecryptYamlData(data []byte) ([]byte, error)
func (*YamlEncoder) Encrypt ¶ added in v1.2.5
func (s *YamlEncoder) Encrypt(data []byte) ([]byte, error)
func (*YamlEncoder) EncryptYamlData ¶ added in v1.2.5
func (s *YamlEncoder) EncryptYamlData(data []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.