Migrate dagger.#Secret and dagger.#Stream to new format
- Refactored to keep every transformation of built-in types (e.g. FS, Secret, etc) to/from CUE in the same place (plancontext) - dagger.#Service and dagger.#Secret are now following the new FS-like format (e.g. `_service: id: string`) - Backward compatibility - dagger.#Stream is now an alias for dagger.#Service Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -24,13 +24,18 @@ import (
|
||||
...
|
||||
}
|
||||
|
||||
// Dagger stream. Can be mounted as a UNIX socket.
|
||||
#Stream: {
|
||||
@dagger(stream)
|
||||
|
||||
id: string
|
||||
// A reference to a network service endpoint, for example:
|
||||
// - A TCP or UDP port
|
||||
// - A unix or npipe socket
|
||||
// - An HTTPS endpoint
|
||||
#Service: {
|
||||
_service: id: string
|
||||
}
|
||||
|
||||
// Dagger stream. Can be mounted as a UNIX socket.
|
||||
// FIXME: Deprecated. For backward compatibility only, use #Service instead.
|
||||
#Stream: #Service
|
||||
|
||||
// A reference to an external secret, for example:
|
||||
// - A password
|
||||
// - A SSH private key
|
||||
@@ -38,9 +43,7 @@ import (
|
||||
// Secrets are never merged in the Cue tree. They can only be used
|
||||
// by a special filesystem mount designed to minimize leak risk.
|
||||
#Secret: {
|
||||
@dagger(secret)
|
||||
|
||||
id: string
|
||||
_secret: id: string
|
||||
}
|
||||
|
||||
#Input: {
|
||||
|
Reference in New Issue
Block a user