UNPKG

@docker/actions-toolkit

Version:
53 lines (52 loc) 1.63 kB
/** * Copyright 2025 actions-toolkit authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Versioned } from '../oci/versioned.js'; import { Descriptor, Platform } from '../oci/descriptor.js'; import { Digest } from '../oci/digest.js'; export interface InspectOpts { name: string; retryOnManifestUnknown?: boolean; retryLimit?: number; } export interface AttestationInspectOpts extends InspectOpts { platform?: Platform; } export interface Manifest extends Versioned { mediaType?: string; digest: Digest; size: number; manifests?: Descriptor[]; annotations?: Record<string, string>; } export interface CreateOpts { sources: Array<string>; tags?: Array<string>; platforms?: Array<string>; annotations?: Array<string>; dryRun?: boolean; silent?: boolean; skipExec?: boolean; } export interface CreateResponse { 'containerimage.digest'?: Digest; 'containerimage.descriptor'?: Descriptor; 'image.name'?: string; } export interface CreateResult { digest: Digest; descriptor: Descriptor; imageNames: Array<string>; }