licensemanager

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type License

type License struct {
	LicenseStatus           string   `json:"license_status,omitempty"`
	Version                 string   `json:"version,omitempty"`
	CreationDate            string   `json:"creation_date,omitempty"`
	ExpiryDate              string   `json:"expiry_date,omitempty"`
	LastRefreshedDate       string   `json:"last_refreshed_date,omitempty"`
	Customer                string   `json:"customer,omitempty"`
	SerialNumber            string   `json:"serial_number,omitempty"`
	Product                 string   `json:"product,omitempty"`
	LicenseCode             string   `json:"license_code,omitempty"`
	LicenseMessage          string   `json:"license_message,omitempty"`
	Status                  int      `json:"status,omitempty"`
	Message                 int      `json:"message,omitempty"`
	MaxHosts                int      `json:"max_hosts,omitempty"`
	MaxAuditedHosts         int      `json:"max_audited_hosts,omitempty"`
	MaxConcurrentSSHConns   int      `json:"max_concurrent_ssh_conns,omitempty"`
	MaxConcurrentRDPConns   int      `json:"max_concurrent_rdp_conns,omitempty"`
	MaxConcurrentHTTPSConns int      `json:"max_concurrent_https_conns,omitempty"`
	MaxConcurrentVNCConns   int      `json:"max_concurrent_vnc_conns,omitempty"`
	MaxUsers                int      `json:"max_users,omitempty"`
	AnalyticsEnabled        bool     `json:"analytics_enabled,omitempty"`
	IsOffline               bool     `json:"isoffline,omitempty"`
	Optin                   bool     `json:"optin,omitempty"`
	Features                []string `json:"features,omitempty"`
	HostsInUse              int      `json:"hosts_in_use,omitempty"`
	AuditHostsInUse         int      `json:"audit_hosts_in_use,omitempty"`
	UsersInUse              int      `json:"users_in_use,omitempty"`
}

License license definition

type LicenseManager

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

LicenseManager is a license manager client instance.

func New

New creates a new license manager client instance, using the argument SDK API client.

func (*LicenseManager) DeactivateLicense

func (store *LicenseManager) DeactivateLicense() error

DeactivateLicense deactivate license

func (*LicenseManager) GetMobileGwRegistration added in v1.32.0

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

Get PrivX registration status to mobilegw

func (*LicenseManager) License

func (store *LicenseManager) License() (*License, error)

License return privx license

func (*LicenseManager) RefreshLicense

func (store *LicenseManager) RefreshLicense() (*License, error)

RefreshLicense refresh the license info

func (*LicenseManager) RegisterToMobileGW added in v1.32.0

func (store *LicenseManager) RegisterToMobileGW() error

Register PrivX instance to mobilegw

func (*LicenseManager) SetLicense

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

SetLicense post a new license to server

func (*LicenseManager) SetLicenseStatistics

func (store *LicenseManager) SetLicenseStatistics(optin bool) error

SetLicenseStatistics settings for SSH license statistics

func (*LicenseManager) UnregisterToMobileGW added in v1.32.0

func (store *LicenseManager) UnregisterToMobileGW() error

Unregister PrivX instance from mobilegw

type RegistrationStatus added in v1.32.0

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

Jump to

Keyboard shortcuts

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