Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactParser ¶
type ArtifactParser interface { Parse(ctx context.Context, reader io.Reader) (*proto.UnifiedAST, error) Validate(ctx context.Context, ast *proto.UnifiedAST) error GetSupportedFormats() []string }
ArtifactParser defines the interface for parsing different file formats
type MarkdownParser ¶
type MarkdownParser struct {
// contains filtered or unexported fields
}
type ParserFactory ¶
type ParserFactory struct {
// contains filtered or unexported fields
}
func NewParserFactory ¶
func NewParserFactory(metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer) *ParserFactory
func (*ParserFactory) GetParser ¶
func (pf *ParserFactory) GetParser(format string) (ArtifactParser, error)
func (*ParserFactory) RegisterParser ¶
func (pf *ParserFactory) RegisterParser( format string, parser Parser, ) error
type ProtoParser ¶
type ProtoParser struct {
// contains filtered or unexported fields
}
func (*ProtoParser) Parse ¶
func (pp *ProtoParser) Parse(ctx context.Context, reader io.Reader) (*proto.UnifiedAST, error)
type YAMLParser ¶
type YAMLParser struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.