generic

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericScanner

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

GenericScanner is a scanner that scans a file as is without processing it

func NewJsonScanner

func NewJsonScanner(opts ...options.ScannerOption) *GenericScanner

func NewScanner

func NewScanner(name string, source types.Source, parser configParser, opts ...options.ScannerOption) *GenericScanner

func NewTomlScanner

func NewTomlScanner(opts ...options.ScannerOption) *GenericScanner

func NewYamlScanner

func NewYamlScanner(opts ...options.ScannerOption) *GenericScanner

func (*GenericScanner) Name

func (s *GenericScanner) Name() string

func (*GenericScanner) ScanFS

func (s *GenericScanner) ScanFS(ctx context.Context, fsys fs.FS, dir string) (scan.Results, error)

type ParseFunc

type ParseFunc func(ctx context.Context, r io.Reader, path string) (any, error)

func (ParseFunc) Parse

func (f ParseFunc) Parse(ctx context.Context, r io.Reader, path string) (any, error)

Jump to

Keyboard shortcuts

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