Added "Package" DataType
This commit is contained in:
parent
b1c35b694a
commit
fa891827e3
3 changed files with 24 additions and 0 deletions
8
Lotus/Checksums.go
Normal file
8
Lotus/Checksums.go
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
package Lotus
|
||||||
|
|
||||||
|
type Checksum struct{
|
||||||
|
MD5 string
|
||||||
|
SHA1 string
|
||||||
|
SHA256 string
|
||||||
|
SHA512 string
|
||||||
|
}
|
||||||
13
Lotus/Package.go
Normal file
13
Lotus/Package.go
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
package Lotus
|
||||||
|
|
||||||
|
type Package struct {
|
||||||
|
Publisher string
|
||||||
|
Name string
|
||||||
|
Version string
|
||||||
|
Description string
|
||||||
|
Tags Tags
|
||||||
|
PackageSize int64
|
||||||
|
Checksums Checksum
|
||||||
|
Architecture string
|
||||||
|
Dependencies []Package
|
||||||
|
}
|
||||||
3
Lotus/Tags.go
Normal file
3
Lotus/Tags.go
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
package Lotus
|
||||||
|
|
||||||
|
type Tags []string
|
||||||
Reference in a new issue