Documentation ¶
Index ¶
- type PgDB
- func (pgdb *PgDB) AllStorages(ctx context.Context) (ret []model.Storage, err error)
- func (pgdb *PgDB) AllVolumes(ctx context.Context, filter database.VolumeFilter) (ret []model.Volume, err error)
- func (pgdb *PgDB) Close() error
- func (pgdb *PgDB) CreateStorage(ctx context.Context, storage *model.Storage) error
- func (pgdb *PgDB) CreateVolume(ctx context.Context, volume *model.Volume) error
- func (pgdb *PgDB) DeleteStorage(ctx context.Context, storage *model.Storage) error
- func (pgdb *PgDB) DeleteVolume(ctx context.Context, volume *model.Volume) error
- func (pgdb *PgDB) DeleteVolumes(ctx context.Context, volumes []model.Volume) error
- func (pgdb *PgDB) LeastUsedStorage(ctx context.Context, minFree int) (ret model.Storage, err error)
- func (pgdb *PgDB) NamespaceVolumes(ctx context.Context, nsID string) (ret []model.Volume, err error)
- func (pgdb *PgDB) StorageByName(ctx context.Context, name string) (ret model.Storage, err error)
- func (pgdb *PgDB) Transactional(fn func(tx database.DB) error) error
- func (pgdb *PgDB) UpdateStorage(ctx context.Context, name string, storage model.Storage) error
- func (pgdb *PgDB) UpdateVolume(ctx context.Context, volume *model.Volume) error
- func (pgdb *PgDB) UserVolumes(ctx context.Context, userID string) (ret []model.Volume, err error)
- func (pgdb *PgDB) VolumeByLabel(ctx context.Context, nsID, label string) (ret model.Volume, err error)
- type VolumeFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgDB ¶
type PgDB struct {
// contains filtered or unexported fields
}
func (*PgDB) AllStorages ¶
func (*PgDB) AllVolumes ¶
func (*PgDB) CreateStorage ¶
func (*PgDB) CreateVolume ¶
func (*PgDB) DeleteStorage ¶
func (*PgDB) DeleteVolume ¶
func (*PgDB) DeleteVolumes ¶
func (*PgDB) LeastUsedStorage ¶
func (*PgDB) NamespaceVolumes ¶
func (*PgDB) StorageByName ¶
func (*PgDB) UpdateStorage ¶
func (*PgDB) UpdateVolume ¶
func (*PgDB) UserVolumes ¶
type VolumeFilter ¶
type VolumeFilter database.VolumeFilter
Click to show internal directories.
Click to hide internal directories.