schemamd

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package schemamd provides a function to render a Markdown formatted Schema definition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderAction

func RenderAction(schema *component.PipelinePluginActionSchema, w io.Writer) error

RenderAction renders the markdown for an action schema.

func RenderPlugin

func RenderPlugin(schema *schema.PluginSchema, w io.Writer) error

RenderPlugin writes a Markdown formatted Schema definition to the specified writer. A Schema contains a Version and the root Block, for example:

func WriteAttributeDescription

func WriteAttributeDescription(w io.Writer, att *component.SchemaAttribute, includeRW bool) error

WriteAttributeDescription writes the description of an attribute

func WriteBlockTypeDescription

func WriteBlockTypeDescription(w io.Writer, block *component.SchemaBlockSpec) error

WriteBlockTypeDescription writes the description of a block spec field

func WriteType

func WriteType(w io.Writer, ty cty.Type) error

WriteType writes a human-readable description of the given cty type

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL