Documentation ¶
Index ¶
- func NewTestSuite(model *suite.Model) (storage.TestSuite, error)
- type ModuleStore
- func (r *ModuleStore) Connect() error
- func (r *ModuleStore) Delete(ctx context.Context, module, version string) error
- func (r *ModuleStore) Exists(ctx context.Context, module, vsn string) bool
- func (r *ModuleStore) Get(ctx context.Context, module, vsn string) (*storage.Version, error)
- func (r *ModuleStore) List(ctx context.Context, module string) ([]string, error)
- func (r *ModuleStore) Save(ctx context.Context, module, version string, mod []byte, zip io.Reader, ...) 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 rdbms(postgres, mysql, sqlite, cockroachdb) backed storage backend.
func NewRDBMSStorage ¶
func NewRDBMSStorage(connectionName string) *ModuleStore
NewRDBMSStorage returns an unconnected RDBMS Module Storage that satisfies the Storage interface. You must call Connect() on the returned store before using it. connectionName
func NewRDBMSStorageWithConn ¶
func NewRDBMSStorageWithConn(connection *pop.Connection) *ModuleStore
NewRDBMSStorageWithConn returns a connected RDBMS Module Storage that satisfies the Storage interface. You must call Connect() on the returned store before using it. connectionName
func (*ModuleStore) Connect ¶
func (r *ModuleStore) Connect() error
Connect creates connection to rdmbs backend.
func (*ModuleStore) Delete ¶
func (r *ModuleStore) Delete(ctx context.Context, module, version string) error
Delete removes a specific version of a module.
func (*ModuleStore) Exists ¶
func (r *ModuleStore) Exists(ctx context.Context, module, vsn string) bool
Exists checks for a specific version of a module
Source Files ¶
Click to show internal directories.
Click to hide internal directories.