Documentation
¶
Index ¶
- func Close() error
- func CreateContainer(c *Container) error
- func CreateEvent(e *Event) error
- func CreateUser(u *User) error
- func DeleteContainer(id int) error
- func DeleteUser(id int) error
- func Initialize() error
- func UpdateContainer(c *Container) error
- func UpdateUser(u *User) error
- type Container
- func GetContainer(name string) (*Container, error)
- func GetContainerByDisplayName(displayName string) (*Container, error)
- func GetContainerByID(id int) (*Container, error)
- func GetExpiredContainers() ([]*Container, error)
- func ListAllContainers() ([]*Container, error)
- func ListContainers() ([]*Container, error)
- type Event
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContainer ¶
CreateContainer creates a new container record
func DeleteContainer ¶
DeleteContainer deletes a container record
func UpdateContainer ¶
UpdateContainer updates a container record
Types ¶
type Container ¶
type Container struct {
ID int
Name string
DisplayName string
Type string
Version string
ContainerID string
Port string
Status string
CreatedAt time.Time
ExpiresAt time.Time
VolumeType string
VolumePath string
}
Container represents a database container
func GetContainer ¶
GetContainer retrieves a container by name
func GetContainerByDisplayName ¶ added in v0.2.0
GetContainerByDisplayName retrieves a container by display name
func GetContainerByID ¶
GetContainerByID retrieves a container by ID
func GetExpiredContainers ¶
GetExpiredContainers retrieves containers that have expired
func ListAllContainers ¶
ListAllContainers retrieves all containers including expired ones
func ListContainers ¶
ListContainers retrieves all containers (excluding cleaned up expired ones)
Click to show internal directories.
Click to hide internal directories.