Added support for the encoding key in write_files
Supported encodings are base64, gzip, and base64 encoded gzip
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
package config
|
||||
|
||||
type File struct {
|
||||
Encoding string `yaml:"-"`
|
||||
Encoding string `yaml:"encoding" valid:"base64,b64,gz,gzip,gz+base64,gzip+base64,gz+b64,gzip+b64"`
|
||||
Content string `yaml:"content"`
|
||||
Owner string `yaml:"owner"`
|
||||
Path string `yaml:"path"`
|
||||
|
Reference in New Issue
Block a user