general

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package general is the client.Device.GeneralSettings namespace.

Normalized object: Config

Index

Constants

View Source
const (
	NoAuth           = "none"
	AutokeyAuth      = "autokey"
	SymmetricKeyAuth = "symmetric-key"
)

Constants for NTP auth types.

View Source
const (
	Sha1 = "sha1"
	Md5  = "md5"
)

Constants for NTP algorithms.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hostname              string
	IpAddress             string
	Netmask               string
	Gateway               string
	Timezone              string
	Domain                string
	UpdateServer          string
	VerifyUpdateServer    bool
	LoginBanner           string
	PanoramaPrimary       string
	PanoramaSecondary     string
	ProxyServer           string
	ProxyPort             int
	ProxyUser             string
	ProxyPassword         string
	DnsPrimary            string
	DnsSecondary          string
	NtpPrimaryAddress     string
	NtpPrimaryAuthType    string
	NtpPrimaryKeyId       int
	NtpPrimaryAlgorithm   string
	NtpPrimaryAuthKey     string
	NtpSecondaryAddress   string
	NtpSecondaryAuthType  string
	NtpSecondaryKeyId     int
	NtpSecondaryAlgorithm string
	NtpSecondaryAuthKey   string
	// contains filtered or unexported fields
}

Config is a normalized, version independent representation of a device's general settings.

func (*Config) Defaults

func (o *Config) Defaults()

Defaults sets params with uninitialized values to their GUI default setting.

The defaults are as follows:

  • UpdateServer: updates.paloaltonetworks.com

func (*Config) Merge

func (o *Config) Merge(s Config)

Merge copies non connectivity variables from source Config `s` to this object. The fields that are not copied are as follows:

  • IpAddress
  • Netmask
  • Gateway

func (Config) Specify added in v0.6.0

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

type Firewall added in v0.6.0

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

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

func FirewallNamespace added in v0.6.0

func FirewallNamespace(client util.XapiClient) *Firewall

FirewallNamespace returns an initialized namespace.

func (*Firewall) Edit added in v0.6.0

func (c *Firewall) Edit(e Config) error

Edit performs EDIT to update the device's general settings.

func (*Firewall) Get added in v0.6.0

func (c *Firewall) Get() (Config, error)

Get performs GET to retrieve the device's general settings.

func (*Firewall) Set added in v0.6.0

func (c *Firewall) Set(e Config) error

Set performs SET to create / update the device's general settings.

func (*Firewall) Show added in v0.6.0

func (c *Firewall) Show() (Config, error)

Show performs SHOW to retrieve the device's general settings.

Jump to

Keyboard shortcuts

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