plancontext cleanup
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user