testcontainers
Version:
Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container
32 lines (31 loc) • 726 B
TypeScript
export type CredentialProviderGetResponse = {
ServerURL?: string;
Username: string;
Secret: string;
};
export type Auth = {
auth?: string;
email?: string;
username?: string;
password?: string;
};
export type AuthConfig = UsernamePasswordAuthConfig | IdentityTokenAuthConfig;
export type UsernamePasswordAuthConfig = {
registryAddress: string;
username: string;
password: string;
email?: string;
};
export type IdentityTokenAuthConfig = {
registryAddress: string;
identityToken: string;
};
export type ContainerRuntimeConfig = {
credHelpers?: {
[registry: string]: string;
};
credsStore?: string;
auths?: {
[registry: string]: Auth;
};
};