caddy
No long description provided.
Installation
dagger install github.com/rajatjindal/daggerverse/proxy@aafb762f5ea6c1dfddb125c09fc4182c1daa5428Entrypoint
Return Type
Caddy ! Example
dagger -m github.com/rajatjindal/daggerverse/proxy@aafb762f5ea6c1dfddb125c09fc4182c1daa5428 call \
func (m *MyModule) Example() *dagger.Caddy {
return dag.
Caddy()
}@function
def example() -> dagger.Caddy:
return (
dag.caddy()
)@func()
example(): Caddy {
return dag
.caddy()
}Types
Caddy 🔗
services() 🔗
Return Type
[ServiceConfig ! ] ! Example
dagger -m github.com/rajatjindal/daggerverse/proxy@aafb762f5ea6c1dfddb125c09fc4182c1daa5428 call \
servicesfunc (m *MyModule) Example() []*dagger.CaddyServiceConfig {
return dag.
Caddy().
Services()
}@function
def example() -> List[dagger.CaddyServiceConfig]:
return (
dag.caddy()
.services()
)@func()
example(): CaddyServiceConfig[] {
return dag
.caddy()
.services()
}withService() 🔗
Return Type
Caddy !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| upstreamService | Service ! | - | No description provided |
| lbDomainName | String ! | - | No description provided |
| upstreamName | String ! | - | No description provided |
| upstreamPort | Integer ! | - | No description provided |
Example
dagger -m github.com/rajatjindal/daggerverse/proxy@aafb762f5ea6c1dfddb125c09fc4182c1daa5428 call \
with-service --upstream-service PROTOCOL://HOST:PORT --lb-domain-name string --upstream-name string --upstream-port integerfunc (m *MyModule) Example(upstreamService *dagger.Service, lbDomainName string, upstreamName string, upstreamPort int) *dagger.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) -> dagger.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@aafb762f5ea6c1dfddb125c09fc4182c1daa5428 call \
get-caddy-filefunc (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()
}container() 🔗
Return Type
Container ! Example
dagger -m github.com/rajatjindal/daggerverse/proxy@aafb762f5ea6c1dfddb125c09fc4182c1daa5428 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Caddy().
Container()
}@function
def example() -> dagger.Container:
return (
dag.caddy()
.container()
)@func()
example(): Container {
return dag
.caddy()
.container()
}serve() 🔗
Return Type
Service ! Example
dagger -m github.com/rajatjindal/daggerverse/proxy@aafb762f5ea6c1dfddb125c09fc4182c1daa5428 call \
servefunc (m *MyModule) Example() *dagger.Service {
return dag.
Caddy().
Serve()
}@function
def example() -> dagger.Service:
return (
dag.caddy()
.serve()
)@func()
example(): Service {
return dag
.caddy()
.serve()
}ServiceConfig 🔗
lbdomainName() 🔗
Return Type
String ! Example
Function CaddyServiceConfig.lbdomainName is not accessible from the caddy moduleFunction CaddyServiceConfig.lbdomainName is not accessible from the caddy moduleFunction CaddyServiceConfig.lbdomainName is not accessible from the caddy moduleFunction CaddyServiceConfig.lbdomainName is not accessible from the caddy moduleupstreamName() 🔗
Return Type
String ! Example
Function CaddyServiceConfig.upstreamName is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamName is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamName is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamName is not accessible from the caddy moduleupstreamPort() 🔗
Return Type
Integer ! Example
Function CaddyServiceConfig.upstreamPort is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamPort is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamPort is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamPort is not accessible from the caddy moduleupstreamSvc() 🔗
Return Type
Service ! Example
Function CaddyServiceConfig.upstreamSvc is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamSvc is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamSvc is not accessible from the caddy moduleFunction CaddyServiceConfig.upstreamSvc is not accessible from the caddy module