edl

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package edl is the ngfw.Objects.Edl namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	TypeIp         string = "ip"
	TypeDomain     string = "domain"
	TypeUrl        string = "url"
	TypePredefined string = "predefined"
)

Constants for Entry.Type field. Only TypeIp is valid for PAN-OS 7.0 and earlier. TypePredefined is valid for PAN-OS 8.0 and later.

View Source
const (
	RepeatEveryFiveMinutes = "every five minutes"
	RepeatHourly           = "hourly"
	RepeatDaily            = "daily"
	RepeatWeekly           = "weekly"
	RepeatMonthly          = "monthly"
)

Constants for the Repeat field. Option "RepeatEveryFiveMinutes" is valid for PAN-OS 8.0 and higher.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name               string
	Type               string
	Description        string
	Source             string
	CertificateProfile string
	Username           string
	Password           string
	Repeat             string
	RepeatAt           string
	RepeatDayOfWeek    string
	RepeatDayOfMonth   int
	Exceptions         []string // ordered
}

Entry is a normalized, version independent representation of an external dynamic list.

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 FwEdl

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

FwEdl is the firewall.Objects.Edl namespace.

func (*FwEdl) Delete

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

Delete removes the given EDLs from the firewall.

EDLs can be either a string or an Entry object.

func (*FwEdl) Edit

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

Edit performs EDIT to create / update an EDL.

func (*FwEdl) Get

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

Get performs GET to retrieve information for the given EDL.

func (*FwEdl) GetList

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

GetList performs GET to retrieve a list of EDLs.

func (*FwEdl) Initialize

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

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

func (*FwEdl) Set

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

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

func (*FwEdl) Show

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

Get performs SHOW to retrieve information for the given EDL.

func (*FwEdl) ShowList

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

ShowList performs SHOW to retrieve a list of EDLs.

type PanoEdl

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

PanoEdl is the panorama.Objects.Edl namespace.

func (*PanoEdl) Delete

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

Delete removes the given EDLs from the firewall.

EDLs can be either a string or an Entry object.

func (*PanoEdl) Edit

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

Edit performs EDIT to create / update an EDL.

func (*PanoEdl) Get

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

Get performs GET to retrieve information for the given EDL.

func (*PanoEdl) GetList

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

GetList performs GET to retrieve a list of EDLs.

func (*PanoEdl) Initialize

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

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

func (*PanoEdl) Set

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

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

func (*PanoEdl) Show

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

Get performs SHOW to retrieve information for the given EDL.

func (*PanoEdl) ShowList

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

ShowList performs SHOW to retrieve a list of EDLs.

Jump to

Keyboard shortcuts

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