policy

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: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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