CognosSource.ZipUrl
import { CognosSource } from "@skipcheck/tm1-testcontainers";A download link for IBM's Cognos repository zip, such as a pre-signed S3 URL. Neither the query string nor the user-info part is ever logged.
Members
url property | The download link. |
sha256 property | The zip's expected SHA-256, if the download is to be checked. |
ZipUrl constructor | |
text property | The link as given, for the container. |
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). |
url
propertyurl: URLThe download link.
sha256
propertysha256: string | undefinedThe zip's expected SHA-256, if the download is to be checked.
ZipUrl
constructorconstructor(url: URL | string, sha256?: string | null)text
propertytext: stringThe link as given, for the container.
describe
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