Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHCL

func DecodeHCL(item *ast.ObjectItem, p *Policy) error

DecodeHCL converts an HCL ast.ObjectItem into a Policy object.

Types

type Namer

type Namer interface {
	Name() string
	SetName(string)
}

Namer is used to set and retrieve a policy name

type Policy

type Policy struct {
	InternalName    string `xml:"name,attr,omitempty" hcl:"-"`
	Enabled         bool   `xml:"enabled,attr" hcl:"enabled"`
	ContinueOnError bool   `xml:"continueOnError,attr,omitempty" hcl:"continue_on_error"`
	Async           bool   `xml:"async,attr,omitempty" hcl:"async"`
}

Policy Represents a base Policy element. Each policy type should embed a Policy.

Documentation: http://docs.apigee.com/api-services/reference/api-proxy-configuration-reference#policies

func (*Policy) Name

func (p *Policy) Name() string

Name returns the name of the policy.

func (*Policy) SetName

func (p *Policy) SetName(name string)

SetName sets the name of the policy.

type Resource

type Resource struct {
	URL     string
	Content string
}

Resource represents an included file in a proxy bundle

type Resourcer

type Resourcer interface {
	Resource() *Resource
}

Resourcer is used for policies with resources

Source Files