Versions in this module Expand all Collapse all v0 v0.2.5 Jul 6, 2025 v0.2.4 Jul 6, 2025 v0.2.3 Jul 6, 2025 v0.2.2 Jul 6, 2025 v0.2.1 Jul 6, 2025 v0.2.0 Jul 6, 2025 Changes in this version + type MongoDBServiceStarter struct + func (s *MongoDBServiceStarter) Start() error type ServiceStarter + func NewMongoDBServiceStarter(m *Manager) ServiceStarter v0.1.2 Jul 2, 2025 Changes in this version + func GetDockerInstallInstructions() string + func PrintServiceStartupInfo(serviceName string, port int) + type AIServiceStarter struct + func (s *AIServiceStarter) PrintServiceInfo() + func (s *AIServiceStarter) Start() error + type CacheServiceStarter struct + func (s *CacheServiceStarter) Start() error + type Client struct + func NewClient(ctx context.Context) (*Client, error) + func (c *Client) CheckDockerVersion() error + func (c *Client) Close() error + func (c *Client) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.WaitResponse, <-chan error) + func (c *Client) GetDockerClient() *client.Client + func (c *Client) GetDockerInfo() (types.Info, error) + func (c *Client) IsDockerRunning() bool + func (c *Client) NewContainerManager() ContainerManager + func (c *Client) NewImageManager() ImageManager + func (c *Client) NewNetworkManager() NetworkManager + func (c *Client) NewVolumeManager() VolumeManager + func (c *Client) StreamLogs(containerID string, follow bool, since string, tail string, writer io.Writer) error + type ComposeDeploy struct + Resources ComposeResources + type ComposeFile struct + Networks map[string]ComposeNetwork + Services map[string]ComposeService + Version string + Volumes map[string]ComposeVolume + type ComposeGenerator struct + func NewComposeGenerator(cfg *config.Config) *ComposeGenerator + func (g *ComposeGenerator) Generate() (*ComposeFile, error) + func (g *ComposeGenerator) GenerateOverride() (*ComposeFile, error) + func (g *ComposeGenerator) WriteToFile(compose *ComposeFile, path string) error + type ComposeHealthCheck struct + Interval string + Retries int + StartPeriod string + Test []string + Timeout string + type ComposeNetwork struct + Driver string + type ComposeResourceLimits struct + CPUs string + Memory string + type ComposeResources struct + Limits ComposeResourceLimits + type ComposeService struct + Command []string + ContainerName string + DependsOn []string + Deploy *ComposeDeploy + Environment map[string]string + HealthCheck *ComposeHealthCheck + Image string + Networks []string + Ports []string + Restart string + Volumes []string + type ComposeVolume struct + Driver string + type ContainerConfig struct + CPUQuota int64 + Command []string + Env map[string]string + HealthCheck *HealthCheckConfig + Image string + Labels map[string]string + Memory int64 + Name string + Networks []string + Ports []PortBinding + RestartPolicy string + Volumes []VolumeMount + type ContainerInfo struct + CPUPercent float64 + Created int64 + Health string + ID string + Image string + Memory int64 + Name string + Ports map[string]string + StartedAt int64 + State string + Status string + type ContainerManager interface + Create func(config ContainerConfig) (string, error) + Exists func(name string) (bool, string, error) + Inspect func(containerID string) (ContainerInfo, error) + List func(filters map[string]string) ([]ContainerInfo, error) + Logs func(containerID string, follow bool) (io.ReadCloser, error) + Remove func(containerID string) error + Start func(containerID string) error + Stats func(containerID string) (ContainerStats, error) + Stop func(containerID string, timeout int) error + WaitHealthy func(containerID string, timeout time.Duration) error + type ContainerStats struct + BlockRead uint64 + BlockWrite uint64 + CPUPercent float64 + MemoryLimit uint64 + MemoryPercent float64 + MemoryUsage uint64 + NetworkRx uint64 + NetworkTx uint64 + type DatabaseServiceStarter struct + func (s *DatabaseServiceStarter) Start() error + type HealthCheckConfig struct + Interval int + Retries int + StartPeriod int + Test []string + Timeout int + type ImageInfo struct + Created int64 + ID string + Name string + Size int64 + Tag string + type ImageManager interface + Exists func(image string) (bool, error) + GetSize func(image string) (int64, error) + List func() ([]ImageInfo, error) + Pull func(image string, progress chan<- PullProgress) error + Remove func(image string) error + type Manager struct + func NewManager(ctx context.Context, cfg *config.Config) (*Manager, error) + func (m *Manager) CleanupProject() error + func (m *Manager) Close() error + func (m *Manager) CreateAndStartContainer(config ContainerConfig) (string, error) + func (m *Manager) ExecInContainer(containerID string, cmd []string) (string, error) + func (m *Manager) GetClient() *Client + func (m *Manager) GetConfig() *config.Config + func (m *Manager) GetContainerLogs(containerID string, follow bool, tail string) ([]byte, error) + func (m *Manager) GetContainerStatus(containerID string) (*ContainerInfo, error) + func (m *Manager) GetServicesStatus() ([]ServiceStatus, error) + func (m *Manager) InitializeProject() error + func (m *Manager) ListContainersByLabel(labels map[string]string) ([]ContainerInfo, error) + func (m *Manager) StartSelectedServices(services []string, progress chan<- ServiceProgress) error + func (m *Manager) StartServices(progress chan<- ServiceProgress) error + func (m *Manager) StartServicesByComponents(components []string, progress chan<- ServiceProgress) error + func (m *Manager) StopContainer(containerID string, timeout int) error + func (m *Manager) StopServices(progress chan<- ServiceProgress) error + func (m *Manager) WaitForContainerHealth(containerID string, timeout time.Duration) error + type MinIOServiceInfo struct + AccessKey string + ConsolePort int + Port int + SecretKey string + func (m *MinIOServiceInfo) PrintInfo() + type NetworkInfo struct + Driver string + ID string + Name string + type NetworkManager interface + Create func(name string) (string, error) + Exists func(name string) (bool, string, error) + List func() ([]NetworkInfo, error) + Remove func(networkID string) error + type OllamaServiceInfo struct + Models []string + Port int + func (o *OllamaServiceInfo) PrintInfo() + type PortBinding struct + ContainerPort string + HostPort string + Protocol string + type PostgresServiceInfo struct + Database string + Password string + Port int + User string + func (p *PostgresServiceInfo) PrintInfo() + type ProgressDetail struct + Current int64 + Total int64 + type PullProgress struct + Error string + Progress string + ProgressDetail ProgressDetail + Status string + type QueueServiceStarter struct + func (s *QueueServiceStarter) Start() error + type RedisServiceInfo struct + Port int + func (r *RedisServiceInfo) PrintInfo() + type ServiceInfoProvider interface + PrintInfo func() + func GetServiceInfoProvider(serviceName string, config interface{}) ServiceInfoProvider + type ServiceManager struct + func NewServiceManager(m *Manager) *ServiceManager + func (sm *ServiceManager) GetStatus() ([]ServiceStatus, error) + func (sm *ServiceManager) StartAll(progress chan<- ServiceProgress) error + func (sm *ServiceManager) StartSelectedServices(services []string, progress chan<- ServiceProgress) error + func (sm *ServiceManager) StartServicesByComponents(components []string, progress chan<- ServiceProgress) error + func (sm *ServiceManager) StopAll(progress chan<- ServiceProgress) error + func (sm *ServiceManager) WaitForService(service string, timeout time.Duration) error + type ServiceProgress struct + Error string + Service string + Status string + type ServiceStarter interface + Start func() error + func NewAIServiceStarter(m *Manager) ServiceStarter + func NewCacheServiceStarter(m *Manager) ServiceStarter + func NewDatabaseServiceStarter(m *Manager) ServiceStarter + func NewQueueServiceStarter(m *Manager) ServiceStarter + func NewStorageServiceStarter(m *Manager) ServiceStarter + type ServiceStatus struct + CPUPercent float64 + Health string + MemoryLimit uint64 + MemoryUsage uint64 + Name string + Port string + Status string + type StorageServiceStarter struct + func (s *StorageServiceStarter) Start() error + type VolumeInfo struct + Created time.Time + Driver string + Labels map[string]string + Mountpoint string + Name string + Scope string + Size int64 + type VolumeManager interface + Backup func(volumeName string, targetPath string) error + Create func(name string, labels map[string]string) error + Exists func(name string) (bool, error) + List func(filter map[string]string) ([]VolumeInfo, error) + Remove func(name string) error + Restore func(volumeName string, sourcePath string) error + type VolumeMount struct + ReadOnly bool + Source string + Target string + Type string