UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

24 lines 1.23 kB
import memoizee from "memoizee"; import type { IO } from "../core/types"; export declare const hasGitlabToken: () => Promise<boolean>; export declare const setupGitlabToken: (io: IO) => Promise<void>; export declare const getGitlabToken: (io: IO | null) => Promise<string>; type Method = "GET" | "PUT" | "POST" | "DELETE"; export declare const doGitlabRequest: <T = any>(io: IO | null, path: string, data?: any, method?: Method) => Promise<T>; export declare const getProjectInfo: (io: IO | null) => Promise<{ id: string; web_url: string; }>; type GitlabVariable = { variable_type: string; key: string; value: string; protected: boolean; masked: boolean; environment_scope: string; }; export declare const getAllVariables: ((io: IO | null, n?: any) => Promise<Array<GitlabVariable>>) & memoizee.Memoized<(io: IO | null, n?: any) => Promise<Array<GitlabVariable>>>; export declare const getVariableValueByRawName: (io: IO, rawName: string) => Promise<string>; export declare const clearBackups: (io: IO, keep: number) => Promise<void>; export declare const upsertAllVariables: (io: IO, variables: Record<string, any>, env: string, componentName: string, backup?: boolean, masked?: boolean) => Promise<void>; export {};