processor

package
v0.0.1-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	// Name returns the name of the processor.
	Name() string
	// Process processes the file.
	Process(ctx context.Context, workDir, repo string) ([]ocispec.Descriptor, error)
}

Processor is the interface to recognize and process the identified file.

func NewCodeProcessor

func NewCodeProcessor(store storage.Storage, mediaType string, patterns []string) Processor

NewCodeProcessor creates a new code processor.

func NewLicenseProcessor

func NewLicenseProcessor(store storage.Storage, mediaType string, patterns []string) Processor

NewLicenseProcessor creates a new LICENSE processor.

func NewModelConfigProcessor

func NewModelConfigProcessor(store storage.Storage, mediaType string, patterns []string) Processor

NewModelConfigProcessor creates a new model config processor.

func NewModelProcessor

func NewModelProcessor(store storage.Storage, mediaType string, patterns []string) Processor

NewModelProcessor creates a new model processor.

func NewReadmeProcessor

func NewReadmeProcessor(store storage.Storage, mediaType string, patterns []string) Processor

NewReadmeProcessor creates a new README processor.

Jump to

Keyboard shortcuts

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