Ai
1 Star 0 Fork 0

smartos-club/dsapid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
types.go 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
package imgapi
import (
"github.com/MerlinDMC/dsapid"
"time"
)
const (
CurrentManifestVersion uint = 2
)
type imgapiManifest struct {
V uint `json:"v"`
Uuid string `json:"uuid"`
Name string `json:"name"`
Version string `json:"version"`
Description string `json:"description"`
Os string `json:"os"`
Type dsapid.ManifestType `json:"type"`
Homepage string `json:"homepage,omitempty"`
Urn string `json:"urn,omitempty"`
State dsapid.ManifestState `json:"state"`
Disabled bool `json:"disabled"`
Public bool `json:"public"`
PublishedAt time.Time `json:"published_at"`
Owner string `json:"owner"`
Requirements dsapid.Table `json:"requirements,omitempty"`
Users []dsapid.Table `json:"users,omitempty"`
Tags dsapid.Table `json:"tags,omitempty"`
CpuType string `json:"cpu_type,omitempty"`
ImageSize int64 `json:"image_size,omitempty"`
NicDriver string `json:"nic_driver,omitempty"`
DiskDriver string `json:"disk_driver,omitempty"`
Files []imgapiManifestFile `json:"files"`
}
type imgapiManifestFile struct {
Md5 string `json:"md5,omitempty"`
Sha1 string `json:"sha1,omitempty"`
Size int64 `json:"size"`
Compression dsapid.CompressionType `json:"compression"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/smartos-club/dsapid.git
git@gitee.com:smartos-club/dsapid.git
smartos-club
dsapid
dsapid
v0.7.2

搜索帮助