presentation
Build a presentation directory, container or service using reveal.js with Camptocamp theme.Installation
dagger install github.com/camptocamp/daggerverse/presentation@v0.2.3Entrypoint
Return Type
Presentation Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
func (m *MyModule) Example() *dagger.Presentation {
return dag.
Presentation()
}@function
def example() -> dagger.Presentation:
return (
dag.presentation()
)@func()
example(): Presentation {
return dag
.presentation()
}Types
Presentation 🔗
Presentation
init() 🔗
Get a directory containing a newly initialized presentation
Return Type
Directory ! Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
initfunc (m *MyModule) Example() *dagger.Directory {
return dag.
Presentation().
Init()
}@function
def example() -> dagger.Directory:
return (
dag.presentation()
.init()
)@func()
example(): Directory {
return dag
.presentation()
.init()
}builder() 🔗
Presentation builder constructor
Return Type
Builder !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| directory | Directory ! | - | Directory containing presentation to build |
| npmrc | Secret ! | - | npm configuration file (used to pass GitHub registry credentials) |
Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
builder --directory DIR_PATH --npmrc env:MYSECRETfunc (m *MyModule) Example(directory *dagger.Directory, npmrc *dagger.Secret) *dagger.PresentationBuilder {
return dag.
Presentation().
Builder(directory, npmrc)
}@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dagger.PresentationBuilder:
return (
dag.presentation()
.builder(directory, npmrc)
)@func()
example(directory: Directory, npmrc: Secret): PresentationBuilder {
return dag
.presentation()
.builder(directory, npmrc)
}Builder 🔗
Presentation builder
container() 🔗
Get a container ready to build the presentation
Return Type
Container ! Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
containerfunc (m *MyModule) Example(directory *dagger.Directory, npmrc *dagger.Secret) *dagger.Container {
return dag.
Presentation().
Builder(directory, npmrc).
Container()
}@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dagger.Container:
return (
dag.presentation()
.builder(directory, npmrc)
.container()
)@func()
example(directory: Directory, npmrc: Secret): Container {
return dag
.presentation()
.builder(directory, npmrc)
.container()
}build() 🔗
Build the presentation
Return Type
BuildResult ! Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
buildfunc (m *MyModule) Example(directory *dagger.Directory, npmrc *dagger.Secret) *dagger.PresentationBuildResult {
return dag.
Presentation().
Builder(directory, npmrc).
Build()
}@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dagger.PresentationBuildResult:
return (
dag.presentation()
.builder(directory, npmrc)
.build()
)@func()
example(directory: Directory, npmrc: Secret): PresentationBuildResult {
return dag
.presentation()
.builder(directory, npmrc)
.build()
}BuildResult 🔗
Presentation build result
directory() 🔗
Get a directory containing the presentation build result
Return Type
Directory ! Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
build \
directoryfunc (m *MyModule) Example(directory *dagger.Directory, npmrc *dagger.Secret) *dagger.Directory {
return dag.
Presentation().
Builder(directory, npmrc).
Build().
Directory()
}@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dagger.Directory:
return (
dag.presentation()
.builder(directory, npmrc)
.build()
.directory()
)@func()
example(directory: Directory, npmrc: Secret): Directory {
return dag
.presentation()
.builder(directory, npmrc)
.build()
.directory()
}container() 🔗
Get a container ready to serve the presentation
Container exposes port 8080.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| platform | Scalar | - | Platform to get container for |
Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
build \
containerfunc (m *MyModule) Example(directory *dagger.Directory, npmrc *dagger.Secret) *dagger.Container {
return dag.
Presentation().
Builder(directory, npmrc).
Build().
Container()
}@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dagger.Container:
return (
dag.presentation()
.builder(directory, npmrc)
.build()
.container()
)@func()
example(directory: Directory, npmrc: Secret): Container {
return dag
.presentation()
.builder(directory, npmrc)
.build()
.container()
}server() 🔗
Get a service serving the presentation
See container() for details.
Return Type
Service ! Example
dagger -m github.com/camptocamp/daggerverse/presentation@0c630096e9f71db4dea02621b4417ca206ff578d call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
build \
serverfunc (m *MyModule) Example(directory *dagger.Directory, npmrc *dagger.Secret) *dagger.Service {
return dag.
Presentation().
Builder(directory, npmrc).
Build().
Server()
}@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dagger.Service:
return (
dag.presentation()
.builder(directory, npmrc)
.build()
.server()
)@func()
example(directory: Directory, npmrc: Secret): Service {
return dag
.presentation()
.builder(directory, npmrc)
.build()
.server()
}