dg

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: ISC Imports: 3 Imported by: 2

Documentation

Overview

Package dg is the client.Panorama.DeviceGroup namespace.

Normalized object: Entry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dg

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

Dg is the client.Panorama.DeviceGroup namespace.

func (*Dg) Delete

func (c *Dg) Delete(e ...interface{}) error

Delete removes the given device groups from the firewall.

Device groups can be a string or an Entry object.

func (*Dg) DeleteDeviceVsys

func (c *Dg) DeleteDeviceVsys(g interface{}, d string, vsys []string) error

DeleteDeviceVsys performs a DELETE to remove specific vsys from device d from device group g.

If you want all vsys to be removed, or the device is a virtual firewall, then leave the vsys list empty.

The device group can be either a string or an Entry object.

func (*Dg) Edit

func (c *Dg) Edit(e Entry) error

Edit performs EDIT to create / update a device group.

func (*Dg) EditDeviceVsys

func (c *Dg) EditDeviceVsys(g interface{}, d string, vsys []string) error

EditDeviceVsys performs an EDIT to add specific vsys from a device to device group g.

If you want all vsys to be included, or the device is a virtual firewall, then leave the vsys list empty.

The device group can be either a string or an Entry object.

func (*Dg) Get

func (c *Dg) Get(name string) (Entry, error)

Get performs GET to retrieve information for the given device group.

func (*Dg) GetList

func (c *Dg) GetList() ([]string, error)

GetList performs GET to retrieve a list of device groups.

func (*Dg) Initialize

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

Initialize is invoked by client.Initialize().

func (*Dg) Set

func (c *Dg) Set(e ...Entry) error

Set performs SET to create / update one or more device groups.

func (*Dg) SetDeviceVsys

func (c *Dg) SetDeviceVsys(g interface{}, d string, vsys []string) error

SetDeviceVsys performs a SET to add specific vsys from a device to device group g.

If you want all vsys to be included, or the device is a virtual firewall, then leave the vsys list empty.

The device group can be either a string or an Entry object.

func (*Dg) Show

func (c *Dg) Show(name string) (Entry, error)

Show performs SHOW to retrieve information for the given device group.

func (*Dg) ShowList

func (c *Dg) ShowList() ([]string, error)

ShowList performs SHOW to retrieve a list of device groups.

type Entry

type Entry struct {
	Name        string
	Description string
	Devices     map[string][]string
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a device group.

Devices is a map where the key is the serial number of the target device and the value is a list of specific vsys on that device. The list of vsys is nil if all vsys on that device should be included or if the device is a virtual firewall (and thus only has vsys1).

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

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

Jump to

Keyboard shortcuts

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