Documentation ¶
Overview ¶
Package addr is the ngfw.Objects.Address namespace.
Normalized object: Entry
Index ¶
- Constants
- func ObjectsMatch(a, b Entry) bool
- type Entry
- type Firewall
- func (c *Firewall) ConfigureGroup(vsys string, objs []Entry, prevNames []string) error
- func (c *Firewall) Delete(vsys string, e ...interface{}) error
- func (c *Firewall) Edit(vsys string, e Entry) error
- func (c *Firewall) Get(vsys, name string) (Entry, error)
- func (c *Firewall) GetAll(vsys string) ([]Entry, error)
- func (c *Firewall) GetList(vsys string) ([]string, error)
- func (c *Firewall) Set(vsys string, e ...Entry) error
- func (c *Firewall) Show(vsys, name string) (Entry, error)
- func (c *Firewall) ShowAll(vsys string) ([]Entry, error)
- func (c *Firewall) ShowList(vsys string) ([]string, error)
- type Panorama
- func (c *Panorama) ConfigureGroup(dg string, objs []Entry, prevNames []string) error
- func (c *Panorama) Delete(dg string, e ...interface{}) error
- func (c *Panorama) Edit(dg string, e Entry) error
- func (c *Panorama) Get(dg, name string) (Entry, error)
- func (c *Panorama) GetAll(dg string) ([]Entry, error)
- func (c *Panorama) GetList(dg string) ([]string, error)
- func (c *Panorama) Set(dg string, e ...Entry) error
- func (c *Panorama) Show(dg, name string) (Entry, error)
- func (c *Panorama) ShowAll(dg string) ([]Entry, error)
- func (c *Panorama) ShowList(dg string) ([]string, error)
Constants ¶
const ( IpNetmask = "ip-netmask" IpRange = "ip-range" Fqdn = "fqdn" IpWildcard = "ip-wildcard" // 9.0+ )
Valid Type values.
Variables ¶
This section is empty.
Functions ¶
func ObjectsMatch ¶ added in v0.8.0
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.
type Firewall ¶ added in v0.5.0
type Firewall struct {
// contains filtered or unexported fields
}
Firewall is the client.Objects.Address namespace.
func FirewallNamespace ¶ added in v0.5.0
func FirewallNamespace(client util.XapiClient) *Firewall
FirewallNamespace returns an initialized namespace.
func (*Firewall) ConfigureGroup ¶ added in v0.8.0
ConfigureGroup configures the given address objects on PAN-OS.
Due to caching in the GUI, objects configured via a bulk SET will not show up in the dropdowns in the GUI (aka - Security Rules). Restarting the management plane will force the cache to refresh.
func (*Firewall) Delete ¶ added in v0.5.0
Delete performs DELETE to remove the specified objects.
Objects can be either a string or an Entry object.
func (*Firewall) Get ¶ added in v0.5.0
Get performs GET to retrieve information for the given object.
func (*Firewall) Show ¶ added in v0.5.0
Show performs SHOW to retrieve information for the given object.
type Panorama ¶ added in v0.5.0
type Panorama struct {
// contains filtered or unexported fields
}
Panorama is the client.Objects.Address namespace.
func PanoramaNamespace ¶ added in v0.5.0
func PanoramaNamespace(client util.XapiClient) *Panorama
PanoramaNamespace returns an initialized namespace.
func (*Panorama) ConfigureGroup ¶ added in v0.8.0
ConfigureGroup configures the given address objects on PAN-OS.
Due to caching in the GUI, objects configured via a bulk SET will not show up in the dropdowns in the GUI (aka - Security Rules). Restarting the management plane will force the cache to refresh.
func (*Panorama) Delete ¶ added in v0.5.0
Delete performs DELETE to remove the specified objects.
Objects can be either a string or an Entry object.
func (*Panorama) Get ¶ added in v0.5.0
Get performs GET to retrieve information for the given object.
func (*Panorama) Show ¶ added in v0.5.0
Show performs SHOW to retrieve information for the given object.