Documentation
¶
Index ¶
- type License
- type LicenseManager
- func (store *LicenseManager) DeactivateLicense() error
- func (store *LicenseManager) License() (*License, error)
- func (store *LicenseManager) RefreshLicense() (*License, error)
- func (store *LicenseManager) SetLicense(licenseCode string) error
- func (store *LicenseManager) SetLicenseStatistics(optin bool) error
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 ¶
func New(api restapi.Connector) *LicenseManager
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
Click to show internal directories.
Click to hide internal directories.