Merge pull request #2203 from helderco/dagger-address
chore!: Make `dagger.#Address` private
This commit is contained in:
commit
1f0d35be5c
@ -24,7 +24,7 @@ package dagger
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Access client network endpoints
|
// Access client network endpoints
|
||||||
network: [address=#Address]: _#clientNetwork & {
|
network: [address=_#address]: _#clientNetwork & {
|
||||||
"address": address
|
"address": address
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ _#clientNetwork: {
|
|||||||
|
|
||||||
// URL to the socket
|
// URL to the socket
|
||||||
// Example: unix:///var/run/docker.sock
|
// Example: unix:///var/run/docker.sock
|
||||||
address: #Address
|
address: _#address
|
||||||
|
|
||||||
{
|
{
|
||||||
// unix socket or npipe
|
// unix socket or npipe
|
||||||
@ -108,6 +108,9 @@ _#clientNetwork: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A network service address
|
||||||
|
_#address: string & =~"^(unix://|npipe://).+"
|
||||||
|
|
||||||
_#clientEnv: {
|
_#clientEnv: {
|
||||||
$dagger: task: _name: "ClientEnv"
|
$dagger: task: _name: "ClientEnv"
|
||||||
|
|
||||||
|
@ -32,7 +32,3 @@ package dagger
|
|||||||
#Socket: {
|
#Socket: {
|
||||||
$dagger: service: _id: string
|
$dagger: service: _id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// A network service address
|
|
||||||
#Address: string & =~"^(unix://|npipe://).+"
|
|
||||||
// TODO: #Address: string & =~"^(tcp://|unix://|npipe://|udp://).+"
|
|
||||||
|
Reference in New Issue
Block a user