Documentation ¶
Index ¶
- func DecodeFormParamsHCL(listVal *ast.ObjectList) (*[]*FormParam, error)
- func DecodeHCL(item *ast.ObjectItem) (interface{}, error)
- func DecodeHeadersHCL(listVal *ast.ObjectList) (*[]*Header, error)
- func DecodeQueryParamsHCL(listVal *ast.ObjectList) (*[]*QueryParam, error)
- type Add
- type AssignMessage
- type Copy
- type FormParam
- type Header
- type Payload
- type QueryParam
- type Remove
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFormParamsHCL ¶
func DecodeFormParamsHCL(listVal *ast.ObjectList) (*[]*FormParam, error)
DecodeFormParamsHCL converts HCL into a FormParams array.
func DecodeHCL ¶
func DecodeHCL(item *ast.ObjectItem) (interface{}, error)
DecodeHCL converts an HCL ast.ObjectItem into an AssignMessage object.
func DecodeHeadersHCL ¶
func DecodeHeadersHCL(listVal *ast.ObjectList) (*[]*Header, error)
DecodeHeadersHCL converts HCL headers into a Header array.
func DecodeQueryParamsHCL ¶
func DecodeQueryParamsHCL(listVal *ast.ObjectList) (*[]*QueryParam, error)
DecodeQueryParamsHCL converts HCL into a QueryParam array.
Types ¶
type Add ¶
type Add struct { XMLName string `xml:"Add" hcl:"-"` Headers *[]*Header `xml:"Headers>Header" hcl:"header"` QueryParams *[]*QueryParam `xml:"QueryParams>QueryParam" hcl:"query_param"` FormParams *[]*FormParam `xml:"FormParams>FormParam" hcl:"form_param"` }
Add includes elements to add to an HTTP message
func DecodeAddHCL ¶
func DecodeAddHCL(item *ast.ObjectItem) (*Add, error)
DecodeAddHCL converts HCL into an Add struct.
type AssignMessage ¶
type AssignMessage struct { XMLName string `xml:"AssignMessage" hcl:"-"` policy.Policy `hcl:",squash"` DisplayName string `xml:",omitempty" hcl:"display_name"` Add *Add `xml:",omitempty" hcl:"add"` Copy *Copy `xml:",omitempty" hcl:"copy"` Remove *Remove `xml:",omitempty" hcl:"remove"` Set *Set `xml:",omitempty" hcl:"set"` AssignVariable *assignVariable `xml:",omitempty" hcl:"assign_variable"` AssignTo *assignTo `xml:",omitempty" hcl:"assign_to"` IgnoreUnresolvedVariables bool `xml:",omitempty" hcl:"ignore_unresolved_variables"` }
AssignMessage represents an <AssignMessage/> element.
Documentation: http://docs.apigee.com/api-services/reference/assign-message-policy
type Copy ¶
type Copy struct { XMLName string `xml:"Copy" hcl:"-"` Source string `xml:"source,attr,omitempty" hcl:"-"` Headers *[]*Header `xml:"Headers>Header" hcl:"header"` QueryParams *[]*QueryParam `xml:"QueryParams>QueryParam" hcl:"query_param"` FormParams *[]*FormParam `xml:"FormParams>FormParam" hcl:"form_param"` Payload bool `xml:",omitempty" hcl:"payload"` Version bool `xml:",omitempty" hcl:"version"` Verb bool `xml:",omitempty" hcl:"verb"` Path bool `xml:",omitempty" hcl:"path"` StatusCode bool `xml:",omitempty" hcl:"status_code"` ReasonPhrase bool `xml:",omitempty" hcl:"reason_phrase"` }
Copy includes elements to copy to an HTTP message
func DecodeCopyHCL ¶
func DecodeCopyHCL(item *ast.ObjectItem) (*Copy, error)
DecodeCopyHCL converts HCL into a Copy struct.
type FormParam ¶
type FormParam struct { XMLName string `xml:"FormParam" hcl:"-"` Name string `xml:"name,attr" hcl:"-"` Value string `xml:",chardata" hcl:"value"` }
FormParam represents an HTTP message form parameter.
type Header ¶
type Header struct { XMLName string `xml:"Header" hcl:"-"` Name string `xml:"name,attr" hcl:"-"` Value string `xml:",chardata" hcl:"value"` }
Header represents an HTTP header
type Payload ¶
type Payload struct { XMLName string `xml:"Payload" hcl:"-"` ContentType string `xml:"contentType,attr,omitempty" hcl:"content_type"` VariablePrefix string `xml:"variablePrefix,attr,omitempty" hcl:"variable_prefix"` VariableSuffix string `xml:"variableSuffix,attr,omitempty" hcl:"variable_suffix"` Value string `xml:",chardata" hcl:"value"` }
Payload includes content to include an HTTP message body.
type QueryParam ¶
type QueryParam struct { XMLName string `xml:"QueryParam" hcl:"-"` Name string `xml:"name,attr" hcl:"-"` Value string `xml:",chardata" hcl:"value"` }
QueryParam represents a URL query parameter.
type Remove ¶
type Remove struct { XMLName string `xml:"Remove" hcl:"-"` Headers *[]*Header `xml:"Headers>Header" hcl:"header"` QueryParams *[]*QueryParam `xml:"QueryParams>QueryParam" hcl:"query_param"` FormParams *[]*FormParam `xml:"FormParams>FormParam" hcl:"form_param"` Payload bool `xml:",omitempty" hcl:"payload"` }
Remove includes elements to remove from an HTTP message
func DecodeRemoveHCL ¶
func DecodeRemoveHCL(item *ast.ObjectItem) (*Remove, error)
DecodeRemoveHCL converts HCL into a Remove struct
type Set ¶
type Set struct { XMLName string `xml:"Set" hcl:"-"` Headers *[]*Header `xml:"Headers>Header" hcl:"header"` QueryParams *[]*QueryParam `xml:"QueryParams>QueryParam" hcl:"query_param"` FormParams *[]*FormParam `xml:"FormParams>FormParam" hcl:"form_param"` Payload *Payload `xml:",omitempty" hcl:"payload"` Version string `xml:",omitempty" hcl:"version"` Verb string `xml:",omitempty" hcl:"verb"` Path string `xml:",omitempty" hcl:"path"` StatusCode int `xml:",omitempty" hcl:"status_code"` ReasonPhrase string `xml:",omitempty" hcl:"reason_phrase"` }
Set includes elements to set on an HTTP message
func DecodeSetHCL ¶
func DecodeSetHCL(item *ast.ObjectItem) (*Set, error)
DecodeSetHCL converts HCL into a Set struct.