header

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package header is the client.Object.HttpHeader 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 header.

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 FwHeader

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

FwHeader is the client.Network.HttpHeader namespace.

func (*FwHeader) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwHeader) Edit

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

Edit performs EDIT to create / update one object.

func (*FwHeader) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwHeader) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwHeader) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwHeader) Set

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

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

func (*FwHeader) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwHeader) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoHeader

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

PanoHeader is the client.Network.HttpHeader namespace.

func (*PanoHeader) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoHeader) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoHeader) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoHeader) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoHeader) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoHeader) Set

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

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

func (*PanoHeader) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoHeader) ShowList

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