reusefilegenerator

package
v0.0.0-...-33f46c0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCheckingFileExistence = errors.New("error checking file existence")
	ErrGeneratingFile        = errors.New("error generating file")
)

Functions

This section is empty.

Types

type FileGenerator

type FileGenerator interface {
	GenerateFile(out iotools.Out, path string, args types.KeyValueArgs) error
}

type FileReader

type FileReader interface {
	FileExists(path string) (bool, error)
	ReadFile(path string) ([]byte, error)
}

type Service

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

func NewService

func NewService(
	kind string,
	fileSystem FileReader,
	fileGenerator FileGenerator,
) (*Service, error)

func (*Service) GenerateFile

func (s *Service) GenerateFile(out iotools.Out, path string, args types.KeyValueArgs) error

Jump to

Keyboard shortcuts

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