presentation
Build a presentation directory, container or service using reveal.js with Camptocamp theme.Installation
dagger install github.com/camptocamp/daggerverse/presentation@v0.2.2
Entrypoint
Return Type
Presentation
Example
dagger -m github.com/camptocamp/daggerverse/presentation@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
func (m *myModule) example() *Presentation {
return dag.
Presentation()
}
@function
def example() -> dag.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@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
init
func (m *myModule) example() *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@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
builder --directory DIR_PATH --npmrc env:MYSECRET
func (m *myModule) example(directory *Directory, npmrc *Secret) *PresentationBuilder {
return dag.
Presentation().
Builder(directory, npmrc)
}
@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dag.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@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
container
func (m *myModule) example(directory *Directory, npmrc *Secret) *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@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
build
func (m *myModule) example(directory *Directory, npmrc *Secret) *PresentationBuildResult {
return dag.
Presentation().
Builder(directory, npmrc).
Build()
}
@function
def example(directory: dagger.Directory, npmrc: dagger.Secret) -> dag.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@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
build \
directory
func (m *myModule) example(directory *Directory, npmrc *Secret) *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@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
build \
container
func (m *myModule) example(directory *Directory, npmrc *Secret) *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@747a78b0c33e2c8ce64335ed3a7169a6ed56a8a4 call \
builder --directory DIR_PATH --npmrc env:MYSECRET \
build \
server
func (m *myModule) example(directory *Directory, npmrc *Secret) *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()
}