mirror of
https://github.com/gomods/athens
synced 2026-02-12 15:38:09 +00:00
* Added new cataloger interface * Implementing catalog protocol * Propagated to protocol and over * First round of fixes * S3 almost ready, need to be tested * Going on with testing s3 * Better testing with s3 * Simplified catalog tests * Preparing gcp tests to access a gcp instance * Fixing initialization errors * Removed some prints * Gcp ready, to be tested * Gcp working * Aligned bucket mock to catalog method * Switched res payload to json * Added catalog method to all storage instances * Added catalog method to unsupported storages * Fixed with pool test * Restored tests * Fixed gcp constructor * Implemented catalog for fs * Removed trace * E2e tests, fixed fs * Fixed module name return value * Added cataloger method to azure storage * Added docs * Changed pagesize parameter name * Fixed gofmt error * Added json tags to result. Fixed lint warning * Removed extra line * Changed not implemented error to http.KindNotImplemented * Checking for inequality on results * Lower-cased json keys * Added cleaning of path separator * Fixed review comments * Add catalog endpoint for mongo * Add omitempty to ID * Fix catalog tests * update for next token * fix e2e * Make query readable * Fix language and e2e script * remove new line
16 lines
382 B
Go
16 lines
382 B
Go
package storage
|
|
|
|
import (
|
|
"github.com/globalsign/mgo/bson"
|
|
)
|
|
|
|
// Module represents a vgo module saved in a storage backend.
|
|
type Module struct {
|
|
ID bson.ObjectId `bson:"_id,omitempty"`
|
|
Module string `bson:"module"`
|
|
Version string `bson:"version"`
|
|
Mod []byte `bson:"mod"`
|
|
Zip []byte `bson:"zip"`
|
|
Info []byte `bson:"info"`
|
|
}
|