Sha256: fea19eeedcf23af5a0567bc1cdcef6e241c0cd9b1d15e75410ddad506827a79d
Contents?: true
Size: 1.08 KB
Versions: 36
Compression:
Stored size: 1.08 KB
Contents
import { Key } from './key'; import { DelegatedRole, SuccinctRoles } from './role'; import { JSONObject, JSONValue } from './utils'; type DelegatedRoleMap = Record<string, DelegatedRole>; type KeyMap = Record<string, Key>; interface DelegationsOptions { keys: KeyMap; roles?: DelegatedRoleMap; succinctRoles?: SuccinctRoles; unrecognizedFields?: Record<string, JSONValue>; } /** * A container object storing information about all delegations. * * Targets roles that are trusted to provide signed metadata files * describing targets with designated pathnames and/or further delegations. */ export declare class Delegations { readonly keys: KeyMap; readonly roles?: DelegatedRoleMap; readonly unrecognizedFields?: Record<string, JSONValue>; readonly succinctRoles?: SuccinctRoles; constructor(options: DelegationsOptions); equals(other: Delegations): boolean; rolesForTarget(targetPath: string): Generator<{ role: string; terminating: boolean; }>; toJSON(): JSONObject; static fromJSON(data: JSONObject): Delegations; } export {};
Version data entries
36 entries across 36 versions & 2 rubygems