srvcgrp

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: ISC Imports: 3 Imported by: 3

Documentation

Overview

Package srvcgrp is the client.Objects.ServiceGroup 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
	Services []string // unordered
	Tags     []string // ordered
}

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

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 FwSrvcGrp

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

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

func (*FwSrvcGrp) Delete

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

Delete removes the given service groups from the firewall.

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

func (*FwSrvcGrp) Edit

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

Edit performs EDIT to create / update a service group.

func (*FwSrvcGrp) Get

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

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

func (*FwSrvcGrp) GetList

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

GetList performs GET to retrieve a list of service groups.

func (*FwSrvcGrp) Initialize

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

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

func (*FwSrvcGrp) Set

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

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

func (*FwSrvcGrp) Show

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

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

func (*FwSrvcGrp) ShowList

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

ShowList performs SHOW to retrieve a list of service groups.

type PanoSrvcGrp

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

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

func (*PanoSrvcGrp) Delete

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

Delete removes the given service groups from the firewall.

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

func (*PanoSrvcGrp) Edit

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

Edit performs EDIT to create / update a service group.

func (*PanoSrvcGrp) Get

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

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

func (*PanoSrvcGrp) GetList

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

GetList performs GET to retrieve a list of service groups.

func (*PanoSrvcGrp) Initialize

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

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

func (*PanoSrvcGrp) Set

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

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

func (*PanoSrvcGrp) Show

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

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

func (*PanoSrvcGrp) ShowList

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

ShowList performs SHOW to retrieve a list of service groups.

Jump to

Keyboard shortcuts

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