GitCredentials
import { GitCredentials } from "@skipcheck/tm1-client"; How TM1 signs in to the Git remote: nothing (a public or git:// remote), a user
name and password or token (HTTPS), or an SSH key pair. TM1 doesn't keep them, so every
call that reaches the remote takes them again. toString leaves the secrets
out.
Members
GitCredentials constructor | How TM1 signs in to the Git remote. |
none static | No credentials. |
password static | A user name and password, or access token, for an HTTPS remote. |
sshKey static | An SSH key pair, for an SSH remote, and the private key's passphrase, if it has one. |
username property | The user name, for HTTPS. |
password property | The password or access token, for HTTPS. |
publicKey property | The SSH public key. |
privateKey property | The SSH private key. |
passphrase property | The private key's passphrase. |
addTo | @internal The parameters TM1 takes them as, those set only. |
equals | Whether other holds the same credentials. |
toString | Which credentials these are, without the secrets. |
toJSON | What JSON.stringify writes. |
[INSPECT] | What Node's util.inspect (and so console.log) shows. |
GitCredentials
constructorconstructor( username: string | null | undefined, password: string | null | undefined, publicKey: string | null | undefined, privateKey: string | null | undefined, passphrase: string | null | undefined, )How TM1 signs in to the Git remote: nothing (a public or git:// remote), a user name and password or token (HTTPS), or an SSH key pair. TM1 doesn't keep them, so every call that reaches the remote takes them again. toString leaves the secrets out. @param username the user name, for HTTPS @param password the password or access token, for HTTPS @param publicKey the SSH public key @param privateKey the SSH private key @param passphrase the private key's passphrase
none
staticstatic none(): GitCredentialsNo credentials.
password
staticstatic password(username: string, password: string): GitCredentialsA user name and password, or access token, for an HTTPS remote.
sshKey
staticstatic sshKey(publicKey: string, privateKey: string, passphrase?: string | null): GitCredentialsAn SSH key pair, for an SSH remote, and the private key's passphrase, if it has one.
username
propertyusername: string | nullThe user name, for HTTPS.
password
propertypassword: string | nullThe password or access token, for HTTPS.
publicKey
propertypublicKey: string | nullThe SSH public key.
privateKey
propertyprivateKey: string | nullThe SSH private key.
passphrase
propertypassphrase: string | nullThe private key's passphrase.
addTo
addTo(parameters: Record<string, unknown>): void@internal The parameters TM1 takes them as, those set only.
equals
equals(other: unknown): booleanWhether other holds the same credentials.
toString
toString(): stringWhich credentials these are, without the secrets.
toJSON
toJSON(): stringWhat JSON.stringify writes: toString, without the secrets.
[INSPECT]
[INSPECT](): stringWhat Node's util.inspect (and so console.log) shows: toString.