Documentation ¶
Index ¶
- func Close() error
- type DBMng
- func (m *DBMng) CreateInstance(ins *types.Instance) error
- func (m *DBMng) DeleteInstance(insName string) error
- func (m *DBMng) GetInstance(hostID, name string) (*types.Instance, error)
- func (m *DBMng) UpdateInstanceImage(name, image string) error
- func (m *DBMng) UpdateInstanceStatus(name string, status bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBMng ¶
type DBMng struct {
// contains filtered or unexported fields
}
var DB *DBMng
DB is a global db manager
func (*DBMng) DeleteInstance ¶
func (*DBMng) GetInstance ¶
func (*DBMng) UpdateInstanceImage ¶
Click to show internal directories.
Click to hide internal directories.