etcd3 API - v2.0.0
    Preparing search index...

    Class Role

    The Role provides an entry point for managing etcd roles. Etcd has an ACL-esque system: users have one or more roles, and roles have one or more permissions that grant them access (read, write, or both) on key ranges.

    Index
    name: string
    • Grants a user access to the role.

      Parameters

      • user: string | User
      • Optionaloptions: CallOptions

      Returns Promise<Role>

    • Creates the role in etcd.

      Parameters

      • Optionaloptions: CallOptions

      Returns Promise<Role>

    • Deletes the role from etcd.

      Parameters

      • Optionaloptions: CallOptions

      Returns Promise<Role>

    • Removes a user's access to the role.

      Parameters

      • user: string | User
      • Optionaloptions: CallOptions

      Returns Promise<Role>