v3

package
v0.3.6 Latest Latest
Warning

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

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

Documentation

Overview

Package v3 is the client.Object.SnmpV3Server 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
	User         string
	EngineId     string
	AuthPassword string // encrypted
	PrivPassword string // encrypted
}

Entry is a normalized, version independent representation of a snmptrap v3 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 FwV3

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

FwV3 is the client.Network.SnmpV3Server namespace.

func (*FwV3) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwV3) Edit

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

Edit performs EDIT to create / update one object.

func (*FwV3) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwV3) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwV3) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwV3) Set

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

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

func (*FwV3) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwV3) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoV3

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

PanoV3 is the client.Network.SnmpV3Server namespace.

func (*PanoV3) Delete

func (c *PanoV3) 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 (*PanoV3) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoV3) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoV3) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoV3) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoV3) Set

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

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

func (*PanoV3) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoV3) ShowList

func (c *PanoV3) 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