@hashgraph/solo
    Preparing search index...

    Interface for RBAC operations

    interface Rbacs {
        clusterRoleExists(name: string): Promise<boolean>;
        createClusterRole(
            name: string,
            rules: { apiGroups: string[]; resources: string[]; verbs: string[] }[],
            labels?: Record<string, string>,
        ): Promise<void>;
        deleteClusterRole(name: string): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Check if a ClusterRole exists

      Parameters

      • name: string

        The name of the cluster role

      Returns Promise<boolean>

      True if the cluster role exists, false otherwise

    • Create a ClusterRole

      Parameters

      • name: string

        The name of the cluster role

      • rules: { apiGroups: string[]; resources: string[]; verbs: string[] }[]

        The rules of the cluster role

      • Optionallabels: Record<string, string>

        The labels of the cluster role

      Returns Promise<void>