Versions in this module Expand all Collapse all v0 v0.1.0 Aug 23, 2021 Changes in this version + const DefaultHostname + const DefaultRepoPrefix + const DefaultRuntime + const DefaultTag + const LegacyDefaultHostname + const NameTotalLengthMax + var DigestRegexp = match(`[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}`) + var ErrDigestInvalidFormat = errors.New("invalid digest format") + var ErrNameEmpty = errors.New("repository name must have at least one component") + var ErrNameTooLong = fmt.Errorf("repository name must not be more than %v characters", NameTotalLengthMax) + var ErrReferenceInvalidFormat = errors.New("invalid reference format") + var ErrTagInvalidFormat = errors.New("invalid tag format") + var NameRegexp = expression(optional(hostnameRegexp, literal(`/`)), nameComponentRegexp, ...) + var ReferenceRegexp = anchored(capture(RuntimeRexp), capture(NameRegexp), ...) + var RuntimeRexp = expression(optional(capture(alphaRegexp), literal(`://`))) + var TagRegexp = match(`[\w][\w.-]{0,127}`) + func PullImage(image, cacheDir string) (v1.Image, error) + func UnpackImage(image v1.Image, cacheDir, outDir string, allowOverride bool) error + type Bridge struct + CacheDir string + Interface string + Name string + Subnet string + func (b *Bridge) Create(s *specs.State) (net.IP, error) + func (b *Bridge) Init(dryRun bool) error + type Image struct + FullName string + Hostname string + Name string + RemoteName string + Runtime string + String string + Tag string + type Input struct + Destination string + Name string + Options []string + Source string + type Output struct + Name string + Path string + type Run struct + Capabilities []string + Cmd string + Cores int + Devices []string + Image string + Name string + Path string + type Runner struct + Bridge *Bridge + Config *RunnerConfig + func NewRunner(cfg *RunnerConfig, bridge *Bridge, dryRun bool) (*Runner, error) + func (r *Runner) Destroy() error + func (r *Runner) Init(in *[]Input, out *[]Output, dryRun bool) error + func (r *Runner) Run() (int, time.Duration, error) + type RunnerConfig struct + AllowOverride bool + CacheDir string + Capabilities []string + Cmd string + CoreIds []int + Devices []string + Env []string + Image string + Inputs *[]Input + Log *log.Logger + Name string + Outputs *[]Output + Path string + ResultsDir string