file

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Info         os.FileInfo
	Unstructured unstructured.Unstructured
	Path         string
}

func ReadFiles

func ReadFiles(ctx context.Context, dir string) ([]File, error)

type PathOpts

type PathOpts struct {
	TransformDir      string
	ExportDir         string
	OutputDir         string
	IgnoredPatchesDir string
}

TODO: @shawn-hurley Add errors for these methods to validate that the correct struct values are set.

func (*PathOpts) GetIgnoredPatchesPath

func (opts *PathOpts) GetIgnoredPatchesPath(filePath string) string

func (*PathOpts) GetOutputFilePath

func (opts *PathOpts) GetOutputFilePath(filePath string) string

func (*PathOpts) GetTransformPath

func (opts *PathOpts) GetTransformPath(filePath string) string

func (*PathOpts) GetWhiteOutFilePath

func (opts *PathOpts) GetWhiteOutFilePath(filePath string) string

Jump to

Keyboard shortcuts

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