Documentation ¶
Index ¶
- type DB
- func (db *DB) StorageImageCreate(s *spinregistry.Storage) (*spinregistry.Image, error)
- func (db *DB) StorageImageDelete(volume, image string) error
- func (db *DB) StorageImageGet(volume, image string) (*spinregistry.Image, error)
- func (db *DB) StorageImageList(volume string) ([]string, error)
- func (db *DB) StorageVolumeCreate(name string, path string) error
- func (db *DB) StorageVolumeDelete(name string) error
- func (db *DB) StorageVolumeList() (map[string]string, error)
- func (db *DB) VMCreate(vm *spinregistry.UpdatedVM) (uint64, error)
- func (db *DB) VMDelete(id uint64) error
- func (db *DB) VMGet(id uint64) (*spinregistry.UpdatedVM, error)
- func (db *DB) VMList() ([]uint64, error)
- func (db *DB) VMUpdate(id uint64, vm *spinregistry.UpdatedVM) error
- type DBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is the handle into the registry database.
func (*DB) StorageImageCreate ¶
func (db *DB) StorageImageCreate(s *spinregistry.Storage) (*spinregistry.Image, error)
StorageImageCreate creates an image within a volume.
func (*DB) StorageImageDelete ¶
StorageImageDelete will delete an image from the volume.
func (*DB) StorageImageGet ¶
func (db *DB) StorageImageGet(volume, image string) (*spinregistry.Image, error)
StorageImageGet will retrieve an image from the volume as a *spinregistry.Storage.
func (*DB) StorageImageList ¶
StorageImageList will retrieve a list of images for a given volume name.
func (*DB) StorageVolumeCreate ¶
StorageVolumeCreate creates a volume
func (*DB) StorageVolumeDelete ¶
StorageVolumeDelete creates a volume
func (*DB) StorageVolumeList ¶
StorageVolumeList lists all volumes
func (*DB) VMCreate ¶
func (db *DB) VMCreate(vm *spinregistry.UpdatedVM) (uint64, error)
VMCreate creates a vm and returns its id, which is auto-generated.
func (*DB) VMGet ¶
func (db *DB) VMGet(id uint64) (*spinregistry.UpdatedVM, error)
VMGet retrieves the vm at the id specified.
Click to show internal directories.
Click to hide internal directories.