Documentation
¶
Index ¶
- type ProcessOption
- type Processor
- func NewCodeProcessor(store storage.Storage, mediaType string, patterns []string) Processor
- func NewDocProcessor(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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessOption ¶
type ProcessOption func(*processOptions)
func WithConcurrency ¶
func WithConcurrency(concurrency int) ProcessOption
func WithProgressTracker ¶
func WithProgressTracker(tracker *pb.ProgressBar) ProcessOption
type Processor ¶
type Processor interface { // Name returns the name of the processor. Name() string // Process processes the file. Process(ctx context.Context, builder build.Builder, workDir string, opts ...ProcessOption) ([]ocispec.Descriptor, error) }
Processor is the interface to recognize and process the identified file.
func NewCodeProcessor ¶
NewCodeProcessor creates a new code processor.
func NewDocProcessor ¶
NewDocProcessor creates a new doc processor.
func NewModelConfigProcessor ¶
NewModelConfigProcessor creates a new model config processor.
Click to show internal directories.
Click to hide internal directories.