mirror of
https://github.com/gomods/athens
synced 2026-02-10 14:38:12 +00:00
* Add .info to upload payload everywhere else as well + Upload payload includes Info + CLI uploads `version.info` as blob to storage + Getter and Saver methods updated for all storages implemented + Migration updated to include Info column + Tests no longer check RevInfo, now checking for Info same as Zip + Updated docs * newline in .fizz * change RevInfo.Info to []byte + change to []byte instead of io.Reader + adjust tests to check for info byte contents directly + add error check for minio client GetObject `pkg/storage/minio/getter.go`
11 lines
255 B
Go
11 lines
255 B
Go
package storage
|
|
|
|
// Module represents a vgo module saved in a storage backend.
|
|
type Module struct {
|
|
Module string `bson:"module"`
|
|
Version string `bson:"version"`
|
|
Mod []byte `bson:"mod"`
|
|
Zip []byte `bson:"zip"`
|
|
Info []byte `bson:"info"`
|
|
}
|