destinations

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleOutput

type ConsoleOutput struct {
}

func (*ConsoleOutput) ExecuteFile

func (c *ConsoleOutput) ExecuteFile(path string, content []byte) error

ExecuteFile implements Output.

func (*ConsoleOutput) Finalize

func (c *ConsoleOutput) Finalize() error

Finalize implements Output.

func (*ConsoleOutput) Init

func (c *ConsoleOutput) Init() error

Init implements Output.

type FileOutput

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

func (*FileOutput) ExecuteFile

func (fo *FileOutput) ExecuteFile(path string, content []byte) error

ExecuteFile implements Output.

func (*FileOutput) Finalize

func (fo *FileOutput) Finalize() error

Finalize implements Output.

func (*FileOutput) Init

func (fo *FileOutput) Init() error

Init implements Output.

type GitOutput

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

func (*GitOutput) ExecuteFile

func (g *GitOutput) ExecuteFile(path string, content []byte) error

ExecuteFile implements Output.

func (*GitOutput) Finalize

func (g *GitOutput) Finalize() error

Finalize implements Output.

func (*GitOutput) Init

func (g *GitOutput) Init() error

Init implements Output.

type Output

type Output interface {
	// Initialize configured file system preparing it to accept files to write
	Init() error

	// Takes output content and writes it to destination at path
	ExecuteFile(path string, content []byte) error

	// Finalizes filesystem and cleans up any necessary resources
	Finalize() error
}

func NewOutput

func NewOutput(conf config.Path) (Output, error)

Jump to

Keyboard shortcuts

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