Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "ovhapi"
Name of executor
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct {
Endpoint string `json:"endpoint" yaml:"endpoint"`
ApplicationKey string `json:"applicationKey" yaml:"applicationKey"`
ApplicationSecret string `json:"applicationSecret" yaml:"applicationSecret"`
ConsumerKey string `json:"consumerKey" yaml:"consumerKey"`
ClientID string `json:"clientID" yaml:"clientID"`
ClientSecret string `json:"clientSecret" yaml:"clientSecret"`
NoAuth *bool `json:"noAuth" yaml:"noAuth"`
Headers Headers `json:"headers" yaml:"headers"`
Resolve []string `json:"resolve" yaml:"resolve"`
Proxy string `json:"proxy" yaml:"proxy"`
TLSRootCA string `json:"tlsRootCA" yaml:"tlsRootCA"`
Method string `json:"method" yaml:"method"`
Path string `json:"path" yaml:"path"`
Body string `json:"body" yaml:"body"`
BodyFile string `json:"bodyFile" yaml:"bodyFile"`
}
Executor struct. Json and yaml descriptor are used for json output
func (Executor) GetDefaultAssertions ¶
func (Executor) GetDefaultAssertions() *venom.StepAssertions
GetDefaultAssertions return default assertions for this executor
func (Executor) ZeroValueResult ¶ added in v0.17.0
func (Executor) ZeroValueResult() interface{}
ZeroValueResult return an empty implementation of this executor result
type Result ¶
type Result struct {
TimeSeconds float64 `json:"timeseconds,omitempty" yaml:"timeseconds,omitempty"`
StatusCode int `json:"statuscode,omitempty" yaml:"statuscode,omitempty"`
Body string `json:"body,omitempty" yaml:"body,omitempty"`
BodyJSON interface{} `json:"bodyjson,omitempty" yaml:"bodyjson,omitempty"`
Err string `json:"err,omitempty" yaml:"err,omitempty"`
Headers Headers `json:"headers" yaml:"headers"`
}
Result represents a step result. Json and yaml descriptor are used for json output
Click to show internal directories.
Click to hide internal directories.