Documentation ¶
Index ¶
- type ModuleStore
- func (r *ModuleStore) Connect() error
- func (r *ModuleStore) Delete(module, vsn string) error
- func (r *ModuleStore) Exists(module, vsn string) bool
- func (r *ModuleStore) Get(module, vsn string) (*storage.Version, error)
- func (r *ModuleStore) List(module string) ([]string, error)
- func (r *ModuleStore) Save(_ context.Context, module, version string, mod []byte, zip io.Reader, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 (*ModuleStore) Connect ¶
func (r *ModuleStore) Connect() error
Connect creates connection to rdmbs backend.
func (*ModuleStore) Delete ¶
func (r *ModuleStore) Delete(module, vsn string) error
Delete removes a specific version of a module
func (*ModuleStore) Exists ¶
func (r *ModuleStore) Exists(module, vsn string) bool
Exists checks for a specific version of a module
func (*ModuleStore) Get ¶
func (r *ModuleStore) Get(module, vsn string) (*storage.Version, error)
Get a specific version of a module
Click to show internal directories.
Click to hide internal directories.