ipsec

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package ipsec is the client.Network.IpsecCryptoProfile namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	ProtocolEsp = "esp"
	ProtocolAh  = "ah"
)
View Source
const (
	EncryptionDes       = "des"
	Encryption3des      = "3des"
	EncryptionAes128    = "aes-128-cbc"
	EncryptionAes192    = "aes-192-cbc"
	EncryptionAes256    = "aes-256-cbc"
	EncryptionAes128Gcm = "aes-128-gcm"
	EncryptionAes256Gcm = "aes-256-gcm"
	EncryptionNull      = "null"
)
View Source
const (
	TimeSeconds = "seconds"
	TimeMinutes = "minutes"
	TimeHours   = "hours"
	TimeDays    = "days"
)
View Source
const (
	SizeKb = "kb"
	SizeMb = "mb"
	SizeGb = "gb"
	SizeTb = "tb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name           string
	Protocol       string
	Encryption     []string
	Authentication []string
	DhGroup        string
	LifetimeType   string
	LifetimeValue  int
	LifesizeType   string
	LifesizeValue  int
}

Entry is a normalized, version independent representation of an interface management profile.

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

func (o *Entry) NormalizeEncryption()

NormalizeEncryption normalizes the fields in o.Encryption.

func (*Entry) SpecifyEncryption

func (o *Entry) SpecifyEncryption(v int)

SpecifyEncryption takes normalizes encryption values and changes them to the version specific values PAN-OS will be expecting.

Param v should be 1 if you're running against PAN-OS 6.1; 2 if you're running against 7.0 or later.

type FwIpsec

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

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

func (*FwIpsec) Delete

func (c *FwIpsec) Delete(e ...interface{}) error

Delete removes the given IPSec crypto profile(s) from the firewall.

Profiles can be either a string or an Entry object.

func (*FwIpsec) Edit

func (c *FwIpsec) Edit(e Entry) error

Edit performs EDIT to create / update an IPSec crypto profile.

func (*FwIpsec) Get

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

Get performs GET to retrieve information for the given IPSec crypto profile.

func (*FwIpsec) GetList

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

GetList performs GET to retrieve a list of IPSec crypto profiles.

func (*FwIpsec) Initialize

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

Initialize is invoked when Initialize on the pango.Client is called.

func (*FwIpsec) Set

func (c *FwIpsec) Set(e ...Entry) error

Set performs SET to create / update one or more IPSec crypto profiles.

func (*FwIpsec) Show

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

Get performs SHOW to retrieve information for the given IPSec crypto profile.

func (*FwIpsec) ShowList

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

ShowList performs SHOW to retrieve a list of IPSec crypto profiles.

type PanoIpsec

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

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

func (*PanoIpsec) Delete

func (c *PanoIpsec) Delete(tmpl, ts string, e ...interface{}) error

Delete removes the given IPSec crypto profile(s) from the firewall.

Profiles can be either a string or an Entry object.

func (*PanoIpsec) Edit

func (c *PanoIpsec) Edit(tmpl, ts string, e Entry) error

Edit performs EDIT to create / update an IPSec crypto profile.

func (*PanoIpsec) Get

func (c *PanoIpsec) Get(tmpl, ts, name string) (Entry, error)

Get performs GET to retrieve information for the given IPSec crypto profile.

func (*PanoIpsec) GetList

func (c *PanoIpsec) GetList(tmpl, ts string) ([]string, error)

GetList performs GET to retrieve a list of IPSec crypto profiles.

func (*PanoIpsec) Initialize

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

Initialize is invoked when Initialize on the pango.Client is called.

func (*PanoIpsec) Set

func (c *PanoIpsec) Set(tmpl, ts string, e ...Entry) error

Set performs SET to create / update one or more IPSec crypto profiles.

func (*PanoIpsec) Show

func (c *PanoIpsec) Show(tmpl, ts, name string) (Entry, error)

Get performs SHOW to retrieve information for the given IPSec crypto profile.

func (*PanoIpsec) ShowList

func (c *PanoIpsec) ShowList(tmpl, ts string) ([]string, error)

ShowList performs SHOW to retrieve a list of IPSec crypto profiles.

Jump to

Keyboard shortcuts

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