docker

package
v1.2.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDockerRunWaitSeconds = 600
)

Variables

This section is empty.

Functions

func CreateJob

func CreateJob(ctx context.Context, image string, parameters []string, opts *DockerRunOptions) (*model.Job, error)

CreateJob creates a job object from the given command line arguments and options.

func NewCmd

func NewCmd() *cobra.Command

Types

type DockerRunOptions

type DockerRunOptions struct {
	Entrypoint       []string
	WorkingDirectory string // Working directory for docker

	SpecSettings       *cliflags.SpecFlagSettings            // Setting for top level job spec fields.
	ResourceSettings   *cliflags.ResourceUsageSettings       // Settings for the jobs resource requirements.
	NetworkingSettings *cliflags.NetworkingFlagSettings      // Settings for the jobs networking.
	DealSettings       *cliflags.DealFlagSettings            // Settings for the jobs deal.
	RunTimeSettings    *cliflags.RunTimeSettingsWithDownload // Settings for running the job.
	DownloadSettings   *cliflags.DownloaderSettings          // Settings for running Download.

}

DockerRunOptions declares the arguments accepted by the `docker run` command

func NewDockerRunOptions

func NewDockerRunOptions() *DockerRunOptions

Jump to

Keyboard shortcuts

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