Help us shape the future of Go! Take the 2026 Go Developer Survey

licen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: ISC Imports: 4 Imported by: 0

Documentation

Overview

Package licen is the client.Licensing namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Licen

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

Licen is the client.Licensing namespace.

func (*Licen) Activate

func (c *Licen) Activate(auth string) error

Activate updates a license using the given auth code.

func (*Licen) Current

func (c *Licen) Current() ([]util.License, error)

Current returns the licenses currently installed.

func (*Licen) Deactivate

func (c *Licen) Deactivate() error

Deactivate removes all licenses from a firewall.

In order for this function to work, the following must be true:

  • PAN-OS 7.1 or later
  • PAN-OS has connectivity to the Palo Alto Networks support server
  • Check server identity is enabled
  • The licensing API key has been installed

func (*Licen) DeleteApiKey

func (c *Licen) DeleteApiKey() error

DeleteApiKey deletes the licensing API key.

func (*Licen) Fetch

func (c *Licen) Fetch() ([]util.License, error)

Fetch fetches licenses from the license server.

func (*Licen) GetApiKey

func (c *Licen) GetApiKey() (string, error)

GetApiKey returns the licensing API key.

func (*Licen) Initialize

func (c *Licen) Initialize(i util.XapiClient)

Initialize is invoked on client.Initialize().

func (*Licen) SetApiKey

func (c *Licen) SetApiKey(k string) error

SetApiKey sets the licensing API key.

Jump to

Keyboard shortcuts

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