plancontext cleanup

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-12-07 14:20:08 -05:00
parent c881bc2dba
commit a58ca16c3d
8 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ func TestContext(t *testing.T) {
ctx := New()
secret := ctx.Secrets.New("test")
get, err := ctx.Secrets.FromValue(secret.Value())
get, err := ctx.Secrets.FromValue(secret.MarshalCUE())
require.NoError(t, err)
require.Equal(t, "test", get.PlainText())
}

View File

@@ -31,7 +31,7 @@ func (fs *FS) Result() bkgw.Reference {
return fs.result
}
func (fs *FS) Value() *compiler.Value {
func (fs *FS) MarshalCUE() *compiler.Value {
v := compiler.NewValue()
if err := v.FillPath(fsIDPath, fs.id); err != nil {
panic(err)

View File

@@ -33,7 +33,7 @@ func (s *Secret) PlainText() string {
return s.plainText
}
func (s *Secret) Value() *compiler.Value {
func (s *Secret) MarshalCUE() *compiler.Value {
v := compiler.NewValue()
if err := v.FillPath(secretIDPath, s.id); err != nil {
panic(err)

View File

@@ -39,7 +39,7 @@ func (s *Service) NPipe() string {
return s.npipe
}
func (s *Service) Value() *compiler.Value {
func (s *Service) MarshalCUE() *compiler.Value {
v := compiler.NewValue()
if err := v.FillPath(serviceIDPath, s.id); err != nil {
panic(err)