srvc

package
v0.5.1 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: 3

Documentation

Overview

Package srvc is the client.Objects.Services namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	ProtocolTcp  = "tcp"
	ProtocolUdp  = "udp"
	ProtocolSctp = "sctp" // 8.1+
)

Valid Protocol values

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                      string
	Description               string
	Protocol                  string
	SourcePort                string
	DestinationPort           string
	Tags                      []string // ordered
	OverrideSessionTimeout    bool     // 8.1+
	OverrideTimeout           int      // 8.1+
	OverrideHalfClosedTimeout int      // 8.1+
	OverrideTimeWaitTimeout   int      // 8.1+
}

Entry is a normalized, version independent representation of a service object.

Protocol should be either "tcp" or "udp".

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 FwSrvc

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

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

func (*FwSrvc) Delete

func (c *FwSrvc) Delete(vsys string, e ...interface{}) error

Delete removes the given service objects from the firewall.

Service objects can be either a string or an Entry object.

func (*FwSrvc) Edit

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

Edit performs EDIT to create / update a service object.

func (*FwSrvc) Get

func (c *FwSrvc) Get(vsys, name string) (Entry, error)

Get performs GET to retrieve information for the given service object.

func (*FwSrvc) GetAll added in v0.4.0

func (c *FwSrvc) GetAll(vsys string) ([]Entry, error)

GetAll performs a GET to retrieve services.

func (*FwSrvc) GetList

func (c *FwSrvc) GetList(vsys string) ([]string, error)

GetList performs GET to retrieve a list of service objects.

func (*FwSrvc) Initialize

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

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

func (*FwSrvc) Set

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

Set performs SET to create / update one or more service objects.

func (*FwSrvc) Show

func (c *FwSrvc) Show(vsys, name string) (Entry, error)

Get performs SHOW to retrieve information for the given service object.

func (*FwSrvc) ShowAll added in v0.4.0

func (c *FwSrvc) ShowAll(vsys string) ([]Entry, error)

ShowAll performs a SHOW to retrieve services.

func (*FwSrvc) ShowList

func (c *FwSrvc) ShowList(vsys string) ([]string, error)

ShowList performs SHOW to retrieve a list of service objects.

type PanoSrvc

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

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

func (*PanoSrvc) Delete

func (c *PanoSrvc) Delete(dg string, e ...interface{}) error

Delete removes the given service objects from the firewall.

Service objects can be either a string or an Entry object.

func (*PanoSrvc) Edit

func (c *PanoSrvc) Edit(dg string, e Entry) error

Edit performs EDIT to create / update a service object.

func (*PanoSrvc) Get

func (c *PanoSrvc) Get(dg, name string) (Entry, error)

Get performs GET to retrieve information for the given service object.

func (*PanoSrvc) GetAll added in v0.4.0

func (c *PanoSrvc) GetAll(dg string) ([]Entry, error)

GetAll performs GET to retrieve all services.

func (*PanoSrvc) GetList

func (c *PanoSrvc) GetList(dg string) ([]string, error)

GetList performs GET to retrieve a list of service objects.

func (*PanoSrvc) Initialize

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

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

func (*PanoSrvc) Set

func (c *PanoSrvc) Set(dg string, e ...Entry) error

Set performs SET to create / update one or more service objects.

func (*PanoSrvc) Show

func (c *PanoSrvc) Show(dg, name string) (Entry, error)

Get performs SHOW to retrieve information for the given service object.

func (*PanoSrvc) ShowAll added in v0.4.0

func (c *PanoSrvc) ShowAll(dg string) ([]Entry, error)

ShowAll performs SHOW to retrieve all services.

func (*PanoSrvc) ShowList

func (c *PanoSrvc) ShowList(dg string) ([]string, error)

ShowList performs SHOW to retrieve a list of service objects.

Jump to

Keyboard shortcuts

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