addrgrp

package
v0.3.3 Latest Latest
Warning

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

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

Documentation

Overview

Package addrgrp is the client.Objects.AddressGroup namespace.

Normalized object: Entry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name            string
	Description     string
	StaticAddresses []string // unordered
	DynamicMatch    string
	Tags            []string // ordered
}

Entry is a normalized, version independent representation of an address group. The value set in DynamicMatch should be something like the following:

  • 'tag1'
  • 'tag1' or 'tag2' and 'tag3'

The Tags param is for administrative tags for this address object group itself.

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 FwAddrGrp

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

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

func (*FwAddrGrp) Delete

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

Delete removes the given address groups from the firewall.

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

func (*FwAddrGrp) Edit

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

Edit performs EDIT to create / update an address group.

func (*FwAddrGrp) Get

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

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

func (*FwAddrGrp) GetList

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

GetList performs GET to retrieve a list of address groups.

func (*FwAddrGrp) Initialize

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

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

func (*FwAddrGrp) Set

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

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

func (*FwAddrGrp) Show

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

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

func (*FwAddrGrp) ShowList

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

ShowList performs SHOW to retrieve a list of address groups.

type PanoAddrGrp

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

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

func (*PanoAddrGrp) Delete

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

Delete removes the given address groups from the firewall.

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

func (*PanoAddrGrp) Edit

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

Edit performs EDIT to create / update an address group.

func (*PanoAddrGrp) Get

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

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

func (*PanoAddrGrp) GetList

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

GetList performs GET to retrieve a list of address groups.

func (*PanoAddrGrp) Initialize

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

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

func (*PanoAddrGrp) Set

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

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

func (*PanoAddrGrp) Show

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

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

func (*PanoAddrGrp) ShowList

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

ShowList performs SHOW to retrieve a list of address groups.

Jump to

Keyboard shortcuts

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