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
}

View File

@@ -20,7 +20,7 @@ import (
// Connect via local docker socket
#RunSocket: {
host: dagger.#Service
host: dagger.#Socket
docker.#Run & {
mounts: docker: {

View File

@@ -10,7 +10,7 @@ import (
)
dagger.#Plan & {
client: filesystem: "/var/run/docker.sock": read: contents: dagger.#Service
client: filesystem: "/var/run/docker.sock": read: contents: dagger.#Socket
actions: test: {
_cli: alpine.#Build & {

View File

@@ -8,7 +8,7 @@ import (
)
dagger.#Plan & {
client: filesystem: "/var/run/docker.sock": read: contents: dagger.#Service
client: filesystem: "/var/run/docker.sock": read: contents: dagger.#Socket
actions: test: {
run: cli.#Run & {

View File

@@ -20,7 +20,7 @@ import (
// Expose network ports
// FIXME: investigate feasibility
ports: [name=string]: {
frontend: dagger.#Service
frontend: dagger.#Socket
backend: {
protocol: *"tcp" | "udp"
address: string