envoyproxy
Envoy proxy module for Dagger.
Installation
dagger install github.com/peterj/dagger-modules/envoyproxy@v0.0.2Entrypoint
Return Type
Envoyproxy ! Example
dagger -m github.com/peterj/dagger-modules/envoyproxy@7d13bf06de280027fa8f0636c462905ee76d9055 call \
func (m *MyModule) Example() *dagger.Envoyproxy {
return dag.
Envoyproxy()
}@function
def example() -> dagger.Envoyproxy:
return (
dag.envoyproxy()
)@func()
example(): Envoyproxy {
return dag
.envoyproxy()
}Types
Envoyproxy 🔗
version() 🔗
Return Type
String ! Example
dagger -m github.com/peterj/dagger-modules/envoyproxy@7d13bf06de280027fa8f0636c462905ee76d9055 call \
versionfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Envoyproxy().
Version(ctx)
}@function
async def example() -> str:
return await (
dag.envoyproxy()
.version()
)@func()
async example(): Promise<string> {
return dag
.envoyproxy()
.version()
}platform() 🔗
Return Type
String ! Example
dagger -m github.com/peterj/dagger-modules/envoyproxy@7d13bf06de280027fa8f0636c462905ee76d9055 call \
platformfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Envoyproxy().
Platform(ctx)
}@function
async def example() -> str:
return await (
dag.envoyproxy()
.platform()
)@func()
async example(): Promise<string> {
return dag
.envoyproxy()
.platform()
}envoyProxyService() 🔗
EnvoyProxyService creates a new service that runs the Envoy proxy with the given configuration. Example usage: 1. Starts the Envoy proxy with the given config and exposes port 10000 to the host. dagger call envoy-proxy-service –config ./examples/httpbin-sample.yaml –port 10000 up
Return Type
Service !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | "v1.30-latest" | No description provided |
| platform | String | "linux/arm64" | No description provided |
| config | File ! | - | No description provided |
| port | [Integer ! ] ! | - | No description provided |
Example
dagger -m github.com/peterj/dagger-modules/envoyproxy@7d13bf06de280027fa8f0636c462905ee76d9055 call \
envoy-proxy-service --config file:path --port integer1 --port integer2func (m *MyModule) Example(config *dagger.File, port []int) *dagger.Service {
return dag.
Envoyproxy().
EnvoyProxyService(config, port)
}@function
def example(config: dagger.File, port: List[int]) -> dagger.Service:
return (
dag.envoyproxy()
.envoy_proxy_service(config, port)
)@func()
example(config: File, port: number[]): Service {
return dag
.envoyproxy()
.envoyProxyService(config, port)
}validateConfig() 🔗
ValidateConfig validates the given Envoy configuration.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | String | "v1.30-latest" | No description provided |
| platform | String | "linux/arm64" | No description provided |
| config | File ! | - | No description provided |
Example
dagger -m github.com/peterj/dagger-modules/envoyproxy@7d13bf06de280027fa8f0636c462905ee76d9055 call \
validate-config --config file:pathfunc (m *MyModule) Example(ctx context.Context, config *dagger.File) string {
return dag.
Envoyproxy().
ValidateConfig(ctxconfig)
}@function
async def example(config: dagger.File) -> str:
return await (
dag.envoyproxy()
.validate_config(config)
)@func()
async example(config: File): Promise<string> {
return dag
.envoyproxy()
.validateConfig(config)
}