Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • User

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly name

name: string

Methods

addRole

  • addRole(role: string | Role, options?: grpc.CallOptions): Promise<this>
  • Adds the user to a role.

    Parameters

    • role: string | Role
    • Optional options: grpc.CallOptions

    Returns Promise<this>

create

  • create(password: string, options?: grpc.CallOptions): Promise<this>
  • Creates the user, with the provided password.

    Parameters

    • password: string
    • Optional options: grpc.CallOptions

    Returns Promise<this>

delete

  • delete(options?: grpc.CallOptions): Promise<this>
  • Deletes the user from etcd.

    Parameters

    • Optional options: grpc.CallOptions

    Returns Promise<this>

removeRole

  • removeRole(role: string | Role, options?: grpc.CallOptions): Promise<this>
  • Removes the user's access to a role.

    Parameters

    • role: string | Role
    • Optional options: grpc.CallOptions

    Returns Promise<this>

roles

  • roles(options?: grpc.CallOptions): Promise<Role[]>
  • Returns a list of roles this user has.

    Parameters

    • Optional options: grpc.CallOptions

    Returns Promise<Role[]>

setPassword

  • setPassword(password: string, options?: grpc.CallOptions): Promise<this>
  • Changes the user's password.

    Parameters

    • password: string
    • Optional options: grpc.CallOptions

    Returns Promise<this>

Legend

  • Constructor
  • Method
  • Inherited method

Generated using TypeDoc