Dagger
Search

crd-ref-docs

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/fcanovai/daggerverse/crd-ref-docs@8f89e951b76760d4f16e6991a4a47112de868ddd

Entrypoint

Return Type
CrdRefDocs !
Arguments
NameTypeDefault ValueDescription
imageString "golang:1.24.2-alpine"Go image to use. renovate image: datasource=docker depName=golang versioning=docker
versionString "master"CrdRefDocs version to use.
Example
dagger -m github.com/fcanovai/daggerverse/crd-ref-docs@8f89e951b76760d4f16e6991a4a47112de868ddd call \
func (m *myModule) example() *dagger.CrdRefDocs  {
	return dag.
			CrdRefDocs()
}
@function
def example() -> dagger.CrdRefDocs:
	return (
		dag.crd_ref_docs()
	)
@func()
example(): CrdRefDocs {
	return dag
		.crdRefDocs()
}

Types

CrdRefDocs 🔗

generate() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-The directory of the sources
sourcePathString !-The path of the CRD files, relative to the source directory.
configFileString -The path of the config file, relative to the source directory.
templatesDirString -The path of the template director, relative to the source directory.
rendererEnum "asciidoc"The renderer for the generated documentation.
outputModeEnum "single"The output mode for the generated documentation.
logLevelString "INFO"Log level.
maxDepthInteger 10Maximum recursion level for type discovery.
outputPathString -Output path for the generated documentation.
Example
dagger -m github.com/fcanovai/daggerverse/crd-ref-docs@8f89e951b76760d4f16e6991a4a47112de868ddd call \
 generate --src DIR_PATH --source-path string
func (m *myModule) example(src *dagger.Directory, sourcePath string) *dagger.Container  {
	return dag.
			CrdRefDocs().
			Generate(src, sourcePath)
}
@function
def example(src: dagger.Directory, source_path: str) -> dagger.Container:
	return (
		dag.crd_ref_docs()
		.generate(src, source_path)
	)
@func()
example(src: Directory, sourcePath: string): Container {
	return dag
		.crdRefDocs()
		.generate(src, sourcePath)
}