Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBAdapter ¶
type DBAdapter interface { ListVolume(ctx context.Context, limit, offset int, query interface{}) ([]*model.Volume, error) GetVolume(ctx context.Context, id string) (*model.Volume, error) CreateVolume(ctx context.Context, volume *model.Volume) (*model.Volume, error) UpdateVolume(ctx context.Context, volume *model.Volume) (*model.Volume, error) DeleteVolume(ctx context.Context, id string) error }
var DbAdapter DBAdapter
DbAdapter is a global variable that controls database module.
Click to show internal directories.
Click to hide internal directories.