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

    Class User

    The User provides an entry point for managing etcd users. The user can be added to Roles to manage permissions.

    Index
    name: string
    • Adds the user to a role.

      Parameters

      • role: string | Role
      • Optionaloptions: CallOptions

      Returns Promise<User>

    • Creates the user, with the provided password.

      Parameters

      • password: string
      • Optionaloptions: CallOptions

      Returns Promise<User>

    • Deletes the user from etcd.

      Parameters

      • Optionaloptions: CallOptions

      Returns Promise<User>

    • Removes the user's access to a role.

      Parameters

      • role: string | Role
      • Optionaloptions: CallOptions

      Returns Promise<User>

    • Returns a list of roles this user has.

      Parameters

      • Optionaloptions: CallOptions

      Returns Promise<Role[]>

    • Changes the user's password.

      Parameters

      • password: string
      • Optionaloptions: CallOptions

      Returns Promise<User>