licensemanager

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 1 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"`
	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"`
	AnalyticsEnabled        bool     `json:"analytics_enabled,omitempty"`
	IsOffline               bool     `json:"isoffline,omitempty"`
	Optin                   bool     `json:"optin,omitempty"`
	Features                []string `json:"features,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) 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) 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

Jump to

Keyboard shortcuts

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