Added getImage() setImage() to the ThinContainerExecRunner interface
[arvados.git] / lib / crunchrun / container_exec_types.go
index cc78a29dff681d36a648bc2f5b9682f6ceaaba64..fc865af73e9cfd543dd5d97a448e81f89c1887e7 100644 (file)
@@ -19,6 +19,7 @@ import (
 // "It should hold only portable information about the container."
 // and for Singularity TBD
 type ContainerConfig struct {
+       Image        string
        OpenStdin    bool
        StdinOnce    bool
        AttachStdin  bool
@@ -280,6 +281,9 @@ type ThinContainerExecRunner interface {
        GetContainerConfig() (ContainerConfig, error)
        GetHostConfig() (HostConfig, error)
 
+       GetImage() (imageID string)
+       SetImage(imageID string)
+
        ContainerAttach(ctx context.Context, container string, options ContainerAttachOptions) (HijackedResponse, error)
        ContainerCreate(ctx context.Context, config ContainerConfig, hostConfig HostConfig, networkingConfig *NetworkingConfig, containerName string) (ContainerCreateResponse, error)
        ContainerStart(ctx context.Context, container string, options ContainerStartOptions) error