hugo
Get Hugo static site generator.Installation
dagger install github.com/camptocamp/daggerverse/hugo@v0.1.1
Entrypoint
Return Type
Hugo !
Arguments
Name | Type | Description |
---|---|---|
version | String ! | Hugo version to get |
extended | Boolean | Hugo edition to get |
platform | Scalar | Platform to get Hugo for |
Example
dagger -m github.com/camptocamp/daggerverse/hugo@39853a7de21c995eaf0973912541553ad60b0c62 call \
--version string
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@39853a7de21c995eaf0973912541553ad60b0c62 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
Name | Type | Default Value | Description |
---|---|---|---|
prefix | String | - | Filesystem prefix under which to install Hugo |
Example
dagger -m github.com/camptocamp/daggerverse/hugo@39853a7de21c995eaf0973912541553ad60b0c62 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install Hugo |
Example
dagger -m github.com/camptocamp/daggerverse/hugo@39853a7de21c995eaf0973912541553ad60b0c62 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
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Base container |
Example
dagger -m github.com/camptocamp/daggerverse/hugo@39853a7de21c995eaf0973912541553ad60b0c62 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@39853a7de21c995eaf0973912541553ad60b0c62 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@39853a7de21c995eaf0973912541553ad60b0c62 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@39853a7de21c995eaf0973912541553ad60b0c62 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()
}