Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultParser = NewMetaParser(map[string]Parser{ "yaml": yaml.DefaultParser, "pb": protobuf.DefaultParser, }) )
Functions ¶
Types ¶
type MetaParser ¶
type MetaParser struct {
// contains filtered or unexported fields
}
func NewMetaParser ¶
func NewMetaParser(parsers map[string]Parser) *MetaParser
func (*MetaParser) Parse ¶
func (mp *MetaParser) Parse(r io.Reader) (*types.WorkflowSpec, error)
func (*MetaParser) ParseWith ¶
func (mp *MetaParser) ParseWith(r io.Reader, parsers ...string) (*types.WorkflowSpec, error)
func (*MetaParser) Parsers ¶
func (mp *MetaParser) Parsers() []string
func (*MetaParser) Supports ¶
func (mp *MetaParser) Supports(s string) bool
Click to show internal directories.
Click to hide internal directories.