Documentation
¶
Index ¶
- Constants
- Variables
- func CreateAptTarFile(ctx context.Context, dockerClient command.Command, tmpDir string, ...) (string, error)
- func CreateAptTarball(ctx context.Context, tmpDir string, dockerClient command.Command, ...) (string, error)
- func CreateTarFile(ctx context.Context, dockerClient command.Command, image string, tmpDir string, ...) (string, error)
- func CurrentAptTarball(tmpDir string) (string, error)
- func DockerCommandFromEnvironment() string
- func FastPush(ctx context.Context, image string, projectDir string, command command.Command, ...) error
- func FillInWeightsManifestVolumes(ctx context.Context, dockerCommand command.Command, ...) (command.RunOptions, error)
- func GetHostPortForContainer(ctx context.Context, dockerCommand command.Command, containerID string, ...) (int, error)
- func NewAPIClient(ctx context.Context, opts ...Option) (*apiClient, error)
- func NewClient(ctx context.Context, opts ...Option) (command.Command, error)
- func ParseSecretsFromHost(workingDir string, secrets []string) (secrets.SecretStore, error)
- func PipelinePush(ctx context.Context, image string, projectDir string, apiClient *api.Client, ...) error
- func Push(ctx context.Context, image string, fast bool, projectDir string, ...) error
- func Run(ctx context.Context, dockerClient command.Command, options command.RunOptions) error
- func RunDaemon(ctx context.Context, dockerClient command.Command, options command.RunOptions, ...) (string, error)
- func RunWithIO(ctx context.Context, dockerClient command.Command, options command.RunOptions, ...) 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) ContainerStart(ctx context.Context, options command.RunOptions) (string, error)
- func (c *DockerCommand) ContainerStop(ctx context.Context, containerID 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
- func (c *DockerCommand) Run(ctx context.Context, options command.RunOptions) error
- type Option
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(global.CogBuildArtifactsFolder, "tarballs")
Functions ¶
func CreateAptTarFile ¶ added in v0.15.0
func CreateAptTarball ¶ added in v0.14.0
func CreateTarFile ¶ added in v0.15.0
func CurrentAptTarball ¶ added in v0.14.0
func DockerCommandFromEnvironment ¶ added in v0.14.0
func DockerCommandFromEnvironment() string
func FillInWeightsManifestVolumes ¶ added in v0.14.4
func FillInWeightsManifestVolumes(ctx context.Context, dockerCommand command.Command, runOptions command.RunOptions) (command.RunOptions, error)
func GetHostPortForContainer ¶ added in v0.14.11
func NewAPIClient ¶ added in v0.15.0
func ParseSecretsFromHost ¶ added in v0.15.0
func ParseSecretsFromHost(workingDir string, secrets []string) (secrets.SecretStore, error)
func PipelinePush ¶ added in v0.15.0
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) ContainerStart ¶ added in v0.14.11
func (c *DockerCommand) ContainerStart(ctx context.Context, options command.RunOptions) (string, error)
func (*DockerCommand) ContainerStop ¶ added in v0.14.8
func (c *DockerCommand) ContainerStop(ctx context.Context, containerID string) error
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 (c *DockerCommand) LoadUserInformation(ctx context.Context, registryHost string) (*command.UserInfo, error)
TODO[md]: this doesn't need to be on the interface, move to auth handler
func (*DockerCommand) Pull ¶ added in v0.14.0
func (c *DockerCommand) Pull(ctx context.Context, image string, force bool) (*image.InspectResponse, error)
func (*DockerCommand) Push ¶ added in v0.14.0
func (c *DockerCommand) Push(ctx context.Context, image string) error
func (*DockerCommand) Run ¶ added in v0.14.11
func (c *DockerCommand) Run(ctx context.Context, options command.RunOptions) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.