Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseExecInfo ¶
type BaseExecInfo struct {
// contains filtered or unexported fields
}
type Ctrl ¶
type DuplicateElement ¶
type Execution ¶
type Execution struct {
Name string `hcl:"name,label"`
Type string `hcl:"type,label"`
Skip bool `hcl:"skip,optional"`
SkipReason string `hcl:"skip_reason,optional"`
Overrides []Override `hcl:"override,block"`
Vibrate []Vibration `hcl:"vibrate,block"`
Env map[string]string `hcl:"env,optional"`
Dir string `hcl:"dir,optional"`
Path string `hcl:"path,attr"`
Args []string `hcl:"args,optional"`
}
type ExecutionState ¶
type ExecutionState int
const ( ExecutionStateBeforeRun ExecutionState = iota ExecutionStateRunning ExecutionStateAfterRun )
type ExpanderOption ¶
type ModelMap ¶
type ModelMap map[string][]*swagger.JSONValuePos
ModelMap is same as SingleModelMap, but might maps one app model property to multiple API model properties. This is resulted from merging multiple SingleModelMap(s).
func (ModelMap) AddLink ¶
AddLink adds the LinkLocal and LinkGithuhub for each value (*swagger.JSONValuePos) of the ModelMap.
func (ModelMap) RelativeLocalLink ¶
type Override ¶
type Override struct {
PathPattern string `hcl:"path_pattern,attr"`
RequestModify *RequestDescriptor `hcl:"request_modify,block"`
ResponseSelectorMerge string `hcl:"response_selector_merge,optional"`
ResponseSelectorJSON string `hcl:"response_selector_json,optional"`
ResponseBody string `hcl:"response_body,optional"`
ResponsePatchMerge string `hcl:"response_patch_merge,optional"`
ResponsePatchJSON string `hcl:"response_patch_json,optional"`
ResponseHeader map[string]string `hcl:"response_header,optional"`
ResponseStatusCode int `hcl:"response_status_code,optional"`
ExpanderOption *ExpanderOption `hcl:"expander,block"`
SynthOption *SynthOption `hcl:"synthesizer,block"`
}
type RequestDescriptor ¶
type SingleModelMap ¶
type SingleModelMap map[string]*swagger.JSONValuePos
SingleModelMap maps a jsonpointer of a property in the application model to a property *definition* in the API model spec In case there is no such property defintion (e.g. some undefined properties appear in an object), or the property definition encountered a circular reference during its expansion, the value of the map is nil.
func MapSingleAppModel ¶
func MapSingleAppModel(appModel map[string]interface{}, apiModels ...swagger.JSONValue) (SingleModelMap, error)
func (SingleModelMap) ToModelMap ¶
func (smm SingleModelMap) ToModelMap() ModelMap
type SynthOption ¶
type SynthOption struct {
UseEnumValue bool `hcl:"use_enum_value,optional"`
DuplicateElement []DuplicateElement `hcl:"duplicate_element,block"`
}
Click to show internal directories.
Click to hide internal directories.