Member Junction
    Preparing search index...

    Where Training Snapshot files are written and read.

    interface ISnapshotFileStore {
        CreatePreAuthDownload(
            fileId: string,
            sha256: string,
            now?: Date,
        ): Promise<PreAuthDownload>;
        Get(fileId: string): Promise<Uint8Array<ArrayBufferLike>>;
        ProviderID(): Promise<string>;
        Put(
            objectKey: string,
            name: string,
            bytes: Uint8Array,
            contentType: string,
        ): Promise<StoredSnapshotFile>;
    }

    Implemented by

    Index

    Methods

    • A download of the stored file the stateless sidecar can open: a URL issued by the file's own provider, the file's stored SHA-256 (sha256, which the sidecar verifies before parsing) and the URL's lifetime. now is the issue time (default: the current time).

      Parameters

      • fileId: string
      • sha256: string
      • Optionalnow: Date

      Returns Promise<PreAuthDownload>