Dagger
Search

envoyproxy

Envoy proxy module for Dagger.

Installation

dagger install github.com/peterj/dagger-modules/envoyproxy@v0.0.2

Entrypoint

Return Type
Envoyproxy !
Example
dagger -m github.com/peterj/dagger-modules/envoyproxy@7d13bf06de280027fa8f0636c462905ee76d9055 call \
func (m *myModule) example() *Envoyproxy  {
	return dag.
			Envoyproxy()
}
@function
def example() -> dag.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 \
 version
func (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 \
 platform
func (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
NameTypeDefault ValueDescription
versionString "v1.30-latest"No description provided
platformString "linux/arm64"No description provided
configFile !-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 integer2
func (m *myModule) example(config *File, port []int) *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
NameTypeDefault ValueDescription
versionString "v1.30-latest"No description provided
platformString "linux/arm64"No description provided
configFile !-No description provided
Example
dagger -m github.com/peterj/dagger-modules/envoyproxy@7d13bf06de280027fa8f0636c462905ee76d9055 call \
 validate-config --config file:path
func (m *myModule) example(ctx context.Context, config *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)
}