entity

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailablePackageInfo

type AvailablePackageInfo struct {
	BasePackageInfo
}

AvailablePackageInfo 表示可安装的包

type BasePackageInfo

type BasePackageInfo struct {
	ID string // PK

	Name         string // the package name
	URL          string
	Filename     string
	Type         string // mime-type
	SHA256       string
	Version      string
	Dependencies string // 依赖的其它包名,以逗号“,”隔开
	Platform     string
	Main         string // path to main
	Revision     int
	Size         int64
	Date         int64
	DateString   string
}

BasePackageInfo 基本的包结构

type InstalledPackageInfo

type InstalledPackageInfo struct {
	BasePackageInfo
	AutoUpgrade bool
	File        string // local-path
}

InstalledPackageInfo 表示已经安装的包

type MainHead added in v0.0.2

type MainHead struct {
	Name        string // name of app
	Title       string // title  of app
	Description string // desc of app
	Package     string // name of package
	Script      string // the default script name
}

MainHead 主配置文件中的头部

type MainScript added in v0.0.2

type MainScript struct {
	Name             string // the name of script
	Arguments        string // the cli args
	Executable       string // path to exe
	WorkingDirectory string // path to WD
}

MainScript 主配置文件中的脚本

type ManifestItem

type ManifestItem struct {
	ID         string
	Name       string // 文件名
	Path       string
	SHA256     string
	Size       int64
	IsDir      bool
	IsOverride bool
}

ManifestItem 文件清单项目

type ManifestMeta

type ManifestMeta struct {
	BasePackageInfo
	Main                  string
	SignatureAlgorithm    string
	SignaturePublicFinger string // 公钥指纹
	SignaturePublicKey    string // path to key file
	SignaturePrivateKey   string // path to key file
}

ManifestMeta 文件清单元数据(主要是包信息)

type PackSource

type PackSource struct {
	URL string // URL
	ID  string // hash of URL
}

PackSource 软件包安装源

type SignatureInfo

type SignatureInfo struct {
	BasePackageInfo

	Secret       string
	Plain        string
	Algorithm    string
	PublicFinger string // 公钥指纹
}

Jump to

Keyboard shortcuts

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