mise API - v0.0.0
    Preparing search index...

    Function image_resolve

    • Asks an image's registry, anonymously, whether its manifest is there.

      Follows the registry's anonymous bearer-token challenge when it sends one.

      Parameters

      • image: string

        The image reference.

      • fetcher: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        }

        The fetch to use.

          • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
          • Parameters

            • input: URL | RequestInfo
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | URL | Request, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | URL | Request
            • Optionalinit: RequestInit

            Returns Promise<Response>

      Returns Promise<string | null>

      Null when the manifest resolves; else why not, in a few words.

      await image_resolve('docker.io/library/alpine:3.20', fetch); // null