iya-sts
    Preparing search index...

    Variable addAnchors

    addAnchors: (
        text: any,
        options: any,
    ) =>
        | {
            added: number;
            duplicates?: undefined;
            error: string;
            errorCode: string;
            total: number;
        }
        | {
            added: number;
            duplicates: number;
            error: string;
            errorCode: string;
            total: number;
        }
        | {
            added: number;
            duplicates: number;
            error?: undefined;
            errorCode?: undefined;
            total: number;
        } = addAnchors

    Type Declaration

      • (
            text: any,
            options: any,
        ):
            | {
                added: number;
                duplicates?: undefined;
                error: string;
                errorCode: string;
                total: number;
            }
            | {
                added: number;
                duplicates: number;
                error: string;
                errorCode: string;
                total: number;
            }
            | {
                added: number;
                duplicates: number;
                error?: undefined;
                errorCode?: undefined;
                total: number;
            }
      • Adds the certificates in a PEM bundle to the client truststore, storing runtime anchors so they survive a restart, and applies it to every registered listener.

        Parameters

        • text: any

          the PEM bundle

        • options: any

          source (default runtime), strict (refuse the whole bundle if any block cannot be read) and addedBy

        Returns
            | {
                added: number;
                duplicates?: undefined;
                error: string;
                errorCode: string;
                total: number;
            }
            | {
                added: number;
                duplicates: number;
                error: string;
                errorCode: string;
                total: number;
            }
            | {
                added: number;
                duplicates: number;
                error?: undefined;
                errorCode?: undefined;
                total: number;
            }

        { added, duplicates, total }, or with error and errorCode when nothing was added