-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Wrapper both yaml.Unmarshaler & yaml.Marshaler
Co-authored-by: Will Roden <[email protected]> Signed-off-by: Sylvain Rabot <[email protected]>
- Loading branch information
1 parent
67ccfe6
commit 412e9df
Showing
6 changed files
with
275 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
/* | ||
Package age provides a wrapper for `sylr.dev/yaml/v3` which allows to encrypt/decrypt | ||
YAML values in place using AGE. | ||
It only supports encrypting/decrypting strings, it will treat any other YAML type | ||
like bool, int, float ... etc as string. | ||
*/ | ||
// Package age provides a wrapper for `sylr.dev/yaml/v3` which allows to | ||
// encrypt/decrypt YAML values in place using AGE. | ||
// | ||
// It only supports encrypting/decrypting strings, it will treat any other YAML | ||
// type like bool, int, float ... etc as strings. | ||
package age |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package age | ||
|
||
import "fmt" | ||
|
||
var ( | ||
ErrUnknownAttribute = fmt.Errorf("unknown attribute") | ||
ErrMoreThanOneStyleAttribute = fmt.Errorf("can't use more than one style attribute") | ||
ErrUpstreamAgeError = fmt.Errorf("age") | ||
ErrUnsupportedValueType = fmt.Errorf("unsupported Value type") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.