envoy
Envoy proxy module for Dagger.
Installation
dagger install github.com/felipepimentel/daggerverse/libraries/envoy@v0.0.0
Entrypoint
Return Type
Envoy !
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/envoy@a6e2b170f4c091b039eb27100249bb19972839d7 call \
func (m *myModule) example() *Envoy {
return dag.
Envoy()
}
@function
def example() -> dag.Envoy:
return (
dag.envoy()
)
@func()
example(): Envoy {
return dag
.envoy()
}
Types
Envoy 🔗
version() 🔗
Return Type
String !
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/envoy@a6e2b170f4c091b039eb27100249bb19972839d7 call \
version
func (m *myModule) example(ctx context.Context) string {
return dag.
Envoy().
Version(ctx)
}
@function
async def example() -> str:
return await (
dag.envoy()
.version()
)
@func()
async example(): Promise<string> {
return dag
.envoy()
.version()
}
platform() 🔗
Return Type
Scalar !
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/envoy@a6e2b170f4c091b039eb27100249bb19972839d7 call \
platform
func (m *myModule) example() {
return dag.
Envoy().
Platform()
}
@function
def example() -> :
return (
dag.envoy()
.platform()
)
@func()
example(): {
return dag
.envoy()
.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 | Scalar | "linux/arm64" | No description provided |
config | File ! | - | No description provided |
port | [Integer ! ] ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/envoy@a6e2b170f4c091b039eb27100249bb19972839d7 call \
envoy-proxy-service --config file:path --port integer1 --port integer2
func (m *myModule) example(config *File, port []int) *Service {
return dag.
Envoy().
EnvoyProxyService(config, port)
}
@function
def example(config: dagger.File, port: List[int]) -> dagger.Service:
return (
dag.envoy()
.envoy_proxy_service(config, port)
)
@func()
example(config: File, port: number[]): Service {
return dag
.envoy()
.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 | Scalar | "linux/arm64" | No description provided |
config | File ! | - | No description provided |
Example
dagger -m github.com/felipepimentel/daggerverse/libraries/envoy@a6e2b170f4c091b039eb27100249bb19972839d7 call \
validate-config --config file:path
func (m *myModule) example(ctx context.Context, config *File) string {
return dag.
Envoy().
ValidateConfig(ctxconfig)
}
@function
async def example(config: dagger.File) -> str:
return await (
dag.envoy()
.validate_config(config)
)
@func()
async example(config: File): Promise<string> {
return dag
.envoy()
.validateConfig(config)
}