X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/095e176632bbf81d28a239742a1ecce12404bd2d..0ab78942d824ad28b69d695538a80c8800f9a4c2:/sdk/go/arvadostest/api.go diff --git a/sdk/go/arvadostest/api.go b/sdk/go/arvadostest/api.go index b5f8e962dc..e1827b5d1f 100644 --- a/sdk/go/arvadostest/api.go +++ b/sdk/go/arvadostest/api.go @@ -168,6 +168,10 @@ func (as *APIStub) ContainerRequestDelete(ctx context.Context, options arvados.D as.appendCall(ctx, as.ContainerRequestDelete, options) return arvados.ContainerRequest{}, as.Error } +func (as *APIStub) ContainerRequestContainerStatus(ctx context.Context, options arvados.GetOptions) (arvados.ContainerStatus, error) { + as.appendCall(ctx, as.ContainerRequestContainerStatus, options) + return arvados.ContainerStatus{}, as.Error +} func (as *APIStub) ContainerRequestLog(ctx context.Context, options arvados.ContainerLogOptions) (http.Handler, error) { as.appendCall(ctx, as.ContainerRequestLog, options) // Return a handler that responds with the configured @@ -360,6 +364,26 @@ func (as *APIStub) APIClientAuthorizationGet(ctx context.Context, options arvado as.appendCall(ctx, as.APIClientAuthorizationGet, options) return arvados.APIClientAuthorization{}, as.Error } +func (as *APIStub) ReadAt(locator string, dst []byte, offset int) (int, error) { + as.appendCall(context.TODO(), as.ReadAt, struct { + locator string + dst []byte + offset int + }{locator, dst, offset}) + return 0, as.Error +} +func (as *APIStub) BlockRead(ctx context.Context, options arvados.BlockReadOptions) (int, error) { + as.appendCall(ctx, as.BlockRead, options) + return 0, as.Error +} +func (as *APIStub) BlockWrite(ctx context.Context, options arvados.BlockWriteOptions) (arvados.BlockWriteResponse, error) { + as.appendCall(ctx, as.BlockWrite, options) + return arvados.BlockWriteResponse{}, as.Error +} +func (as *APIStub) LocalLocator(locator string) (int, error) { + as.appendCall(context.TODO(), as.LocalLocator, locator) + return 0, as.Error +} func (as *APIStub) appendCall(ctx context.Context, method interface{}, options interface{}) { as.mtx.Lock()