formats

package
v1.42.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 17

Documentation

Overview

The formats package is an API compatibility wrapper which merely calls into github.com/containers/common/pkg/formats. Newer code should instead call that package directly.

Index

Constants

View Source
const (
	// JSONString const to save on duplicate variable names
	JSONString = formats.JSONString
	// IDString const to save on duplicates for Go templates
	IDString = formats.IDString
)

Variables

This section is empty.

Functions

func NewParse

func NewParse(tag, format string) (*template.Template, error)

NewParse creates a new tagged template with the basic functions and parses the given format.

func Parse

func Parse(format string) (*template.Template, error)

Parse creates a new anonymous template with the basic functions and parses the given format.

Types

type JSONStruct

type JSONStruct = formats.JSONStruct

JSONStruct for JSON output

type JSONStructArray

type JSONStructArray = formats.JSONStructArray

JSONStructArray for JSON output

type StdoutTemplate

type StdoutTemplate = formats.StdoutTemplate

StdoutTemplate for Go template output

type StdoutTemplateArray

type StdoutTemplateArray = formats.StdoutTemplateArray

StdoutTemplateArray for Go template output

type Writer

type Writer = formats.Writer

Writer interface for outputs

type YAMLStruct

type YAMLStruct = formats.YAMLStruct

YAMLStruct for YAML output

Jump to

Keyboard shortcuts

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