loopback

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package loopback is the client.Network.LoopbackInterface namespace.

Normalized object: Entry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name              string
	Comment           string
	NetflowProfile    string
	StaticIps         []string // ordered
	ManagementProfile string
	Mtu               int
	AdjustTcpMss      bool
	Ipv4MssAdjust     int
	Ipv6MssAdjust     int
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a VLAN interface.

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.

type FwLoopback

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

FwLoopback is the client.Network.LoopbackInterface namespace.

func (*FwLoopback) Delete

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

Delete removes the given loopback interface(s) from the firewall.

Interfaces can be a string or an Entry object.

func (*FwLoopback) Edit

func (c *FwLoopback) Edit(vsys string, e Entry) error

Edit performs EDIT to create / update the specified loopback interface.

Specifying a non-empty vsys will import the interface into that vsys, allowing the vsys to use it.

func (*FwLoopback) Get

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

Get performs GET to retrieve information for the given loopback interface.

func (*FwLoopback) GetList

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

GetList performs GET to retrieve a list of loopback interfaces.

func (*FwLoopback) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwLoopback) Set

func (c *FwLoopback) Set(vsys string, e ...Entry) error

Set performs SET to create / update one or more loopback interfaces.

Specifying a non-empty vsys will import the interfaces into that vsys, allowing the vsys to use them.

func (*FwLoopback) Show

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

Show performs SHOW to retrieve information for the given loopback interface.

func (*FwLoopback) ShowList

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

ShowList performs SHOW to retrieve a list of loopback interfaces.

type PanoLoopback

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

PanoLoopback is the client.Network.LoopbackInterface namespace.

func (*PanoLoopback) Delete

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

Delete removes the given loopback interface(s) from the firewall.

Interfaces can be a string or an Entry object.

func (*PanoLoopback) Edit

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

Edit performs EDIT to create / update the specified loopback interface.

Specifying a non-empty vsys will import the interface into that vsys, allowing the vsys to use it.

func (*PanoLoopback) Get

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

Get performs GET to retrieve information for the given loopback interface.

func (*PanoLoopback) GetList

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

GetList performs GET to retrieve a list of loopback interfaces.

func (*PanoLoopback) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoLoopback) Set

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

Set performs SET to create / update one or more loopback interfaces.

Specifying a non-empty vsys will import the interfaces into that vsys, allowing the vsys to use them.

func (*PanoLoopback) Show

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

Show performs SHOW to retrieve information for the given loopback interface.

func (*PanoLoopback) ShowList

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

ShowList performs SHOW to retrieve a list of loopback interfaces.

Jump to

Keyboard shortcuts

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