v2c

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v2c is the client.Object.SnmpV2cServer namespace.

For Panorama, there are two possibilities: managing this object on Panorama itself or inside of a Template.

To manage objects save on Panorama, leave "tmpl" and "ts" params empty and set "dg" to "shared" (which is also the default).

To manage objects in a template, specify the template name and the vsys (if unspecified, defaults to "shared").

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
	Manager   string
	Community string
}

Entry is a normalized, version independent representation of a snmptrap v2c server.

PAN-OS 7.1+.

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 FwV2c

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

FwV2c is the client.Network.SnmpV2cServer namespace.

func (*FwV2c) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwV2c) Edit

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

Edit performs EDIT to create / update one object.

func (*FwV2c) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwV2c) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwV2c) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwV2c) Set

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

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

func (*FwV2c) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwV2c) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoV2c

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

PanoV2c is the client.Network.SnmpV2cServer namespace.

func (*PanoV2c) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoV2c) Edit

func (c *PanoV2c) Edit(tmpl, ts, vsys, dg, profile string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoV2c) Get

func (c *PanoV2c) Get(tmpl, ts, vsys, dg, profile, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoV2c) GetList

func (c *PanoV2c) GetList(tmpl, ts, vsys, dg, profile string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoV2c) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoV2c) Set

func (c *PanoV2c) Set(tmpl, ts, vsys, dg, profile string, e ...Entry) error

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

func (*PanoV2c) Show

func (c *PanoV2c) Show(tmpl, ts, vsys, dg, profile, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoV2c) ShowList

func (c *PanoV2c) ShowList(tmpl, ts, vsys, dg, profile 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