Documentation
¶
Index ¶
- func ParseStepResult(step *config2.Step, body string) (map[string]interface{}, error)
- type OutputParser
- func (p *OutputParser) SliceByCss(selector string) ([]string, error)
- func (p *OutputParser) SliceByJson(path string) ([]string, error)
- func (p *OutputParser) ValueByCss(selector string) (string, error)
- func (p *OutputParser) ValueByCssWithRegex(selector string, regex string) (string, error)
- func (p *OutputParser) ValueByJson(path string) (string, error)
- func (p *OutputParser) ValueByJsonWithRegex(path string, regex string) (string, error)
- func (p *OutputParser) ValueByRegex(regex string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OutputParser ¶
type OutputParser struct {
Body string
// contains filtered or unexported fields
}
func NewOutputParser ¶
func NewOutputParser(body string) *OutputParser
func (*OutputParser) SliceByCss ¶
func (p *OutputParser) SliceByCss(selector string) ([]string, error)
func (*OutputParser) SliceByJson ¶
func (p *OutputParser) SliceByJson(path string) ([]string, error)
func (*OutputParser) ValueByCss ¶
func (p *OutputParser) ValueByCss(selector string) (string, error)
func (*OutputParser) ValueByCssWithRegex ¶
func (p *OutputParser) ValueByCssWithRegex(selector string, regex string) (string, error)
func (*OutputParser) ValueByJson ¶
func (p *OutputParser) ValueByJson(path string) (string, error)
func (*OutputParser) ValueByJsonWithRegex ¶
func (p *OutputParser) ValueByJsonWithRegex(path string, regex string) (string, error)
func (*OutputParser) ValueByRegex ¶
func (p *OutputParser) ValueByRegex(regex string) (string, error)
Click to show internal directories.
Click to hide internal directories.