dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
23 lines (22 loc) • 947 B
TypeScript
import type * as Zip from 'adm-zip';
import { type ResolvedCliOptions } from '../utils/config/cli-options';
export declare const EOCD_SIZE = 22;
/**
* Signs a given archive using the `privateKey` and includes both private key and the
* `certificateChain` in the zip comment.
*/
export declare function signArchive(
/** The archive to sign */
archive: Zip,
/** The private key used to calculate the signature */
privateKey: Buffer,
/** The certificate chain included in the comment */
certificateChain: Buffer): Zip;
/** Get bearer token using client id and client secret */
export declare function getAuthorization(): Promise<string>;
/** Sign archive with certificate */
export declare function signArchiveNew(
/** The archive to sign */
archive: Zip, options: ResolvedCliOptions): Promise<Zip>;
/** Locate the position/index of EOCD within a zip file buffer using ENDSIG */
export declare function getEocdPosition(archive: Buffer): number;