Documentation ¶
Index ¶
- func GenerateAesSecretKey() ([]byte, error)
- func IsExtractDataError(err error) bool
- func MergeEncodedYaml(oldData, newData, oldEncodedData, newEncodedData []byte) ([]byte, error)
- func MergeEncodedYamlNode(oldConfig, newConfig, oldEncodedConfig, newEncodedConfig *yaml_v3.Node) (*yaml_v3.Node, error)
- type AesEncoder
- type Encoder
- type YamlEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAesSecretKey ¶
func IsExtractDataError ¶
func MergeEncodedYaml ¶
Types ¶
type AesEncoder ¶
func NewAesEncoder ¶
func NewAesEncoder(key []byte) (*AesEncoder, error)
type YamlEncoder ¶
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 ¶
func NewYamlEncoder(encoder Encoder) *YamlEncoder
func (*YamlEncoder) DecryptYamlData ¶
func (s *YamlEncoder) DecryptYamlData(data []byte) ([]byte, error)
func (*YamlEncoder) EncryptYamlData ¶
func (s *YamlEncoder) EncryptYamlData(data []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.