From 842a9bf6bb80709c3e6a0773fcbbe2bbdb3c05fc Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 14 Jan 2022 13:29:37 -0700 Subject: [PATCH] moved #TransformSecret to engine/secret.cue Signed-off-by: Richard Jones --- pkg/dagger.io/dagger/engine/secret.cue | 17 +++++++++++++++++ .../dagger/engine/transformsecret.cue | 18 ------------------ 2 files changed, 17 insertions(+), 18 deletions(-) delete mode 100644 pkg/dagger.io/dagger/engine/transformsecret.cue diff --git a/pkg/dagger.io/dagger/engine/secret.cue b/pkg/dagger.io/dagger/engine/secret.cue index 9a202622..6c6d87f8 100644 --- a/pkg/dagger.io/dagger/engine/secret.cue +++ b/pkg/dagger.io/dagger/engine/secret.cue @@ -13,3 +13,20 @@ package engine // Contents of the secret output: #Secret } + +// Securely apply a CUE transformation on the contents of a secret +#TransformSecret: { + $dagger: task: _name: "TransformSecret" + // The original secret + input: #Secret + // A new secret or (map of secrets) with the transformation applied + output: #Secret | {[string]: output} + // Transformation function + #function: { + // Full contents of the input secret (only available to the function) + input: string + _functionOutput: string | {[string]: _functionOutput} + // New contents of the output secret (must provided by the caller) + output: _functionOutput + } +} diff --git a/pkg/dagger.io/dagger/engine/transformsecret.cue b/pkg/dagger.io/dagger/engine/transformsecret.cue deleted file mode 100644 index 35da8b82..00000000 --- a/pkg/dagger.io/dagger/engine/transformsecret.cue +++ /dev/null @@ -1,18 +0,0 @@ -package engine - -// Securely apply a CUE transformation on the contents of a secret -#TransformSecret: { - $dagger: task: _name: "TransformSecret" - // The original secret - input: #Secret - // A new secret or (map of secrets) with the transformation applied - output: #Secret | {[string]: output} - // Transformation function - #function: { - // Full contents of the input secret (only available to the function) - input: string - _functionOutput: string | {[string]: _functionOutput} - // New contents of the output secret (must provided by the caller) - output: _functionOutput - } -}