pack

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ListName = "__LIST__"
View Source
const ManifestName = "manifest.json"
View Source
const SignName = "__SIGN__"

Variables

This section is empty.

Functions

func Pack

func Pack(key []byte, dir string, out string) error

func PublicKey

func PublicKey() []byte

func Unpack

func Unpack(filename string, target string) error

Types

type License

type License struct {
	AppId     string   `json:"app_id,omitempty"` //应用ID
	Owner     string   `json:"owner,omitempty"`  //拥有者
	Issuer    string   `json:"issuer,omitempty"` //发行者
	Issued    string   `json:"issued,omitempty"` //发布日期
	Expire    string   `json:"expire,omitempty"` //失效日期
	Cpuid     string   `json:"cpuid,omitempty"`  //CPUID
	Mac       string   `json:"mac,omitempty"`    //网卡ID
	Hosts     []string `json:"hosts,omitempty"`  //域名
	Signature string   `json:"sign,omitempty"`   //签名
}

func (*License) Decode

func (l *License) Decode(lic string) error

func (*License) Encode

func (l *License) Encode() (string, error)

func (*License) Sign

func (l *License) Sign(privateKey []byte)

func (*License) String

func (l *License) String() string

func (*License) Verify

func (l *License) Verify() error

Jump to

Keyboard shortcuts

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