addr

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: ISC Imports: 4 Imported by: 4

Documentation

Overview

Package addr is the ngfw.Objects.Address namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	IpNetmask  = "ip-netmask"
	IpRange    = "ip-range"
	Fqdn       = "fqdn"
	IpWildcard = "ip-wildcard" // 9.0+
)

Valid Type values.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name        string
	Value       string
	Type        string
	Description string
	Tags        []string // ordered
}

Entry is a normalized, version independent representation of an address object.

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 FwAddr

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

FwAddr is a namespace struct, included as part of pango.Firewall.

func (*FwAddr) Delete

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

Delete removes the given address objects from the firewall.

Address objects can be either a string or an Entry object.

func (*FwAddr) Edit

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

Edit performs EDIT to create / update an address object.

func (*FwAddr) Get

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

Get performs GET to retrieve information for the given address object.

func (*FwAddr) GetList

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

GetList performs GET to retrieve a list of address objects.

func (*FwAddr) Initialize

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

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

func (*FwAddr) Set

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

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

func (*FwAddr) Show

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

Get performs SHOW to retrieve information for the given address object.

func (*FwAddr) ShowList

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

ShowList performs SHOW to retrieve a list of address objects.

type PanoAddr

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

PanoAddr is a namespace struct, included as part of pango.Firewall.

func (*PanoAddr) Delete

func (c *PanoAddr) Delete(dg string, e ...interface{}) error

Delete removes the given address objects from the firewall.

Address objects can be either a string or an Entry object.

func (*PanoAddr) Edit

func (c *PanoAddr) Edit(dg string, e Entry) error

Edit performs EDIT to create / update an address object.

func (*PanoAddr) Get

func (c *PanoAddr) Get(dg, name string) (Entry, error)

Get performs GET to retrieve information for the given address object.

func (*PanoAddr) GetList

func (c *PanoAddr) GetList(dg string) ([]string, error)

GetList performs GET to retrieve a list of address objects.

func (*PanoAddr) Initialize

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

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

func (*PanoAddr) Set

func (c *PanoAddr) Set(dg string, e ...Entry) error

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

func (*PanoAddr) Show

func (c *PanoAddr) Show(dg, name string) (Entry, error)

Get performs SHOW to retrieve information for the given address object.

func (*PanoAddr) ShowList

func (c *PanoAddr) ShowList(dg string) ([]string, error)

ShowList performs SHOW to retrieve a list of address objects.

Jump to

Keyboard shortcuts

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