Documentation
¶
Index ¶
- type Processor
- func NewCodeProcessor(store storage.Storage, mediaType string, patterns []string) Processor
- func NewLicenseProcessor(store storage.Storage, mediaType string, patterns []string) Processor
- func NewModelConfigProcessor(store storage.Storage, mediaType string, patterns []string) Processor
- func NewModelProcessor(store storage.Storage, mediaType string, patterns []string) Processor
- func NewReadmeProcessor(store storage.Storage, mediaType string, patterns []string) Processor
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 ¶
NewCodeProcessor creates a new code processor.
func NewLicenseProcessor ¶
NewLicenseProcessor creates a new LICENSE processor.
func NewModelConfigProcessor ¶
NewModelConfigProcessor creates a new model config processor.
func NewModelProcessor ¶
NewModelProcessor creates a new model processor.
Click to show internal directories.
Click to hide internal directories.