tags

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: ISC Imports: 3 Imported by: 4

Documentation

Overview

Package tags is the client.Objects.Tags namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	None = iota
	Red
	Green
	Blue
	Yellow
	Copper
	Orange
	Purple
	Gray
	LightGreen
	Cyan
	LightGray
	BlueGray
	Lime
	Black
	Gold
	Brown
	Olive

	Maroon
	RedOrange
	YellowOrange
	ForestGreen
	TurquoiseBlue
	AzureBlue
	CeruleanBlue
	MidnightBlue
	MediumBlue
	CobaltBlue
	BlueViolet
	MediumViolet
	MediumRose
	Lavender
	Orchid
	Thistle
	Peach
	Salmon
	Magenta
	RedViolet
	Mahogany
	BurntSienna
	Chestnut
)

These are the color constants you can use in Entry.SetColor(). Note that each version of PANOS has added colors, so if you are looking for maximum compatibility, only use the first 16 colors (17 including None).

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name    string
	Color   string
	Comment string
}

Entry is a normalized, version independent representation of an administrative tag. Note that colors should be set to a string such as `color5` or `color13`. If you want to set a color using the color name (e.g. - "red"), use the SetColor function.

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.

func (*Entry) SetColor

func (o *Entry) SetColor(v int)

SetColor takes a color constant (e.g. - Olive) and converts it to a color enum (e.g. - "color17").

Note that color availability varies according to version:

* 6.1 - 7.0: None - Brown * 7.1 - 8.0: None - Olive * 8.1: None - Chestnut

type FwTags

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

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

func (*FwTags) Delete

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

Delete removes the given administrative tags from the firewall.

Administrative tags can be either a string or an Entry object.

func (*FwTags) Edit

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

Edit performs EDIT to create / update an administrative tag.

func (*FwTags) Get

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

Get performs GET to retrieve information for the given administrative tag.

func (*FwTags) GetList

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

GetList performs GET to retrieve a list of administrative tags.

func (*FwTags) Initialize

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

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

func (*FwTags) Set

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

Set performs SET to create / update one or more administrative tags.

func (*FwTags) Show

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

Get performs SHOW to retrieve information for the given administrative tag.

func (*FwTags) ShowList

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

ShowList performs SHOW to retrieve a list of administrative tags.

type PanoTags

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

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

func (*PanoTags) Delete

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

Delete removes the given administrative tags from the firewall.

Administrative tags can be either a string or an Entry object.

func (*PanoTags) Edit

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

Edit performs EDIT to create / update an administrative tag.

func (*PanoTags) Get

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

Get performs GET to retrieve information for the given administrative tag.

func (*PanoTags) GetList

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

GetList performs GET to retrieve a list of administrative tags.

func (*PanoTags) Initialize

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

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

func (*PanoTags) Set

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

Set performs SET to create / update one or more administrative tags.

func (*PanoTags) Show

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

Get performs SHOW to retrieve information for the given administrative tag.

func (*PanoTags) ShowList

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

ShowList performs SHOW to retrieve a list of administrative tags.

Jump to

Keyboard shortcuts

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