threat

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: ISC Imports: 6 Imported by: 1

Documentation

Overview

Package threat is the ngfw.Predefined.Threat namespace.

The functions in these namespaces all take a "tt" param. This is the "threat type," and the values for this are the constants in this namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	Vulnerability = "vulnerability"
	PhoneHome     = "phone-home"
)

Valid threat types.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name       string
	ThreatName string
}

Entry is a normalized, version independent representation of a threat.

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) Specify

func (o Entry) Specify(v version.Number) (string, interface{})

type Firewall

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

Firewall is the client.Predefined.Threat namespace.

func FirewallNamespace

func FirewallNamespace(client util.XapiClient) *Firewall

FirewallNamespace returns an initialized namespace.

func (*Firewall) Get

func (c *Firewall) Get(tt, name string) (Entry, error)

Get performs GET to retrieve information for the given object.

func (*Firewall) GetList

func (c *Firewall) GetList(tt string) ([]string, error)

GetList performs GET to retrieve a list of all objects.

func (*Firewall) GetThreats

func (c *Firewall) GetThreats(tt, expr string) ([]Entry, error)

GetThreats performs a GET to retrieve a list of objects whose threat name matches the given regex.

func (*Firewall) Show

func (c *Firewall) Show(tt, name string) (Entry, error)

Show performs SHOW to retrieve information for the given object.

func (*Firewall) ShowList

func (c *Firewall) ShowList(tt string) ([]string, error)

ShowList performs SHOW to retrieve a list of all objects.

func (*Firewall) ShowThreats

func (c *Firewall) ShowThreats(tt, expr string) ([]Entry, error)

ShowThreats performs a SHOW to retrieve a list of objects whose threat name matches the given regex.

type Panorama

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

Panorama is the client.Predefined.Threat namespace.

func PanoramaNamespace

func PanoramaNamespace(client util.XapiClient) *Panorama

PanoramaNamespace returns an initialized namespace.

func (*Panorama) Get

func (c *Panorama) Get(tt, name string) (Entry, error)

Get performs GET to retrieve information for the given object.

func (*Panorama) GetList

func (c *Panorama) GetList(tt string) ([]string, error)

GetList performs GET to retrieve a list of all objects.

func (*Panorama) GetThreats

func (c *Panorama) GetThreats(tt, expr string) ([]Entry, error)

GetThreats performs a GET to retrieve a list of objects whose threat name matches the given regex.

func (*Panorama) Show

func (c *Panorama) Show(tt, name string) (Entry, error)

Show performs SHOW to retrieve information for the given object.

func (*Panorama) ShowList

func (c *Panorama) ShowList(tt string) ([]string, error)

ShowList performs SHOW to retrieve a list of all objects.

func (*Panorama) ShowThreats

func (c *Panorama) ShowThreats(tt, expr string) ([]Entry, error)

ShowThreats performs a SHOW to retrieve a list of objects whose threat name matches the given regex.

Jump to

Keyboard shortcuts

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