Sha256: 49d19cb3f8485a655cd30d6ee40d3514eb16948ee9509ebbf0c3d4724e110839
Contents?: true
Size: 1.56 KB
Versions: 33
Compression:
Stored size: 1.56 KB
Contents
import type { LogEntry, ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery } from '@sigstore/rekor-types'; import type { FetchOptions } from '../types/fetch'; export type { ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery, }; export type Entry = { uuid: string; } & LogEntry[string]; export type RekorOptions = { baseURL: string; } & FetchOptions; /** * Rekor API client. */ export declare class Rekor { private fetch; private baseUrl; constructor(options: RekorOptions); /** * Create a new entry in the Rekor log. * @param propsedEntry {ProposedEntry} Data to create a new entry * @returns {Promise<Entry>} The created entry */ createEntry(propsedEntry: ProposedEntry): Promise<Entry>; /** * Get an entry from the Rekor log. * @param uuid {string} The UUID of the entry to retrieve * @returns {Promise<Entry>} The retrieved entry */ getEntry(uuid: string): Promise<Entry>; /** * Search the Rekor log index for entries matching the given query. * @param opts {SearchIndex} Options to search the Rekor log * @returns {Promise<string[]>} UUIDs of matching entries */ searchIndex(opts: SearchIndex): Promise<string[]>; /** * Search the Rekor logs for matching the given query. * @param opts {SearchLogQuery} Query to search the Rekor log * @returns {Promise<Entry[]>} List of matching entries */ searchLog(opts: SearchLogQuery): Promise<Entry[]>; }
Version data entries
33 entries across 33 versions & 1 rubygems