export

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

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

func NewData

func NewData(origin service.Ref, metadataGetter metadataGetterFunc, resources []service.ResolvedResource, checksumVerification checksum.VerificationProfile) *Data

func (*Data) Metadata

func (d *Data) Metadata(ctx context.Context) (service.RefMetadata, error)

func (*Data) Origin

func (d *Data) Origin() service.Ref

func (*Data) Resources

func (d *Data) Resources() []service.ResolvedResource

type Exporter

type Exporter interface {
	Export(ctx context.Context, w io.Writer, data *Data) error
}

type GoTemplateExporter

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

func (*GoTemplateExporter) Export

func (e *GoTemplateExporter) Export(ctx context.Context, w io.Writer, data *Data) error

func (*GoTemplateExporter) ParseTemplate

func (e *GoTemplateExporter) ParseTemplate(text string) error

type JSONExporter

type JSONExporter struct{}

func (JSONExporter) Export

func (e JSONExporter) Export(ctx context.Context, w io.Writer, data *Data) error

type JSONPathExporter

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

func (*JSONPathExporter) Export

func (e *JSONPathExporter) Export(ctx context.Context, w io.Writer, data *Data) error

func (*JSONPathExporter) ParseTemplate

func (e *JSONPathExporter) ParseTemplate(text string) error

type PlainExporter

type PlainExporter struct{}

func (PlainExporter) Export

func (e PlainExporter) Export(ctx context.Context, w io.Writer, data *Data) error

type TemplatedExporter

type TemplatedExporter interface {
	ParseTemplate(text string) error
}

type YAMLExporter

type YAMLExporter struct{}

func (YAMLExporter) Export

func (e YAMLExporter) Export(ctx context.Context, w io.Writer, data *Data) error

Jump to

Keyboard shortcuts

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