Documentation ¶
Index ¶
- type ContainerInfo
- type Database
- func (d *Database) AddContainer(info ContainerInfo) error
- func (d *Database) Close() error
- func (d *Database) DeleteContainer(containerID string) error
- func (d *Database) GetContainer(containerID string) (*ContainerInfo, error)
- func (d *Database) GetContainersByPartialName(partialName string) ([]ContainerInfo, error)
- func (d *Database) InitSchema() error
- func (d *Database) ListContainers() ([]ContainerInfo, error)
- func (d *Database) UpdateContainerStatus(containerID, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerInfo ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) AddContainer ¶
func (d *Database) AddContainer(info ContainerInfo) error
func (*Database) DeleteContainer ¶
func (*Database) GetContainer ¶
func (d *Database) GetContainer(containerID string) (*ContainerInfo, error)
func (*Database) GetContainersByPartialName ¶
func (d *Database) GetContainersByPartialName(partialName string) ([]ContainerInfo, error)
func (*Database) InitSchema ¶
func (*Database) ListContainers ¶
func (d *Database) ListContainers() ([]ContainerInfo, error)
func (*Database) UpdateContainerStatus ¶
Click to show internal directories.
Click to hide internal directories.