Documentation ¶
Overview ¶
Package ipsec is the client.Network.IpsecCryptoProfile namespace.
Normalized object: Entry
Index ¶
- Constants
- type Entry
- type FwIpsec
- func (c *FwIpsec) Delete(e ...interface{}) error
- func (c *FwIpsec) Edit(e Entry) error
- func (c *FwIpsec) Get(name string) (Entry, error)
- func (c *FwIpsec) GetList() ([]string, error)
- func (c *FwIpsec) Initialize(con util.XapiClient)
- func (c *FwIpsec) Set(e ...Entry) error
- func (c *FwIpsec) Show(name string) (Entry, error)
- func (c *FwIpsec) ShowList() ([]string, error)
- type PanoIpsec
- func (c *PanoIpsec) Delete(tmpl, ts string, e ...interface{}) error
- func (c *PanoIpsec) Edit(tmpl, ts string, e Entry) error
- func (c *PanoIpsec) Get(tmpl, ts, name string) (Entry, error)
- func (c *PanoIpsec) GetList(tmpl, ts string) ([]string, error)
- func (c *PanoIpsec) Initialize(con util.XapiClient)
- func (c *PanoIpsec) Set(tmpl, ts string, e ...Entry) error
- func (c *PanoIpsec) Show(tmpl, ts, name string) (Entry, error)
- func (c *PanoIpsec) ShowList(tmpl, ts string) ([]string, error)
Constants ¶
const ( ProtocolEsp = "esp" ProtocolAh = "ah" )
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" )
const ( TimeSeconds = "seconds" TimeMinutes = "minutes" TimeHours = "hours" TimeDays = "days" )
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 ¶
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 ¶
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 ¶
Delete removes the given IPSec crypto profile(s) from the firewall.
Profiles can be either a string or an Entry object.
func (*FwIpsec) Initialize ¶
func (c *FwIpsec) Initialize(con util.XapiClient)
Initialize is invoked when Initialize on the pango.Client is called.
type PanoIpsec ¶
type PanoIpsec struct {
// contains filtered or unexported fields
}
PanoIpsec is a namespace struct, included as part of pango.Client.
func (*PanoIpsec) Delete ¶
Delete removes the given IPSec crypto profile(s) from the firewall.
Profiles can be either a string or an Entry object.
func (*PanoIpsec) Get ¶
Get performs GET to retrieve information for the given IPSec crypto profile.
func (*PanoIpsec) Initialize ¶
func (c *PanoIpsec) Initialize(con util.XapiClient)
Initialize is invoked when Initialize on the pango.Client is called.