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 { // Delete deletes opctl managed resources from the container runtime Delete( ctx context.Context, ) error DeleteContainerIfExists( ctx context.Context, containerID string, ) error // Kill stops/kills opctl managed resources within the container runtime Kill( ctx context.Context, ) 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 opctl
Click to show internal directories.
Click to hide internal directories.