types

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerConfig

type ContainerConfig struct {
	ID            int
	Name          string
	Image         string
	Ports         map[string]string
	EnvVars       map[string]string
	Volumes       map[string]string
	Network       string
	RestartPolicy string

	CreatedAt time.Time
	UpdatedAt time.Time
}

ContainerConfig holds the configuration for a container

type ContainerManager

type ContainerManager interface {
	Deploy(ctx context.Context, config *ContainerConfig, opts *DeploymentOptions) error
	Rollback(ctx context.Context, containerID string) error
	GetStatus(ctx context.Context, containerID string) (string, error)
	GetLogs(ctx context.Context, containerID string, follow bool) (string, error)
}

ContainerManager defines the interface for container operations

type DeploymentOptions

type DeploymentOptions struct {
	Timeout           time.Duration
	HealthCheck       *HealthCheckConfig
	RollbackOnFailure bool
}

DeploymentOptions holds options for the deployment

type HealthCheckConfig

type HealthCheckConfig struct {
	Cmd         []string
	Interval    time.Duration
	Timeout     time.Duration
	Retries     int
	StartPeriod time.Duration
}

HealthCheckConfig defines health check parameters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL