Documentation
¶
Index ¶
- Constants
- func NewContainerDriver(c any) (common.LoadDriver, error)
- type ContainerConfig
- type ContainerDriver
- func (c *ContainerDriver) Config() common.LoadDriverConfig
- func (c *ContainerDriver) Deprovision(repository common.DeploymentsRepository, deployment common.Deployment) error
- func (c *ContainerDriver) ID() common.LoadDriverID
- func (c *ContainerDriver) Info() common.LoadDriverInfo
- func (c *ContainerDriver) Kill(repository common.DeploymentsRepository, deployment common.Deployment) error
- func (c *ContainerDriver) Provision(nodeDriver common.NodeDriver, repository common.DeploymentsRepository, ...) (common.DeploymentID, error)
- func (c *ContainerDriver) ReadStderr(repository common.DeploymentsRepository, deployment common.Deployment, ...) ([]byte, int64, error)
- func (c *ContainerDriver) ReadStdout(repository common.DeploymentsRepository, deployment common.Deployment, ...) ([]byte, int64, error)
- func (c *ContainerDriver) Start(repository common.DeploymentsRepository, deployment common.Deployment) error
- func (c *ContainerDriver) Stop(repository common.DeploymentsRepository, deployment common.Deployment) error
- func (c *ContainerDriver) StreamStderr(repository common.DeploymentsRepository, deployment common.Deployment, ...) error
- func (c *ContainerDriver) StreamStdout(repository common.DeploymentsRepository, deployment common.Deployment, ...) error
- func (c *ContainerDriver) UpdateStatus(r common.DeploymentsRepository, d common.Deployment) (common.DeploymentStatus, error)
- type ContainerEntryMetadata
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 (c *ContainerDriver) Config() common.LoadDriverConfig
func (*ContainerDriver) Deprovision ¶
func (c *ContainerDriver) Deprovision(repository common.DeploymentsRepository, deployment common.Deployment) error
func (*ContainerDriver) ID ¶
func (c *ContainerDriver) ID() common.LoadDriverID
func (*ContainerDriver) Info ¶
func (c *ContainerDriver) Info() common.LoadDriverInfo
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 ¶
func (c *ContainerDriver) UpdateStatus(r common.DeploymentsRepository, d common.Deployment) (common.DeploymentStatus, error)
type ContainerEntryMetadata ¶
Click to show internal directories.
Click to hide internal directories.