Change Europa Core types ids

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine 2021-12-16 15:33:37 -07:00
parent e8843b918e
commit 86366b1f11
4 changed files with 12 additions and 9 deletions

View File

@ -13,8 +13,9 @@ import (
var ( var (
fsIDPath = cue.MakePath( fsIDPath = cue.MakePath(
cue.Hid("_fs", stdlib.EnginePackage), cue.Str("$dagger"),
cue.Str("id"), cue.Str("fs"),
cue.Hid("_id", stdlib.EnginePackage),
) )
) )

View File

@ -11,8 +11,9 @@ import (
var ( var (
secretIDPath = cue.MakePath( secretIDPath = cue.MakePath(
cue.Hid("_secret", stdlib.EnginePackage), cue.Str("$dagger"),
cue.Str("id"), cue.Str("secret"),
cue.Hid("_id", stdlib.EnginePackage),
) )
) )

View File

@ -11,8 +11,9 @@ import (
var ( var (
serviceIDPath = cue.MakePath( serviceIDPath = cue.MakePath(
cue.Hid("_service", stdlib.EnginePackage), cue.Str("$dagger"),
cue.Str("id"), cue.Str("service"),
cue.Hid("_id", stdlib.EnginePackage),
) )
) )

View File

@ -7,7 +7,7 @@ package engine
// - A directory containing binary artifacts // - A directory containing binary artifacts
// Rule of thumb: if it fits in a tar archive, it fits in a #FS. // Rule of thumb: if it fits in a tar archive, it fits in a #FS.
#FS: { #FS: {
_fs: id: string $dagger: fs: _id: string
} }
// A reference to an external secret, for example: // A reference to an external secret, for example:
@ -17,7 +17,7 @@ package engine
// Secrets are never merged in the Cue tree. They can only be used // Secrets are never merged in the Cue tree. They can only be used
// by a special filesystem mount designed to minimize leak risk. // by a special filesystem mount designed to minimize leak risk.
#Secret: { #Secret: {
_secret: id: string $dagger: secret: _id: string
} }
// A reference to a network service endpoint, for example: // A reference to a network service endpoint, for example:
@ -25,5 +25,5 @@ package engine
// - A unix or npipe socket // - A unix or npipe socket
// - An HTTPS endpoint // - An HTTPS endpoint
#Service: { #Service: {
_service: id: string $dagger: service: _id: string
} }