container

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: AGPL-3.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ContainerDriverID common.LoadDriverID = "container"

Variables

This section is empty.

Functions

func NewContainerDriver

func NewContainerDriver(c any) (common.LoadDriver, error)

Types

type ContainerConfig

type ContainerConfig struct {
	Image       string             `json:"image"`
	Env         []string           `json:"env"`
	Quotas      *dto.Quotas        `json:"quotas"`
	MountVolume *[]dto.MountVolume `json:"mount_volume,omitempty"`
	BindMounts  []dto.BindMount    `json:"bind_mounts,omitempty"`
	Network     *dto.NetworkConfig `json:"network,omitempty"`
	Entrypoint  *string            `json:"entrypoint,omitempty"`
	Args        []string           `json:"args,omitempty"`
	WorkingDir  *string            `json:"working_dir,omitempty"`
}

type ContainerDriver

type ContainerDriver struct {
	// contains filtered or unexported fields
}

func (*ContainerDriver) Config

func (*ContainerDriver) Deprovision

func (c *ContainerDriver) Deprovision(repository common.DeploymentsRepository, deployment common.Deployment) error

func (*ContainerDriver) ID

func (*ContainerDriver) Info

func (*ContainerDriver) Kill

func (c *ContainerDriver) Kill(repository common.DeploymentsRepository, deployment common.Deployment) error

func (*ContainerDriver) Provision

func (c *ContainerDriver) Provision(nodeDriver common.NodeDriver, repository common.DeploymentsRepository, loadName string) (common.DeploymentID, error)

func (*ContainerDriver) ReadStderr

func (c *ContainerDriver) ReadStderr(repository common.DeploymentsRepository, deployment common.Deployment, offset int64) ([]byte, int64, error)

func (*ContainerDriver) ReadStdout

func (c *ContainerDriver) ReadStdout(repository common.DeploymentsRepository, deployment common.Deployment, offset int64) ([]byte, int64, error)

func (*ContainerDriver) Start

func (c *ContainerDriver) Start(repository common.DeploymentsRepository, deployment common.Deployment) error

func (*ContainerDriver) Stop

func (c *ContainerDriver) Stop(repository common.DeploymentsRepository, deployment common.Deployment) error

func (*ContainerDriver) StreamStderr

func (c *ContainerDriver) StreamStderr(repository common.DeploymentsRepository, deployment common.Deployment, w io.Writer) error

func (*ContainerDriver) StreamStdout

func (c *ContainerDriver) StreamStdout(repository common.DeploymentsRepository, deployment common.Deployment, w io.Writer) error

func (*ContainerDriver) UpdateStatus

type ContainerEntryMetadata

type ContainerEntryMetadata struct {
	ContainerName string  `json:"container_name"`
	IPAddress     *net.IP `json:"ip_address,omitempty"`
	GWAddress     *net.IP `json:"gw_address,omitempty"`
	StdoutPath    string  `json:"stdout_path,omitempty"`
	StderrPath    string  `json:"stderr_path,omitempty"`
}

Jump to

Keyboard shortcuts

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