Help us shape the future of Go! Take the 2026 Go Developer Survey

param

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 param is the client.Object.HttpParam 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

View Source
const (
	Config   = "config"
	System   = "system"
	Threat   = "threat"
	Traffic  = "traffic"
	HipMatch = "hip-match"
	Url      = "url"
	Data     = "data"
	Wildfire = "wildfire"
	Tunnel   = "tunnel"
	UserId   = "userid"
	Gtp      = "gtp"
	Auth     = "auth"
	Sctp     = "sctp"
	Iptag    = "iptag"
)

Valid logtype values for logtype.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name  string
	Value string
}

Entry is a normalized, version independent representation of an http param.

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 FwParam

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

FwParam is the client.Network.HttpParam namespace.

func (*FwParam) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwParam) Edit

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

Edit performs EDIT to create / update one object.

func (*FwParam) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwParam) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwParam) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwParam) Set

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

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

func (*FwParam) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwParam) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoParam

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

PanoParam is the client.Network.HttpParam namespace.

func (*PanoParam) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoParam) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoParam) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoParam) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoParam) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoParam) Set

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

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

func (*PanoParam) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoParam) ShowList

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