srvc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: ISC Imports: 3 Imported by: 3

Documentation

Overview

Package srvc is the client.Objects.Services 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
	Description     string
	Protocol        string
	SourcePort      string
	DestinationPort string
	Tags            []string
}

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