containerruntime

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 4 Imported by: 0

README

problem statement

interface abstracting container runtime interactions

features

  • API exposed via interface
  • fake implementation to allow faking interactions

Documentation

Overview

Package containerruntime defines an interface abstracting container runtime interactions. A fake implementation is included to allow faking said interactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerRuntime

type ContainerRuntime interface {
	DeleteContainerIfExists(
		ctx context.Context,
		containerID string,
	) error

	// RunContainer creates, starts, and waits on a container. ExitCode &/Or an error will be returned
	RunContainer(
		ctx context.Context,
		req *model.ContainerCall,

		rootCallID string,

		eventPublisher pubsub.EventPublisher,
		stdout io.WriteCloser,
		stderr io.WriteCloser,
	) (*int64, error)
}

ContainerRuntime defines the interface container runtimes must implement to be supported by

Directories

Path Synopsis
hostruntime/internal/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
internal/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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