Dagger
Search

caddy

No long description provided.

Installation

dagger install github.com/rajatjindal/daggerverse/proxy@e91e9f64bba9b020182b7df61008f3b2280e976b

Entrypoint

Return Type
Caddy !
Example
dagger -m github.com/rajatjindal/daggerverse/proxy@e91e9f64bba9b020182b7df61008f3b2280e976b call \
func (m *myModule) example() *Caddy  {
	return dag.
			Caddy()
}
@function
def example() -> dag.Caddy:
	return (
		dag.caddy()
	)
@func()
example(): Caddy {
	return dag
		.caddy()
}

Types

Caddy 🔗

services() 🔗

Return Type
[ServiceConfig ! ] !
Example
dagger -m github.com/rajatjindal/daggerverse/proxy@e91e9f64bba9b020182b7df61008f3b2280e976b call \
 services
func (m *myModule) example() []*CaddyServiceConfig  {
	return dag.
			Caddy().
			Services()
}
@function
def example() -> List[dag.CaddyServiceConfig]:
	return (
		dag.caddy()
		.services()
	)
@func()
example(): CaddyServiceConfig[] {
	return dag
		.caddy()
		.services()
}

withService() 🔗

Return Type
Caddy !
Arguments
NameTypeDefault ValueDescription
upstreamServiceService !-No description provided
lbDomainNameString !-No description provided
upstreamNameString !-No description provided
upstreamPortInteger !-No description provided
Example
dagger -m github.com/rajatjindal/daggerverse/proxy@e91e9f64bba9b020182b7df61008f3b2280e976b call \
 with-service --upstream-service PROTOCOL://HOST:PORT --lb-domain-name string --upstream-name string --upstream-port integer
func (m *myModule) example(upstreamService *Service, lbDomainName string, upstreamName string, upstreamPort int) *Caddy  {
	return dag.
			Caddy().
			WithService(upstreamService, lbDomainName, upstreamName, upstreamPort)
}
@function
def example(upstream_service: dagger.Service, lb_domain_name: str, upstream_name: str, upstream_port: int) -> dag.Caddy:
	return (
		dag.caddy()
		.with_service(upstream_service, lb_domain_name, upstream_name, upstream_port)
	)
@func()
example(upstreamService: Service, lbDomainName: string, upstreamName: string, upstreamPort: number): Caddy {
	return dag
		.caddy()
		.withService(upstreamService, lbDomainName, upstreamName, upstreamPort)
}

getCaddyFile() 🔗

Return Type
String !
Example
dagger -m github.com/rajatjindal/daggerverse/proxy@e91e9f64bba9b020182b7df61008f3b2280e976b call \
 get-caddy-file
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			Caddy().
			GetCaddyFile(ctx)
}
@function
async def example() -> str:
	return await (
		dag.caddy()
		.get_caddy_file()
	)
@func()
async example(): Promise<string> {
	return dag
		.caddy()
		.getCaddyFile()
}

service() 🔗

Return Type
Service !
Example
dagger -m github.com/rajatjindal/daggerverse/proxy@e91e9f64bba9b020182b7df61008f3b2280e976b call \
 service
func (m *myModule) example() *Service  {
	return dag.
			Caddy().
			Service()
}
@function
def example() -> dagger.Service:
	return (
		dag.caddy()
		.service()
	)
@func()
example(): Service {
	return dag
		.caddy()
		.service()
}

ServiceConfig 🔗

lbdomainName() 🔗

Return Type
String !
Example
Function CaddyServiceConfig.lbdomainName is not accessible from the caddy module
Function CaddyServiceConfig.lbdomainName is not accessible from the caddy module
Function CaddyServiceConfig.lbdomainName is not accessible from the caddy module
Function CaddyServiceConfig.lbdomainName is not accessible from the caddy module

upstreamName() 🔗

Return Type
String !
Example
Function CaddyServiceConfig.upstreamName is not accessible from the caddy module
Function CaddyServiceConfig.upstreamName is not accessible from the caddy module
Function CaddyServiceConfig.upstreamName is not accessible from the caddy module
Function CaddyServiceConfig.upstreamName is not accessible from the caddy module

upstreamPort() 🔗

Return Type
Integer !
Example
Function CaddyServiceConfig.upstreamPort is not accessible from the caddy module
Function CaddyServiceConfig.upstreamPort is not accessible from the caddy module
Function CaddyServiceConfig.upstreamPort is not accessible from the caddy module
Function CaddyServiceConfig.upstreamPort is not accessible from the caddy module

upstreamSvc() 🔗

Return Type
Service !
Example
Function CaddyServiceConfig.upstreamSvc is not accessible from the caddy module
Function CaddyServiceConfig.upstreamSvc is not accessible from the caddy module
Function CaddyServiceConfig.upstreamSvc is not accessible from the caddy module
Function CaddyServiceConfig.upstreamSvc is not accessible from the caddy module