Documentation ¶
Index ¶
- func NewTestSuite(model *suite.Model) (storage.TestSuite, error)
- type ModuleStore
- func (s *ModuleStore) Delete(ctx context.Context, module, version string) error
- func (s *ModuleStore) Exists(ctx context.Context, module, vsn string) (bool, error)
- func (s *ModuleStore) GoMod(ctx context.Context, module, vsn string) ([]byte, error)
- func (s *ModuleStore) Info(ctx context.Context, module, vsn string) ([]byte, error)
- func (s *ModuleStore) List(ctx context.Context, module string) ([]string, error)
- func (s *ModuleStore) Save(ctx context.Context, module, version string, mod []byte, zip io.Reader, ...) error
- func (s *ModuleStore) Zip(ctx context.Context, module, vsn string) (io.ReadCloser, error)
- type TestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModuleStore ¶
type ModuleStore struct {
// contains filtered or unexported fields
}
ModuleStore represents a mongo backed storage backend.
func NewStorage ¶
func NewStorage(connectionString string) (*ModuleStore, error)
NewStorage returns a connected Mongo backed storage that satisfies the Backend interface.
func NewStorageWithCert ¶ added in v0.1.0
func NewStorageWithCert(connectionString, certPath string) (*ModuleStore, error)
NewStorageWithCert returns a connected Mongo backed storage that satisfies the Backend interface.
func (*ModuleStore) Delete ¶
func (s *ModuleStore) Delete(ctx context.Context, module, version string) error
Delete removes a specific version of a module
func (*ModuleStore) Save ¶
func (s *ModuleStore) Save(ctx context.Context, module, version string, mod []byte, zip io.Reader, info []byte) error
Save stores a module in mongo storage.
func (*ModuleStore) Zip ¶ added in v0.1.0
func (s *ModuleStore) Zip(ctx context.Context, module, vsn string) (io.ReadCloser, error)
Zip implements storage.Getter
Click to show internal directories.
Click to hide internal directories.