Dagger
Search

presentation

Build a presentation directory, container or service using reveal.js with Camptocamp theme.

Installation

dagger install github.com/camptocamp/daggerverse/presentation@v0.1.0

Entrypoint

Return Type
Presentation
Example
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@85a33b1b52086ef67cae8211c9a12ebf6444b45d 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
NameTypeDefault ValueDescription
directoryDirectory !-Directory containing presentation to build
npmrcSecret !-npm configuration file (used to pass GitHub registry credentials)
Example
dagger -m github.com/camptocamp/daggerverse/presentation@85a33b1b52086ef67cae8211c9a12ebf6444b45d call \
 builder --directory DIR_PATH --npmrc env:MYSECRET \
 build \
 container
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@85a33b1b52086ef67cae8211c9a12ebf6444b45d 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@85a33b1b52086ef67cae8211c9a12ebf6444b45d call \
 builder --directory DIR_PATH --npmrc env:MYSECRET \
 build \
 container
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@85a33b1b52086ef67cae8211c9a12ebf6444b45d 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 !
Example
dagger -m github.com/camptocamp/daggerverse/presentation@85a33b1b52086ef67cae8211c9a12ebf6444b45d 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@85a33b1b52086ef67cae8211c9a12ebf6444b45d 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()
}