exporter

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	TarBuffer *bytes.Buffer
	TarWriter *tar.Writer
	// contains filtered or unexported fields
}

Exporter implements the functions used to export YAML files

func NewExporter

func NewExporter() *Exporter

NewExporter returns an initialized loader

func (*Exporter) AddToTarball

func (e *Exporter) AddToTarball(filename string, data []byte) error

func (*Exporter) CloseTarball

func (e *Exporter) CloseTarball() ([]byte, error)

func (*Exporter) ExportApplication

func (e *Exporter) ExportApplication(app *catalogv3.Application) ([]byte, map[string][]byte, error)

func (*Exporter) ExportArtifact

func (e *Exporter) ExportArtifact(art *catalogv3.Artifact) ([]byte, error)

func (*Exporter) ExportDeploymentPackage

func (e *Exporter) ExportDeploymentPackage(pkg *catalogv3.DeploymentPackage) ([]byte, error)

func (*Exporter) ExportRegistry

func (e *Exporter) ExportRegistry(reg *catalogv3.Registry) ([]byte, error)

func (*Exporter) GetOutput

func (e *Exporter) GetOutput() []string

GetOutput returns the output generated by the command

func (*Exporter) LogChange

func (e *Exporter) LogChange(format string, a ...any)

LogChange prints the given formatted output to stdout if the verbose flag is enabled

func (*Exporter) NewTarball

func (e *Exporter) NewTarball()

Jump to

Keyboard shortcuts

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