Files
athens/pkg/storage/version.go
Rob j Loranger 9df207561d Add .info to upload payload (#141)
* 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`
2018-05-29 08:03:01 +02:00

11 lines
216 B
Go

package storage
import "io"
// Version represents a version of a module and contains .mod file, a .info file and zip file of a specific version
type Version struct {
Mod []byte
Zip io.ReadCloser
Info []byte
}