licensemanager

package
v2.42.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LicenseManager

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

LicenseManager is a license manager client instance.

func New

New license manager client constructor.

func (*LicenseManager) DeactivateLicense

func (c *LicenseManager) DeactivateLicense() error

DeactivateLicense deactivate license.

func (*LicenseManager) GetLicense

func (c *LicenseManager) GetLicense() (map[string]interface{}, error)

MARK: License GetLicense get license.

func (*LicenseManager) GetLicenseJSSnippet

func (c *LicenseManager) GetLicenseJSSnippet() (string, error)

GetLicenseJSSnippet get PrivX license javascript snippet.

func (*LicenseManager) GetMobileGwRegistration

func (c *LicenseManager) GetMobileGwRegistration() (*RegistrationStatus, error)

MARK: Mobile Gateway Get PrivX registration status to mobile gateway.

func (*LicenseManager) RefreshLicense

func (c *LicenseManager) RefreshLicense() (map[string]interface{}, error)

RefreshLicense refresh license info.

func (*LicenseManager) RegisterToMobileGw

func (c *LicenseManager) RegisterToMobileGw() error

RegisterToMobileGw register PrivX instance to mobile gateway.

func (*LicenseManager) SetLicense

func (c *LicenseManager) SetLicense(licenseCode string) error

SetLicense set new license.

func (*LicenseManager) SetLicenseStatistics

func (c *LicenseManager) SetLicenseStatistics(optin LicenseStatistics) error

SetLicenseStatistics set settings for SSH license statistics.

func (*LicenseManager) Status

func (c *LicenseManager) Status() (*response.ServiceStatus, error)

MARK: Status Status get license manager microservice status.

func (*LicenseManager) UnregisterFromMobileGw

func (c *LicenseManager) UnregisterFromMobileGw() error

UnregisterFromMobileGw unregister PrivX instance from mobile gateway.

type LicenseStatistics

type LicenseStatistics struct {
	Optin bool `json:"optin"`
}

LicenseStatistics license statistics request definition.

type RegistrationStatus

type RegistrationStatus struct {
	Status      string             `json:"status"`
	UsedSources []rolestore.Source `json:"used_sources"`
	ProductId   string             `json:"product_id"`
}

RegistrationStatus mobile gw registration status response definition.

Jump to

Keyboard shortcuts

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