orcond

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: 2

Documentation

Overview

Package orcond is the client.Objects.AppSigAndCondOrCond namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	OperatorPatternMatch = "pattern-match"
	OperatorGreaterThan  = "greater-than"
	OperatorLessThan     = "less-than"
	OperatorEqualTo      = "equal-to"
)

Valid Operator values.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name       string
	Operator   string
	Context    string
	Pattern    string
	Value      string
	Position   string
	Mask       string
	Qualifiers map[string]string
}

Entry is a normalized, version independent representation of an application signature and-condition.

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 FwOrCond

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

FwOrCond is the client.Objects.AppSigAndCondOrCond namespace.

func (*FwOrCond) Delete

func (c *FwOrCond) Delete(vsys, app, sig, andcond string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwOrCond) Edit

func (c *FwOrCond) Edit(vsys, app, sig, andcond string, e Entry) error

Edit performs EDIT to create / update one object.

func (*FwOrCond) Get

func (c *FwOrCond) Get(vsys, app, sig, andcond, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*FwOrCond) GetList

func (c *FwOrCond) GetList(vsys, app, sig, andcond string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*FwOrCond) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwOrCond) Set

func (c *FwOrCond) Set(vsys, app, sig, andcond string, e ...Entry) error

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

func (*FwOrCond) Show

func (c *FwOrCond) Show(vsys, app, sig, andcond, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*FwOrCond) ShowList

func (c *FwOrCond) ShowList(vsys, app, sig, andcond string) ([]string, error)

ShowList performs SHOW to retrieve a list of values.

type PanoOrCond

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

PanoOrCond is the client.Objects.AppSigAndCondOrCond namespace.

func (*PanoOrCond) Delete

func (c *PanoOrCond) Delete(dg, app, sig, andcond string, e ...interface{}) error

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoOrCond) Edit

func (c *PanoOrCond) Edit(dg, app, sig, andcond string, e Entry) error

Edit performs EDIT to create / update one object.

func (*PanoOrCond) Get

func (c *PanoOrCond) Get(dg, app, sig, andcond, name string) (Entry, error)

Get performs GET to retrieve information for the given uid.

func (*PanoOrCond) GetList

func (c *PanoOrCond) GetList(dg, app, sig, andcond string) ([]string, error)

GetList performs GET to retrieve a list of values.

func (*PanoOrCond) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoOrCond) Set

func (c *PanoOrCond) Set(dg, app, sig, andcond string, e ...Entry) error

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

func (*PanoOrCond) Show

func (c *PanoOrCond) Show(dg, app, sig, andcond, name string) (Entry, error)

Show performs SHOW to retrieve information for the given uid.

func (*PanoOrCond) ShowList

func (c *PanoOrCond) ShowList(dg, app, sig, andcond 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