commit

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: ISC Imports: 2 Imported by: 5

Documentation

Overview

Package commit contains normalizations for firewall and Panorama commits.

Index

Constants

View Source
const (
	TypeDeviceGroup       = "device group"
	TypeTemplate          = "template"
	TypeTemplateStack     = "template stack"
	TypeLogCollectorGroup = "log collector group"
	TypeWildfireAppliance = "wildfire appliance"
	TypeWildfireCluster   = "wildfire cluster"
)

Valid values for PanoramaCommitAll.Type.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirewallCommit

type FirewallCommit struct {
	Description             string
	Admins                  []string
	ExcludeDeviceAndNetwork bool
	ExcludeSharedObjects    bool
	ExcludePolicyAndObjects bool
	Force                   bool
}

FirewallCommit is a normalized object for defining firewall commits.

This is a commit type, designed to be passed in to Client.Commit().

Admins is the list of admins whose changes should be committed.

func (FirewallCommit) Action

func (o FirewallCommit) Action() string

Action returns a commit action of an empty string.

func (FirewallCommit) Element

func (o FirewallCommit) Element() interface{}

Element returns an interface to be marshalled to perform the specified commit.

type PanoramaCommit

type PanoramaCommit struct {
	Description             string
	Admins                  []string
	DeviceGroups            []string
	Templates               []string
	TemplateStacks          []string
	WildfireAppliances      []string
	WildfireClusters        []string
	LogCollectors           []string
	LogCollectorGroups      []string
	ExcludeDeviceAndNetwork bool
	ExcludeSharedObjects    bool
	Force                   bool
}

PanoramaCommit is a normalized Panorama commit.

This is a commit type, designed to be passed in to Client.Commit().

Admins is the list of admins whose changes should be committed.

func (PanoramaCommit) Action

func (o PanoramaCommit) Action() string

Action returns a commit action of an empty string.

func (PanoramaCommit) Element

func (o PanoramaCommit) Element() interface{}

Element returns an interface to be marshalled to perform the specified commit.

type PanoramaCommitAll

type PanoramaCommitAll struct {
	Type                string
	Name                string
	Description         string
	IncludeTemplate     bool
	ForceTemplateValues bool
	Devices             []string
}

PanoramaCommitAll is a normalized Panorama commit-all.

This is a commit type, designed to be passed in to Client.Commit().

Depending on the type of commit specified, only certain parameters of this object are used.

Regardless of the type given, all commits will use the Description and Name params.

TypeDeviceGroup types uses Devices, IncludeTemplate, and ForceTemplateValues.

TypeTemplate and TypeTemplateStack uses Devices and ForceTemplateValues.

func (PanoramaCommitAll) Action

func (o PanoramaCommitAll) Action() string

Action returns a commit action of "all".

func (PanoramaCommitAll) Element

func (o PanoramaCommitAll) Element() interface{}

Element returns an interface to be marshalled to perform the specified commit.

Jump to

Keyboard shortcuts

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