javascript

package
v0.0.0-...-8be9c10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHCL

func DecodeHCL(item *ast.ObjectItem) (interface{}, error)

DecodeHCL converts HCL into an JavaScript object.

Types

type JavaScript

type JavaScript struct {
	XMLName       string `xml:"Javascript" hcl:"-"`
	policy.Policy `hcl:",squash"`
	TimeLimit     int                    `xml:"timeLimit,attr" hcl:"time_limit"`
	DisplayName   string                 `xml:",omitempty" hcl:"display_name"`
	ResourceURL   string                 `hcl:"resource_url"`
	IncludeURL    []string               `xml:",omitempty" hcl:"include_url"`
	Properties    []*properties.Property `xml:"Properties>Property" hcl:"properties"`
	Content       string                 `xml:"-" hcl:"content"`
}

JavaScript represents a <Javascript/> element.

Documentation: http://docs.apigee.com/api-services/reference/javascript-policy

func (*JavaScript) Resource

func (j *JavaScript) Resource() *policy.Resource

Resource represents an included file in a proxy bundle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL