stdio
No long description provided.
Installation
dagger install github.com/shykes/x/stdio@5f6caf46f4da1794f3abf32dca7537ed917bcb67Entrypoint
Return Type
Stdio !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| proxySource | Directory | - | No description provided |
Example
dagger -m github.com/shykes/x/stdio@5f6caf46f4da1794f3abf32dca7537ed917bcb67 call \
func (m *MyModule) Example() *dagger.Stdio {
return dag.
Stdio()
}@function
def example() -> dagger.Stdio:
return (
dag.stdio()
)@func()
example(): Stdio {
return dag
.stdio()
}Types
Stdio 🔗
proxy() 🔗
Execute the given container as a stdio server, and expose it as a TCP service
Return Type
Service !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
| port | Integer | 4242 | No description provided |
Example
dagger -m github.com/shykes/x/stdio@5f6caf46f4da1794f3abf32dca7537ed917bcb67 call \
proxy --ctr IMAGE:TAGfunc (m *MyModule) Example(ctr *dagger.Container) *dagger.Service {
return dag.
Stdio().
Proxy(ctr)
}@function
def example(ctr: dagger.Container) -> dagger.Service:
return (
dag.stdio()
.proxy(ctr)
)@func()
example(ctr: Container): Service {
return dag
.stdio()
.proxy(ctr)
}binary() 🔗
Build the proxy static binary
Return Type
File ! Example
dagger -m github.com/shykes/x/stdio@5f6caf46f4da1794f3abf32dca7537ed917bcb67 call \
binaryfunc (m *MyModule) Example() *dagger.File {
return dag.
Stdio().
Binary()
}@function
def example() -> dagger.File:
return (
dag.stdio()
.binary()
)@func()
example(): File {
return dag
.stdio()
.binary()
}