general

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: ISC Imports: 2 Imported by: 1

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

type FwGeneral

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

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

func (*FwGeneral) Edit

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

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

func (*FwGeneral) Get

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

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

func (*FwGeneral) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwGeneral) Set

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

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

func (*FwGeneral) Show

func (c *FwGeneral) 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