@basetenlabs/sandbox - v0.3.0
    Preparing search index...

    Class ImageClient

    Images that sandboxes are created from: pushing them from a build context or a registry, and finding and deleting them. Obtained from SandboxClient.images.

    Index
    • Pushes an image, from a registry or from a build context that is built into one. Waits for the image to be ready to use unless wait is false. To create a sandbox from it, pass <name>:latest as the sandbox's image.

      A build context read from local files, from directory or a builder's local files and directories, is zipped into a temporary file, removed once uploaded, unless tempFile is false; any other is zipped in memory. It is uploaded in one attempt. If the upload fails, the image is left as the service has it, so push again or delete it.

      Parameters

      Returns Promise<ImageInfo>