X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/771852c25cba5d8da9de56f3503ae0606d817c8c..245b5be86685227fe4daa87a781b4d818fe5e1ef:/sdk/go/arvados/api.go diff --git a/sdk/go/arvados/api.go b/sdk/go/arvados/api.go index 1a4d61b42a..4d67b5ad4d 100644 --- a/sdk/go/arvados/api.go +++ b/sdk/go/arvados/api.go @@ -49,6 +49,7 @@ var ( EndpointContainerDelete = APIEndpoint{"DELETE", "arvados/v1/containers/{uuid}", ""} EndpointContainerLock = APIEndpoint{"POST", "arvados/v1/containers/{uuid}/lock", ""} EndpointContainerUnlock = APIEndpoint{"POST", "arvados/v1/containers/{uuid}/unlock", ""} + EndpointContainerLog = APIEndpoint{"GET", "arvados/v1/containers/{uuid}/log{path:|/.*}", ""} EndpointContainerSSH = APIEndpoint{"POST", "arvados/v1/connect/{uuid}/ssh", ""} // move to /containers after #17014 fixes routing EndpointContainerGatewayTunnel = APIEndpoint{"POST", "arvados/v1/connect/{uuid}/gateway_tunnel", ""} // move to /containers after #17014 fixes routing EndpointContainerRequestCreate = APIEndpoint{"POST", "arvados/v1/container_requests", "container_request"} @@ -248,6 +249,18 @@ type BlockWriteResponse struct { Replicas int } +type WebDAVOptions struct { + Method string + Path string + Header http.Header +} + +type ContainerLogOptions struct { + UUID string `json:"uuid"` + NoForward bool `json:"no_forward"` + WebDAVOptions +} + type API interface { ConfigGet(ctx context.Context) (json.RawMessage, error) VocabularyGet(ctx context.Context) (Vocabulary, error) @@ -270,6 +283,7 @@ type API interface { ContainerDelete(ctx context.Context, options DeleteOptions) (Container, error) ContainerLock(ctx context.Context, options GetOptions) (Container, error) ContainerUnlock(ctx context.Context, options GetOptions) (Container, error) + ContainerLog(ctx context.Context, options ContainerLogOptions) (http.Handler, error) ContainerSSH(ctx context.Context, options ContainerSSHOptions) (ConnectionResponse, error) ContainerGatewayTunnel(ctx context.Context, options ContainerGatewayTunnelOptions) (ConnectionResponse, error) ContainerRequestCreate(ctx context.Context, options CreateOptions) (ContainerRequest, error)