general

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: ISC Imports: 4 Imported by: 0

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 {
	Template              string
	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

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

type Firewall

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

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

func FirewallNamespace

func FirewallNamespace(client util.XapiClient) *Firewall

FirewallNamespace returns an initialized namespace.

func (*Firewall) Edit

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

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

func (*Firewall) Get

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

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

func (*Firewall) Set

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

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

func (*Firewall) Show

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

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

type Panorama

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

Panorama is the client.Device.GeneralSettings namespace.

func PanoramaNamespace

func PanoramaNamespace(client util.XapiClient) *Panorama

PanoramaNamespace returns an initialized namespace.

func (*Panorama) Edit

func (c *Panorama) Edit(tmpl, ts, vsys string, e Config) error

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

func (*Panorama) Get

func (c *Panorama) Get(tmpl, ts, vsys string) (Config, error)

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

func (*Panorama) Set

func (c *Panorama) Set(tmpl, ts, vsys string, e Config) error

Set performs SET to configure the specified objects.

func (*Panorama) Show

func (c *Panorama) Show(tmpl, ts, vsys string) (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