engine: resources: Add missing struct tags
These are needed for send/recv.
This commit is contained in:
@@ -595,11 +595,11 @@ func (obj *ExecRes) UIDs() []engine.ResUID {
|
|||||||
// ExecSends is the struct of data which is sent after a successful Apply.
|
// ExecSends is the struct of data which is sent after a successful Apply.
|
||||||
type ExecSends struct {
|
type ExecSends struct {
|
||||||
// Output is the combined stdout and stderr of the command.
|
// Output is the combined stdout and stderr of the command.
|
||||||
Output *string
|
Output *string `lang:"output"`
|
||||||
// Stdout is the stdout of the command.
|
// Stdout is the stdout of the command.
|
||||||
Stdout *string
|
Stdout *string `lang:"stdout"`
|
||||||
// Stderr is the stderr of the command.
|
// Stderr is the stderr of the command.
|
||||||
Stderr *string
|
Stderr *string `lang:"stderr"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sends represents the default struct of values we can send using Send/Recv.
|
// Sends represents the default struct of values we can send using Send/Recv.
|
||||||
|
|||||||
@@ -57,26 +57,26 @@ type FileRes struct {
|
|||||||
// Path, which defaults to the name if not specified, represents the
|
// Path, which defaults to the name if not specified, represents the
|
||||||
// destination path for the file or directory being managed. It must be
|
// destination path for the file or directory being managed. It must be
|
||||||
// an absolute path, and as a result must start with a slash.
|
// an absolute path, and as a result must start with a slash.
|
||||||
Path string `yaml:"path"`
|
Path string `lang:"path" yaml:"path"`
|
||||||
Dirname string `yaml:"dirname"` // override the path dirname
|
Dirname string `lang:"dirname" yaml:"dirname"` // override the path dirname
|
||||||
Basename string `yaml:"basename"` // override the path basename
|
Basename string `lang:"basename" yaml:"basename"` // override the path basename
|
||||||
|
|
||||||
// Content specifies the file contents to use. If this is nil, they are
|
// Content specifies the file contents to use. If this is nil, they are
|
||||||
// left undefined. It cannot be combined with Source.
|
// left undefined. It cannot be combined with Source.
|
||||||
Content *string `yaml:"content"`
|
Content *string `lang:"content" yaml:"content"`
|
||||||
// Source specifies the source contents for the file resource. It cannot
|
// Source specifies the source contents for the file resource. It cannot
|
||||||
// be combined with the Content parameter.
|
// be combined with the Content parameter.
|
||||||
Source string `yaml:"source"`
|
Source string `lang:"source" yaml:"source"`
|
||||||
// State specifies the desired state of the file. It can be either
|
// State specifies the desired state of the file. It can be either
|
||||||
// `exists` or `absent`. If you do not specify this, it will be
|
// `exists` or `absent`. If you do not specify this, it will be
|
||||||
// undefined, and determined based on the other parameters.
|
// undefined, and determined based on the other parameters.
|
||||||
State string `yaml:"state"`
|
State string `lang:"state" yaml:"state"`
|
||||||
|
|
||||||
Owner string `yaml:"owner"`
|
Owner string `lang:"owner" yaml:"owner"`
|
||||||
Group string `yaml:"group"`
|
Group string `lang:"group" yaml:"group"`
|
||||||
Mode string `yaml:"mode"`
|
Mode string `lang:"mode" yaml:"mode"`
|
||||||
Recurse bool `yaml:"recurse"`
|
Recurse bool `lang:"recurse" yaml:"recurse"`
|
||||||
Force bool `yaml:"force"`
|
Force bool `lang:"force" yaml:"force"`
|
||||||
|
|
||||||
sha256sum string
|
sha256sum string
|
||||||
recWatcher *recwatch.RecWatcher
|
recWatcher *recwatch.RecWatcher
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ func (obj *PasswordRes) UIDs() []engine.ResUID {
|
|||||||
// PasswordSends is the struct of data which is sent after a successful Apply.
|
// PasswordSends is the struct of data which is sent after a successful Apply.
|
||||||
type PasswordSends struct {
|
type PasswordSends struct {
|
||||||
// Password is the generated password being sent.
|
// Password is the generated password being sent.
|
||||||
Password *string
|
Password *string `lang:"password"`
|
||||||
// Hashing is the algorithm used for this password. Empty is plain text.
|
// Hashing is the algorithm used for this password. Empty is plain text.
|
||||||
Hashing string // TODO: implement me
|
Hashing string // TODO: implement me
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -401,8 +401,8 @@ func (obj *TestRes) GroupCmp(r engine.GroupableRes) error {
|
|||||||
// TestSends is the struct of data which is sent after a successful Apply.
|
// TestSends is the struct of data which is sent after a successful Apply.
|
||||||
type TestSends struct {
|
type TestSends struct {
|
||||||
// Hello is some value being sent.
|
// Hello is some value being sent.
|
||||||
Hello *string
|
Hello *string `lang:"hello"`
|
||||||
Answer int // some other value being sent
|
Answer int `lang:"answer"` // some other value being sent
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sends represents the default struct of values we can send using Send/Recv.
|
// Sends represents the default struct of values we can send using Send/Recv.
|
||||||
|
|||||||
Reference in New Issue
Block a user