license

package
v5.2.0-beta2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenLicKey

func GenLicKey(licSoPath string) (string, error)

GenLicKey -

func VerifyNodes

func VerifyNodes(licPath, licSoPath string, nodeNums int) bool

VerifyNodes verifies the number of the nodes in the license.

func VerifyTime

func VerifyTime(licPath, licSoPath string) bool

VerifyTime verifies the time in the license.

Types

type LicInfo

type LicInfo struct {
	LicKey     string   `json:"license_key"`
	Code       string   `json:"code"`
	Company    string   `json:"company"`
	Node       int64    `json:"node"`
	CPU        int64    `json:"cpu"`
	Memory     int64    `json:"memory"`
	Tenant     int64    `json:"tenant"`
	EndTime    string   `json:"end_time"`
	StartTime  string   `json:"start_time"`
	DataCenter int64    `json:"data_center"`
	ModuleList []string `json:"module_list"`
}

LicInfo license information

func GetLicInfo

func GetLicInfo(licPath, licSoPath string) (*LicInfo, error)

GetLicInfo -

Jump to

Keyboard shortcuts

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