Rename dagger.#Service to dagger.#Socket

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia
2022-03-28 17:54:08 +00:00
parent 4058d56f1b
commit 6a2bbc62e0
19 changed files with 25 additions and 21 deletions

View File

@@ -0,0 +1,4 @@
package dagger
// DEPRECATED: Use #Socket instead
#Service: #Socket

View File

@@ -55,8 +55,8 @@ import "dagger.io/dagger"
type: "tmp"
contents: #TempDir
} | {
type: "service"
contents: dagger.#Service
type: "socket"
contents: dagger.#Socket
} | {
type: "fs"
contents: dagger.#FS

View File

@@ -67,8 +67,8 @@ _#clientFilesystemRead: {
exclude?: [...string]
} | {
// CUE type defines expected content:
// #Service: unix socket or npipe
contents: #Service
// #Socket: unix socket or npipe
contents: #Socket
// Type of service
type: *"unix" | "npipe"

View File

@@ -26,10 +26,10 @@ package dagger
}
// A reference to a network service endpoint, for example:
// - A TCP or UDP port
// - A unix socket
// - A TCP or UDP port
// - An HTTPS endpoint
#Service: {
#Socket: {
$dagger: service: _id: string
}