import { Metadata, ProjectMetadata } from './resource'; export interface BasicAuth { username: string; password?: string; passwordFile?: string; } export interface Authorization { type?: string; credentials?: string; credentialsFile?: string; } export interface OAuth { clientID: string; clientSecret?: string; clientSecretFile?: string; tokenURL: string; scopes?: string[]; endpointParams?: Record; authStyle?: 0 | 1 | 2; } export interface TLSConfig { ca?: string; cert?: string; key?: string; caFile?: string; certFile?: string; keyFile?: string; serverName?: string; insecureSkipVerify?: boolean; } export interface SecretSpec { basicAuth?: BasicAuth; authorization?: Authorization; oauth?: OAuth; tlsConfig?: TLSConfig; } /** * A secret that belongs to a project. */ export interface SecretResource { kind: 'Secret'; metadata: ProjectMetadata; spec: SecretSpec; } /** * A global secret that doesn´t belong to a project. */ export interface GlobalSecretResource { kind: 'GlobalSecret'; metadata: Metadata; spec: SecretSpec; } export type Secret = SecretResource | GlobalSecretResource; //# sourceMappingURL=secrets.d.ts.map