transform

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseTransformer

type BaseTransformer struct {
	// contains filtered or unexported fields
}

type TransformationFormat

type TransformationFormat string
const (
	FormatLatex    TransformationFormat = "latex"
	FormatMarkdown TransformationFormat = "markdown"
	FormatHTML     TransformationFormat = "html"
	FormatPDF      TransformationFormat = "pdf"
)

type Transformer

type Transformer interface {
	Transform(ctx context.Context, input *oscal.Catalog) ([]byte, error)
	ValidateOutput(ctx context.Context, output []byte) error
}

type TransformerConfig

type TransformerConfig struct {
	Format     TransformationFormat
	Templates  map[string]string
	Metadata   map[string]interface{}
	StyleSheet string
}

Jump to

Keyboard shortcuts

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