filetype

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: ISC Imports: 6 Imported by: 1

Documentation

Overview

Package filetype is the client.Predefined.TdbFileType namespace.

Normalized object: Entry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name          string
	Id            int
	ThreatName    string
	FullName      string
	DataIdent     bool
	FileTypeIdent bool
}

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.TdbFileType namespace.

func FirewallNamespace

func FirewallNamespace(client util.XapiClient) *Firewall

FirewallNamespace returns an initialized namespace.

func (*Firewall) Get

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

Get performs GET to retrieve information for the given object.

func (*Firewall) GetList

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

GetList performs GET to retrieve a list of all objects.

func (*Firewall) GetMatches

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

GetMatches performs GET to retrieve a list of objects whose full name matches the given regex.

func (*Firewall) Show

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

Show performs SHOW to retrieve information for the given object.

func (*Firewall) ShowList

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

ShowList performs SHOW to retrieve a list of all objects.

func (*Firewall) ShowMatches

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

ShowMatches performs SHOW to retrieve a list of objects whose full name matches the given regex.

type Panorama

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

Panorama is the client.Predefined.TdbFileType namespace.

func PanoramaNamespace

func PanoramaNamespace(client util.XapiClient) *Panorama

PanoramaNamespace returns an initialized namespace.

func (*Panorama) Get

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

Get performs GET to retrieve information for the given object.

func (*Panorama) GetList

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

GetList performs GET to retrieve a list of all objects.

func (*Panorama) GetMatches

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

GetMatches performs GET to retrieve a list of objects whose full name matches the given regex.

func (*Panorama) Show

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

Show performs SHOW to retrieve information for the given object.

func (*Panorama) ShowList

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

ShowList performs SHOW to retrieve a list of all objects.

func (*Panorama) ShowMatches

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

ShowMatches performs SHOW to retrieve a list of objects whose full name matches the given regex.

Jump to

Keyboard shortcuts

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