Dagger
Search

hugo

Get Hugo static site generator.

Installation

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

Entrypoint

Return Type
Hugo !
Arguments
NameTypeDescription
versionString !Hugo version to get
extendedBoolean Hugo edition to get
platformScalar Platform to get Hugo for
Example
func (m *myModule) example(version string) *Hugo  {
	return dag.
			Hugo(version)
}
@function
def example(version: str, ) -> dag.Hugo:
	return (
		dag.hugo(version)
	)
@func()
example(version: string, ): Hugo {
	return dag
		.hugo(version)
}

Types

Hugo 🔗

Hugo

binary() 🔗

Get Hugo executable binary

Return Type
File !
Example
dagger -m github.com/camptocamp/daggerverse/hugo@ac3e4971ee21afdf7a200582a47d759d0911729c call \
 --version string binary
func (m *myModule) example(version string) *File  {
	return dag.
			Hugo(version).
			Binary()
}
@function
def example(version: str, ) -> dagger.File:
	return (
		dag.hugo(version)
		.binary()
	)
@func()
example(version: string, ): File {
	return dag
		.hugo(version)
		.binary()
}

overlay() 🔗

Get a root filesystem overlay with Hugo

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
prefixString -Filesystem prefix under which to install Hugo
Example
dagger -m github.com/camptocamp/daggerverse/hugo@ac3e4971ee21afdf7a200582a47d759d0911729c call \
 --version string overlay
func (m *myModule) example(version string) *Directory  {
	return dag.
			Hugo(version).
			Overlay()
}
@function
def example(version: str, ) -> dagger.Directory:
	return (
		dag.hugo(version)
		.overlay()
	)
@func()
example(version: string, ): Directory {
	return dag
		.hugo(version)
		.overlay()
}

installation() 🔗

Install Hugo in a container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Container in which to install Hugo
Example
dagger -m github.com/camptocamp/daggerverse/hugo@ac3e4971ee21afdf7a200582a47d759d0911729c call \
 --version string installation --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container  {
	return dag.
			Hugo(version).
			Installation(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
	return (
		dag.hugo(version)
		.installation(container)
	)
@func()
example(version: string, container: Container): Container {
	return dag
		.hugo(version)
		.installation(container)
}

container() 🔗

Get a Hugo container from a base container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
containerContainer !-Base container
Example
dagger -m github.com/camptocamp/daggerverse/hugo@ac3e4971ee21afdf7a200582a47d759d0911729c call \
 --version string container --container IMAGE:TAG
func (m *myModule) example(version string, container *Container) *Container  {
	return dag.
			Hugo(version).
			Container(container)
}
@function
def example(version: str, container: dagger.Container) -> dagger.Container:
	return (
		dag.hugo(version)
		.container(container)
	)
@func()
example(version: string, container: Container): Container {
	return dag
		.hugo(version)
		.container(container)
}

redhatContainer() 🔗

Get a Red Hat Universal Base Image container with Hugo

Return Type
Container !
Example
dagger -m github.com/camptocamp/daggerverse/hugo@ac3e4971ee21afdf7a200582a47d759d0911729c call \
 --version string redhat-container
func (m *myModule) example(version string) *Container  {
	return dag.
			Hugo(version).
			RedhatContainer()
}
@function
def example(version: str, ) -> dagger.Container:
	return (
		dag.hugo(version)
		.redhat_container()
	)
@func()
example(version: string, ): Container {
	return dag
		.hugo(version)
		.redhatContainer()
}

redhatMinimalContainer() 🔗

Get a Red Hat Minimal Universal Base Image container with Hugo

Return Type
Container !
Example
dagger -m github.com/camptocamp/daggerverse/hugo@ac3e4971ee21afdf7a200582a47d759d0911729c call \
 --version string redhat-minimal-container
func (m *myModule) example(version string) *Container  {
	return dag.
			Hugo(version).
			RedhatMinimalContainer()
}
@function
def example(version: str, ) -> dagger.Container:
	return (
		dag.hugo(version)
		.redhat_minimal_container()
	)
@func()
example(version: string, ): Container {
	return dag
		.hugo(version)
		.redhatMinimalContainer()
}

redhatMicroContainer() 🔗

Get a Red Hat Micro Universal Base Image container with Hugo

Hugo extended edition and Hugo modules cannot be used.

Return Type
Container !
Example
dagger -m github.com/camptocamp/daggerverse/hugo@ac3e4971ee21afdf7a200582a47d759d0911729c call \
 --version string redhat-micro-container
func (m *myModule) example(version string) *Container  {
	return dag.
			Hugo(version).
			RedhatMicroContainer()
}
@function
def example(version: str, ) -> dagger.Container:
	return (
		dag.hugo(version)
		.redhat_micro_container()
	)
@func()
example(version: string, ): Container {
	return dag
		.hugo(version)
		.redhatMicroContainer()
}