Documentation
¶
Index ¶
- Constants
- Variables
- func Build(dir, dockerfileContents, imageName string, secrets []string, noCache bool, ...) error
- func BuildAddLabelsAndSchemaToImage(image string, labels map[string]string, bundledSchemaFile string, ...) error
- func ContainerInspect(id string) (*types.ContainerJSON, error)
- func ContainerLogsFollow(containerID string, out io.Writer) error
- func CreateAptTarball(tmpDir string, dockerCommand command.Command, packages ...string) (string, error)
- func CurrentAptTarball(tmpDir string) (string, error)
- func DockerCommandFromEnvironment() string
- func DockerCredentialBinary(credsStore string) string
- func FastPush(ctx context.Context, image string, projectDir string, command command.Command, ...) error
- func GetPort(containerID string, containerPort int) (int, error)
- func ImageExists(id string) (bool, error)
- func ImageInspect(id string) (*types.ImageInspect, error)
- func ManifestInspect(image string) error
- func Pull(image string) error
- func Push(image string, fast bool, projectDir string, command command.Command, ...) error
- func Run(options RunOptions) error
- func RunDaemon(options RunOptions, stderr io.Writer) (string, error)
- func RunWithIO(options RunOptions, stdin io.Reader, stdout, stderr io.Writer) error
- func SaveLoginToken(registryHost string, username string, token string) error
- func StandardPush(image string, command command.Command) error
- func Stop(id string) error
- type BuildInfo
- type CredentialHelperInput
- type DockerCommand
- func (c *DockerCommand) CreateAptTarFile(tmpDir string, aptTarFile string, packages ...string) (string, error)
- func (c *DockerCommand) CreateTarFile(image string, tmpDir string, tarFile string, folder string) (string, error)
- func (c *DockerCommand) Inspect(image string) (*command.Manifest, error)
- func (c *DockerCommand) LoadUserInformation(registryHost string) (*command.UserInfo, error)
- func (c *DockerCommand) Pull(image string) error
- func (c *DockerCommand) Push(image string) error
- type Port
- type RunOptions
- type Volume
Constants ¶
View Source
const DockerCommandEnvVarName = "R8_DOCKER_COMMAND"
Variables ¶
View Source
var ErrMissingDeviceDriver = errors.New("Docker is missing required device driver")
View Source
var ErrNoSuchImage = errors.New("No image returned")
View Source
var TarballsDir = filepath.Join(dockercontext.CogBuildArtifactsFolder, "tarballs")
Functions ¶
func BuildAddLabelsAndSchemaToImage ¶ added in v0.9.5
func ContainerInspect ¶ added in v0.0.8
func ContainerInspect(id string) (*types.ContainerJSON, error)
func ContainerLogsFollow ¶ added in v0.0.8
func CreateAptTarball ¶ added in v0.14.0
func CurrentAptTarball ¶ added in v0.14.0
func DockerCommandFromEnvironment ¶ added in v0.14.0
func DockerCommandFromEnvironment() string
func DockerCredentialBinary ¶ added in v0.14.0
func ImageExists ¶ added in v0.0.14
func ImageInspect ¶ added in v0.0.14
func ImageInspect(id string) (*types.ImageInspect, error)
func ManifestInspect ¶ added in v0.9.10
func Run ¶ added in v0.0.8
func Run(options RunOptions) error
func RunDaemon ¶ added in v0.0.8
func RunDaemon(options RunOptions, stderr io.Writer) (string, error)
func SaveLoginToken ¶ added in v0.0.8
Types ¶
type CredentialHelperInput ¶ added in v0.14.0
type DockerCommand ¶ added in v0.14.0
type DockerCommand struct{}
func NewDockerCommand ¶ added in v0.14.0
func NewDockerCommand() *DockerCommand
func (*DockerCommand) CreateAptTarFile ¶ added in v0.14.0
func (*DockerCommand) CreateTarFile ¶ added in v0.14.0
func (*DockerCommand) Inspect ¶ added in v0.14.0
func (c *DockerCommand) Inspect(image string) (*command.Manifest, error)
func (*DockerCommand) LoadUserInformation ¶ added in v0.14.0
func (c *DockerCommand) LoadUserInformation(registryHost string) (*command.UserInfo, error)
func (*DockerCommand) Pull ¶ added in v0.14.0
func (c *DockerCommand) Pull(image string) error
func (*DockerCommand) Push ¶ added in v0.14.0
func (c *DockerCommand) Push(image string) error
type RunOptions ¶ added in v0.0.8
type RunOptions struct {
Args []string
Env []string
GPUs string
Image string
Ports []Port
Volumes []Volume
Workdir string
Platform string
}
func FillInWeightsManifestVolumes ¶ added in v0.14.4
func FillInWeightsManifestVolumes(dockerCommand command.Command, runOptions RunOptions) (RunOptions, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.