Documentation
¶
Index ¶
- Constants
- Variables
- func CreateAptTarball(ctx context.Context, tmpDir string, dockerCommand command.Command, ...) (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(ctx context.Context, containerID string, containerPort int) (int, error)
- func ManifestInspect(ctx context.Context, image string) error
- func Push(ctx context.Context, image string, fast bool, projectDir string, ...) error
- func Run(ctx context.Context, options RunOptions) error
- func RunDaemon(ctx context.Context, options RunOptions, stderr io.Writer) (string, error)
- func RunWithIO(ctx context.Context, options RunOptions, stdin io.Reader, ...) error
- func SaveLoginToken(ctx context.Context, registryHost string, username string, token string) error
- func StandardPush(ctx context.Context, image string, command command.Command) error
- type BuildInfo
- type CredentialHelperInput
- type DockerCommand
- func (c *DockerCommand) ContainerInspect(ctx context.Context, id string) (*container.InspectResponse, error)
- func (c *DockerCommand) ContainerLogs(ctx context.Context, containerID string, w io.Writer) error
- func (c *DockerCommand) ContainerStop(ctx context.Context, containerID string) error
- func (c *DockerCommand) CreateAptTarFile(ctx context.Context, tmpDir string, aptTarFile string, packages ...string) (string, error)
- func (c *DockerCommand) CreateTarFile(ctx context.Context, image string, tmpDir string, tarFile string, ...) (string, error)
- func (c *DockerCommand) ImageBuild(ctx context.Context, options command.ImageBuildOptions) error
- func (c *DockerCommand) ImageExists(ctx context.Context, ref string) (bool, error)
- func (c *DockerCommand) Inspect(ctx context.Context, ref string) (*image.InspectResponse, error)
- func (c *DockerCommand) LoadUserInformation(ctx context.Context, registryHost string) (*command.UserInfo, error)
- func (c *DockerCommand) Pull(ctx context.Context, image string, force bool) (*image.InspectResponse, error)
- func (c *DockerCommand) Push(ctx context.Context, 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 TarballsDir = filepath.Join(dockercontext.CogBuildArtifactsFolder, "tarballs")
Functions ¶
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 ManifestInspect ¶ added in v0.9.10
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) ContainerInspect ¶ added in v0.14.8
func (c *DockerCommand) ContainerInspect(ctx context.Context, id string) (*container.InspectResponse, error)
func (*DockerCommand) ContainerLogs ¶ added in v0.14.8
func (*DockerCommand) ContainerStop ¶ added in v0.14.8
func (c *DockerCommand) ContainerStop(ctx context.Context, containerID string) error
func (*DockerCommand) CreateAptTarFile ¶ added in v0.14.0
func (*DockerCommand) CreateTarFile ¶ added in v0.14.0
func (*DockerCommand) ImageBuild ¶ added in v0.14.9
func (c *DockerCommand) ImageBuild(ctx context.Context, options command.ImageBuildOptions) error
func (*DockerCommand) ImageExists ¶ added in v0.14.8
func (*DockerCommand) Inspect ¶ added in v0.14.0
func (c *DockerCommand) Inspect(ctx context.Context, ref string) (*image.InspectResponse, error)
func (*DockerCommand) LoadUserInformation ¶ added in v0.14.0
func (*DockerCommand) Pull ¶ added in v0.14.0
func (c *DockerCommand) Pull(ctx context.Context, image string, force bool) (*image.InspectResponse, 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(ctx context.Context, dockerCommand command.Command, runOptions RunOptions) (RunOptions, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.