@hashgraph/solo
    Preparing search index...
    interface Secrets {
        create(
            namespace: NamespaceName,
            name: string,
            secretType: SecretType,
            data: Record<string, string>,
            labels?: Record<string, string>,
        ): Promise<boolean>;
        createOrReplace(
            namespace: NamespaceName,
            name: string,
            secretType: SecretType,
            data: Record<string, string>,
            labels?: Record<string, string>,
        ): Promise<boolean>;
        delete(namespace: NamespaceName, name: string): Promise<boolean>;
        exists(namespace: NamespaceName, name: string): Promise<boolean>;
        list(namespace: NamespaceName, labels?: string[]): Promise<Secret[]>;
        read(namespace: NamespaceName, name: string): Promise<Secret>;
        replace(
            namespace: NamespaceName,
            name: string,
            secretType: SecretType,
            data: Record<string, string>,
            labels?: Record<string, string>,
        ): Promise<boolean>;
    }

    Implemented by

    Index

    Methods

    • creates a new Kubernetes secret with the provided attributes

      Parameters

      • namespace: NamespaceName

        the namespace to store the secret

      • name: string

        the name of the new secret

      • secretType: SecretType

        the secret type

      • data: Record<string, string>

        the secret, any values of a key:value pair must be base64 encoded

      • Optionallabels: Record<string, string>

        the label to use for future label selector queries

      Returns Promise<boolean>

      whether the secret was created successfully