Dagger
Search

proxy

This module allows you to proxy any number of Dagger Services
through a single Dagger Service on specified ports

Installation

dagger install github.com/kpenfound/dagger-modules/proxy@v0.2.1

Entrypoint

Return Type
Proxy !
Arguments
NameTypeDescription
ctrContainer An OCI-compatible container, also known as a Docker container.
Example
dagger -m github.com/kpenfound/dagger-modules/proxy@7af9af916147361951530edb976f242f51f7f70a call \
func (m *myModule) example() *Proxy  {
	return dag.
			Proxy()
}
@function
def example() -> dag.Proxy:
	return (
		dag.proxy()
	)
@func()
example(): Proxy {
	return dag
		.proxy()
}

Types

Proxy 🔗

Forwards multiple services into a single service with multiple ports

ctr() 🔗

An OCI-compatible container, also known as a Docker container.

Return Type
Container !
Example
dagger -m github.com/kpenfound/dagger-modules/proxy@7af9af916147361951530edb976f242f51f7f70a call \
 ctr
func (m *myModule) example() *Container  {
	return dag.
			Proxy().
			Ctr()
}
@function
def example() -> dagger.Container:
	return (
		dag.proxy()
		.ctr()
	)
@func()
example(): Container {
	return dag
		.proxy()
		.ctr()
}

withService() 🔗

Add a service to proxy

Return Type
Proxy !
Arguments
NameTypeDefault ValueDescription
serviceService !-A content-addressed service providing TCP connectivity.
nameString !-No description provided
frontendInteger !-No description provided
backendInteger !-No description provided
isTcpBoolean !falseNo description provided
Example
dagger -m github.com/kpenfound/dagger-modules/proxy@7af9af916147361951530edb976f242f51f7f70a call \
 with-service --service PROTOCOL://HOST:PORT --name string --frontend integer --backend integer --is-tcp boolean
func (m *myModule) example(service *Service, name string, frontend int, backend int, isTcp bool) *Proxy  {
	return dag.
			Proxy().
			WithService(service, name, frontend, backend, isTcp)
}
@function
def example(service: dagger.Service, name: str, frontend: int, backend: int, is_tcp: bool) -> dag.Proxy:
	return (
		dag.proxy()
		.with_service(service, name, frontend, backend, is_tcp)
	)
@func()
example(service: Service, name: string, frontend: number, backend: number, isTcp: boolean): Proxy {
	return dag
		.proxy()
		.withService(service, name, frontend, backend, isTcp)
}

service() 🔗

Get the proxy Service

Return Type
Service !
Example
dagger -m github.com/kpenfound/dagger-modules/proxy@7af9af916147361951530edb976f242f51f7f70a call \
 service
func (m *myModule) example() *Service  {
	return dag.
			Proxy().
			Service()
}
@function
def example() -> dagger.Service:
	return (
		dag.proxy()
		.service()
	)
@func()
example(): Service {
	return dag
		.proxy()
		.service()
}