stdio
No long description provided.
Installation
dagger install github.com/shykes/x/stdio@811fa8a47958c484441304cec08d6fe30a7550b3
Entrypoint
Return Type
Stdio !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
proxySource | Directory | - | No description provided |
Example
dagger -m github.com/shykes/x/stdio@811fa8a47958c484441304cec08d6fe30a7550b3 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 🔗
server() 🔗
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 | 8000 | No description provided |
Example
dagger -m github.com/shykes/x/stdio@811fa8a47958c484441304cec08d6fe30a7550b3 call \
server --ctr IMAGE:TAG
func (m *MyModule) Example(ctr *dagger.Container) *dagger.Service {
return dag.
Stdio().
Server(ctr)
}
@function
def example(ctr: dagger.Container) -> dagger.Service:
return (
dag.stdio()
.server(ctr)
)
@func()
example(ctr: Container): Service {
return dag
.stdio()
.server(ctr)
}
client() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ctr | Container ! | - | No description provided |
Example
dagger -m github.com/shykes/x/stdio@811fa8a47958c484441304cec08d6fe30a7550b3 call \
client --ctr IMAGE:TAG
func (m *MyModule) Example(ctr *dagger.Container) *dagger.Container {
return dag.
Stdio().
Client(ctr)
}
@function
def example(ctr: dagger.Container) -> dagger.Container:
return (
dag.stdio()
.client(ctr)
)
@func()
example(ctr: Container): Container {
return dag
.stdio()
.client(ctr)
}
binary() 🔗
Build the proxy static binary
Return Type
File !
Example
dagger -m github.com/shykes/x/stdio@811fa8a47958c484441304cec08d6fe30a7550b3 call \
binary
func (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()
}