UNPKG

@docker/actions-toolkit

Version:
58 lines (57 loc) 2.14 kB
/** * Copyright 2023 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 { GitHub } from './github/github.js'; import { Buildx } from './buildx/buildx.js'; import { Build as BuildxBuild } from './buildx/build.js'; import { Bake as BuildxBake } from './buildx/bake.js'; import { Install as BuildxInstall } from './buildx/install.js'; import { Builder } from './buildx/builder.js'; import { BuildKit } from './buildkit/buildkit.js'; import { Compose } from './compose/compose.js'; import { Install as ComposeInstall } from './compose/install.js'; import { Cosign } from './cosign/cosign.js'; import { Install as CosignInstall } from './cosign/install.js'; import { Regctl } from './regclient/regctl.js'; import { Install as RegctlInstall } from './regclient/install.js'; import { Undock } from './undock/undock.js'; import { Install as UndockInstall } from './undock/install.js'; import { Sigstore } from './sigstore/sigstore.js'; export interface ToolkitOpts { /** * GitHub token to use for authentication. * Uses `process.env.GITHUB_TOKEN` by default. */ githubToken?: string; } export declare class Toolkit { github: GitHub; buildx: Buildx; buildxBuild: BuildxBuild; buildxBake: BuildxBake; buildxInstall: BuildxInstall; builder: Builder; buildkit: BuildKit; compose: Compose; composeInstall: ComposeInstall; cosign: Cosign; cosignInstall: CosignInstall; regctl: Regctl; regctlInstall: RegctlInstall; sigstore: Sigstore; undock: Undock; undockInstall: UndockInstall; constructor(opts?: ToolkitOpts); }