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 ¶ added in v1.2.5
func IsExtractDataError ¶
func MergeEncodedYaml ¶ added in v1.2.117
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.