Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PolicyList = map[string]func(*ast.ObjectItem) (interface{}, error){ "assign_message": assignmessage.DecodeHCL, "extract_variables": extractvariables.DecodeHCL, "javascript": javascript.DecodeHCL, "quota": quota.DecodeHCL, "raise_fault": raisefault.DecodeHCL, "response_cache": responsecache.DecodeHCL, "script": script.DecodeHCL, "service_callout": servicecallout.DecodeHCL, "spike_arrest": spikearrest.DecodeHCL, "statistics_collector": statisticscollector.DecodeHCL, "verify_api_key": verifyapikey.DecodeHCL, "xml_to_json": xmltojson.DecodeHCL, }
PolicyList is a map of HCL policy types to policy factory functions.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Proxy *Proxy ProxyEndpoints []*endpoints.ProxyEndpoint TargetEndpoints []*endpoints.TargetEndpoint Policies []policy.Namer Resources map[string]string }
Config is a container for holding the contents of an exported Apigee proxy bundle
func DecodeConfigHCL ¶
func DecodeConfigHCL(list *ast.ObjectList) (*Config, error)
DecodeConfigHCL converts an HCL ast.ObjectList into a Config object
type Proxy ¶
type Proxy struct { XMLName string `xml:"APIProxy" hcl:"-"` Name string `xml:"name,attr,omitempty" hcl:"-"` DisplayName string `xml:",omitempty" hcl:"display_name"` Description string `xml:",omitempty" hcl:"description"` }
Proxy represents an <APIProxy/> element in an Apigee proxy bundle
Documentation: http://docs.apigee.com/api-services/reference/api-proxy-configuration-reference#baseconfig
Click to show internal directories.
Click to hide internal directories.