Documentation ¶
Index ¶
- func CreateContainerID() string
- type Container
- type ContainerService
- func (c *ContainerService) GetContainerFSHome(container *Container) string
- func (c *ContainerService) GetContainerHome(container *Container) string
- func (c *ContainerService) GetContainerHomeByID(containerID string) string
- func (c *ContainerService) GetContainerMetadataPath(container *Container) string
- func (c *ContainerService) GetContainerMetadataPathByID(containerID string) string
- func (c *ContainerService) Run(ctx context.Context, container *Container, args []string) error
- func (c *ContainerService) RunByID(ctx context.Context, containerID string, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContainerID ¶
func CreateContainerID() string
Types ¶
type Container ¶
type Container struct { ContainerID *string `json:"container_id,omitempty"` Image *image.Image `json:"image,omitempty"` Mem int `json:"mem,omitempty"` Swap int `json:"swap,omitempty"` Pids int `json:"pids,omitempty"` Cpus float64 `json:"cpus,omitempty"` Src string `json:"src,omitempty"` Args []string `json:"args,omitempty"` }
type ContainerService ¶
type ContainerService struct {
// contains filtered or unexported fields
}
func NewContainerService ¶
func NewContainerService(configHome *config.Home, imgConf *image.ImageConfig, imgSrv *image.ImageService) *ContainerService
func (*ContainerService) GetContainerFSHome ¶
func (c *ContainerService) GetContainerFSHome(container *Container) string
func (*ContainerService) GetContainerHome ¶
func (c *ContainerService) GetContainerHome(container *Container) string
func (*ContainerService) GetContainerHomeByID ¶
func (c *ContainerService) GetContainerHomeByID(containerID string) string
func (*ContainerService) GetContainerMetadataPath ¶
func (c *ContainerService) GetContainerMetadataPath(container *Container) string
func (*ContainerService) GetContainerMetadataPathByID ¶
func (c *ContainerService) GetContainerMetadataPathByID(containerID string) string
Click to show internal directories.
Click to hide internal directories.