CognosSource.InstallVolume
import { CognosSource } from "@skipcheck/tm1-testcontainers"; A named Docker volume holding a Cognos install made by the image's install
command. Cognos writes into it, so only one container may use it at a time.
Members
InstallVolume constructor | |
name property | |
describe | |
PRIVATE_IMAGE property | An image with Cognos built in, for CognosSource.PrivateImage. |
INSTALL_VOLUME property | A Docker volume holding an install, for CognosSource.InstallVolume. |
ZIP_DIR property | A folder holding IBM's zip, for CognosSource.Zip. |
ZIP property | The zip's file name within CognosSource.ZIP_DIR; the newest one if unset. |
ZIP_URL property | A download link for IBM's zip, for CognosSource.ZipUrl. |
ZIP_SHA256 property | The SHA-256 to check the CognosSource.ZIP_URL download against; optional. |
toString | The description (describe), for logs. |
[inspect.custom] | How Node prints it. |
discover static | Finds a source using lookup to read each setting (environment variables by default). |
InstallVolume
constructorconstructor(readonly name: string)name
propertyreadonly name: stringdescribe
describe(): stringPRIVATE_IMAGE
propertystatic PRIVATE_IMAGEAn image with Cognos built in, for CognosSource.PrivateImage.
INSTALL_VOLUME
propertystatic INSTALL_VOLUMEA Docker volume holding an install, for CognosSource.InstallVolume.
ZIP_DIR
propertystatic ZIP_DIRA folder holding IBM's zip, for CognosSource.Zip.
ZIP
propertystatic ZIPThe zip's file name within CognosSource.ZIP_DIR; the newest one if unset.
ZIP_URL
propertystatic ZIP_URLA download link for IBM's zip, for CognosSource.ZipUrl.
ZIP_SHA256
propertystatic ZIP_SHA256The SHA-256 to check the CognosSource.ZIP_URL download against; optional.
toString
toString(): stringThe description (describe), for logs.
[inspect.custom]
[inspect.custom](): stringHow Node prints it: the class and its description, never a URL's credentials or query.
discover
staticstatic discover(lookup: Lookup = Settings.get): CognosSource | undefinedFinds a source using lookup to read each setting (environment variables by default).
Returns
- the first source found, or
undefinedif none is configured
Throws
- IllegalArgumentException if a setting is present but invalid