docker

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(c *ssh.Client, app spec.Application, prog spec.Program, options BuildImageOptions) (bool, error)

func ExecuteContainer added in v0.12.0

func ExecuteContainer(c *ssh.Client, app spec.Application, prog spec.Program, no int, command string, options ExecuteContainerOptions) error

func LogContainer added in v0.9.0

func LogContainer(c *ssh.Client, app spec.Application, prog spec.Program, no int, options LogContainerOptions) error

func RestartContainer

func RestartContainer(c *ssh.Client, app spec.Application, prog spec.Program, no int, options RestartContainerOptions) error

func RunContainer

func RunContainer(c *ssh.Client, app spec.Application, prog spec.Program, options RunContainerOptions) error

func ScaleContainer

func ScaleContainer(c *ssh.Client, app spec.Application, prog spec.Program, n int, options ScaleContainerOptions) error

func SignalContainer added in v0.12.0

func SignalContainer(c *ssh.Client, app spec.Application, prog spec.Program, no int, signal string, options SignalContainerOptions) error

Types

type BuildImageOptions

type BuildImageOptions struct {
	DockerPath string
}

type Container

type Container struct {
	Application spec.Application
	Program     spec.Program
	No          int

	ID     string
	Image  string
	Status string
}

func ListContainers

func ListContainers(c *ssh.Client, app spec.Application, prog spec.Program, options ListContainersOptions) ([]Container, error)

type ExecuteContainerOptions added in v0.12.0

type ExecuteContainerOptions struct {
	DockerPath string
}

type GetImageOptions

type GetImageOptions struct {
	DockerPath string
}

type Image

type Image struct {
	Application spec.Application
	Program     spec.Program
	ID          string
	Repository  string
}

func GetImage

func GetImage(c *ssh.Client, app spec.Application, prog spec.Program, options GetImageOptions) (*Image, error)

type ListContainersOptions

type ListContainersOptions struct {
	DockerPath string
}

type LogContainerOptions added in v0.9.0

type LogContainerOptions struct {
	DockerPath string
}

type RestartContainerOptions

type RestartContainerOptions struct {
	DockerPath string
}

type RunContainerOptions

type RunContainerOptions struct {
	DockerPath string
}

type ScaleContainerOptions

type ScaleContainerOptions struct {
	DockerPath string
}

type SignalContainerOptions added in v0.12.0

type SignalContainerOptions struct {
	DockerPath string
}

Jump to

Keyboard shortcuts

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