crd-ref-docs
This module has been generated via dagger init and serves as a reference tobasic 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
Name | Type | Default Value | Description |
---|---|---|---|
image | String | "golang:1.24.2-alpine" | Go image to use. renovate image: datasource=docker depName=golang versioning=docker |
version | String | "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
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | The directory of the sources |
sourcePath | String ! | - | The path of the CRD files, relative to the source directory. |
configFile | String | - | The path of the config file, relative to the source directory. |
templatesDir | String | - | The path of the template director, relative to the source directory. |
renderer | Enum | "asciidoc" | The renderer for the generated documentation. |
outputMode | Enum | "single" | The output mode for the generated documentation. |
logLevel | String | "INFO" | Log level. |
maxDepth | Integer | 10 | Maximum recursion level for type discovery. |
outputPath | String | - | 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)
}