zone

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: ISC Imports: 3 Imported by: 2

Documentation

Overview

Package zone is the client.Network.Zone namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	ModeL2          = "layer2"
	ModeL3          = "layer3"
	ModeVirtualWire = "virtual-wire"
	ModeTap         = "tap"
	ModeExternal    = "external"
)

These are valid values for the Mode.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name         string
	Mode         string
	Interfaces   []string // unordered
	ZoneProfile  string
	LogSetting   string
	EnableUserId bool
	IncludeAcls  []string // unordered
	ExcludeAcls  []string // unordered
}

Entry is a normalized, version independent representation of a zone.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

type FwZone

type FwZone struct {
	// contains filtered or unexported fields
}

FwZone is a namespace struct, included as part of pango.Client.

func (*FwZone) Delete

func (c *FwZone) Delete(vsys string, e ...interface{}) error

Delete removes the given objects.

Objects can be either a string or an Entry object.

func (*FwZone) DeleteInterface

func (c *FwZone) DeleteInterface(vsys string, zone interface{}, mode, iface string) error

DeleteInterface performs a DELETE to remove the interface from the zone.

The zone can be either a string or an Entry object.

func (*FwZone) Edit

func (c *FwZone) Edit(vsys string, e Entry) error

Edit performs EDIT to create / update one object.

func (*FwZone) Get

func (c *FwZone) Get(vsys, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwZone) GetList

func (c *FwZone) GetList(vsys string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwZone) Initialize

func (c *FwZone) Initialize(con util.XapiClient)

Initialize is invoked when Initialize on the pango.Client is called.

func (*FwZone) Set

func (c *FwZone) Set(vsys string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*FwZone) SetInterface

func (c *FwZone) SetInterface(vsys string, zone interface{}, mode, iface string) error

SetInterface performs a SET to add an interface to a zone.

The zone can be either a string or an Entry object.

func (*FwZone) Show

func (c *FwZone) Show(vsys, name string) (Entry, error)

Get performs SHOW to retrieve information for the given uid.

func (*FwZone) ShowList

func (c *FwZone) ShowList(vsys string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoZone

type PanoZone struct {
	// contains filtered or unexported fields
}

PanoZone is a namespace struct, included as part of pango.Client.

func (*PanoZone) Delete

func (c *PanoZone) Delete(tmpl, ts, vsys string, e ...interface{}) error

Delete removes the given objects.

Objects can be either a string or an Entry object.

func (*PanoZone) DeleteInterface

func (c *PanoZone) DeleteInterface(tmpl, ts, vsys string, zone interface{}, mode, iface string) error

DeleteInterface performs a DELETE to remove the interface from the zone.

The zone can be either a string or an Entry object.

func (*PanoZone) Edit

func (c *PanoZone) Edit(tmpl, ts, vsys string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoZone) Get

func (c *PanoZone) Get(tmpl, ts, vsys, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoZone) GetList

func (c *PanoZone) GetList(tmpl, ts, vsys string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoZone) Initialize

func (c *PanoZone) Initialize(con util.XapiClient)

Initialize is invoked when Initialize on the pango.Client is called.

func (*PanoZone) Set

func (c *PanoZone) Set(tmpl, ts, vsys string, e ...Entry) error

Set performs SET to create / update one or more objects.

func (*PanoZone) SetInterface

func (c *PanoZone) SetInterface(tmpl, ts, vsys string, zone interface{}, mode, iface string) error

SetInterface performs a SET to add an interface to a zone.

The zone can be either a string or an Entry object.

func (*PanoZone) Show

func (c *PanoZone) Show(tmpl, ts, vsys, name string) (Entry, error)

Get performs SHOW to retrieve information for the given uid.

func (*PanoZone) ShowList

func (c *PanoZone) ShowList(tmpl, ts, vsys string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

Jump to

Keyboard shortcuts

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