Documentation
¶
Index ¶
- type Config
- type MongoDB
- func (m *MongoDB) Bootstrap() error
- func (m *MongoDB) Create(ctx context.Context, plugin db.Plugin) (db.Plugin, error)
- func (m *MongoDB) CreateHash(ctx context.Context, module, version, hash string) (db.PluginHash, error)
- func (m *MongoDB) Delete(ctx context.Context, id string) error
- func (m *MongoDB) Get(ctx context.Context, id string) (db.Plugin, error)
- func (m *MongoDB) GetByName(ctx context.Context, name string, filterDisabled, filterHidden bool) (db.Plugin, error)
- func (m *MongoDB) GetHashByName(ctx context.Context, module, version string) (db.PluginHash, error)
- func (m *MongoDB) List(ctx context.Context, page db.Pagination) ([]db.Plugin, string, error)
- func (m *MongoDB) Ping(ctx context.Context) error
- func (m *MongoDB) SearchByName(ctx context.Context, name string, page db.Pagination) ([]db.Plugin, string, error)
- func (m *MongoDB) Update(ctx context.Context, id string, plugin db.Plugin) (db.Plugin, error)
- type MongoIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
MongoDB is a mongoDB client.
func (*MongoDB) CreateHash ¶
func (m *MongoDB) CreateHash(ctx context.Context, module, version, hash string) (db.PluginHash, error)
CreateHash creates a new plugin hash.
func (*MongoDB) GetByName ¶
func (m *MongoDB) GetByName(ctx context.Context, name string, filterDisabled, filterHidden bool) (db.Plugin, error)
GetByName gets the plugin with the given name.
func (*MongoDB) GetHashByName ¶
GetHashByName returns the hash corresponding the given name.
Click to show internal directories.
Click to hide internal directories.