ike

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: 4 Imported by: 1

Documentation

Overview

Package ike is the client.Network.IkeCryptoProfile namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	EncryptionDes    = "des"
	Encryption3des   = "3des"
	EncryptionAes128 = "aes-128-cbc"
	EncryptionAes192 = "aes-192-cbc"
	EncryptionAes256 = "aes-256-cbc"
)
View Source
const (
	TimeSeconds = "seconds"
	TimeMinutes = "minutes"
	TimeHours   = "hours"
	TimeDays    = "days"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                   string
	DhGroup                []string
	Authentication         []string
	Encryption             []string
	LifetimeType           string
	LifetimeValue          int
	AuthenticationMultiple 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 FwIke

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

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

func (*FwIke) Delete

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

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

Profiles can be either a string or an Entry object.

func (*FwIke) Edit

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

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

func (*FwIke) Get

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

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

func (*FwIke) GetList

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

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

func (*FwIke) Initialize

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

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

func (*FwIke) Set

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

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

func (*FwIke) Show

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

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

func (*FwIke) ShowList

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

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

type PanoIke

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

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

func (*PanoIke) Delete

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

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

Profiles can be either a string or an Entry object.

func (*PanoIke) Edit

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

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

func (*PanoIke) Get

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

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

func (*PanoIke) GetList

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

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

func (*PanoIke) Initialize

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

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

func (*PanoIke) Set

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

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

func (*PanoIke) Show

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

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

func (*PanoIke) ShowList

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

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

Jump to

Keyboard shortcuts

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