pkgio

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IgnoreFileMatch = []string{".kformignore"}
View Source
var JSONMatch = []string{"*.json"}
View Source
var MarkdownMatch = []string{"*.md"}
View Source
var MatchAll = []string{"*"}
View Source
var PkgFileMatch = []string{"KformFile.yaml"}
View Source
var ReadmeFileMatch = []string{"README.md"}
View Source
var YAMLMatch = []string{"*.yaml", "*.yml"}

Functions

func NewData

func NewData() store.Storer[[]byte]

Types

type Pipeline

type Pipeline[T1 any] struct {
	Inputs     []Reader[T1]  `json:"inputs,omitempty" yaml:"inputs,omitempty"`
	Processors []Process[T1] `json:"processors,omitempty" yaml:"processors,omitempty"`
	Outputs    []Writer[T1]  `json:"outputs,omitempty" yaml:"outputs,omitempty"`
}

func (Pipeline[T1]) Execute

func (r Pipeline[T1]) Execute(ctx context.Context) error

type PkgReader

type PkgReader struct {
	PathExists     bool
	Fsys           fsys.FS
	MatchFilesGlob []string
	IgnoreRules    *ignore.Rules
	SkipDir        bool
	Checksum       bool
}

func (*PkgReader) Read

func (r *PkgReader) Read(ctx context.Context, data store.Storer[[]byte]) (store.Storer[[]byte], error)

func (*PkgReader) Write

func (r *PkgReader) Write(store.Storer[[]byte]) error

type Process

type Process[T1 any] interface {
	Process(context.Context, store.Storer[T1]) (store.Storer[T1], error)
}

type Reader

type Reader[T1 any] interface {
	Read(context.Context, store.Storer[T1]) (store.Storer[T1], error)
}

type Writer

type Writer[T1 any] interface {
	Write(context.Context, store.Storer[T1]) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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