Package io.etcd.jetcd

Interface Auth

    • Method Detail

      • authEnable

        java.util.concurrent.CompletableFuture<AuthEnableResponse> authEnable()
        enables auth of an etcd cluster.
        Returns:
        the response.
      • authDisable

        java.util.concurrent.CompletableFuture<AuthDisableResponse> authDisable()
        disables auth of an etcd cluster.
        Returns:
        the response.
      • userAdd

        java.util.concurrent.CompletableFuture<AuthUserAddResponse> userAdd​(ByteSequence user,
                                                                            ByteSequence password)
        adds a new user to an etcd cluster.
        Parameters:
        user - the user
        password - the password
        Returns:
        the response.
      • userDelete

        java.util.concurrent.CompletableFuture<AuthUserDeleteResponse> userDelete​(ByteSequence user)
        deletes a user from an etcd cluster.
        Parameters:
        user - the user
        Returns:
        the response.
      • userGet

        java.util.concurrent.CompletableFuture<AuthUserGetResponse> userGet​(ByteSequence user)
        gets a detailed information of a user.
        Parameters:
        user - the user
        Returns:
        the response.
      • userList

        java.util.concurrent.CompletableFuture<AuthUserListResponse> userList()
        gets a list of all users.
        Returns:
        the response.
      • roleAdd

        java.util.concurrent.CompletableFuture<AuthRoleAddResponse> roleAdd​(ByteSequence role)
        adds a new role to an etcd cluster.
        Parameters:
        role - the role to add
        Returns:
        the response.
      • roleGet

        java.util.concurrent.CompletableFuture<AuthRoleGetResponse> roleGet​(ByteSequence role)
        gets a detailed information of a role.
        Parameters:
        role - the role to get
        Returns:
        the response.
      • roleList

        java.util.concurrent.CompletableFuture<AuthRoleListResponse> roleList()
        gets a list of all roles.
        Returns:
        the response.
      • roleDelete

        java.util.concurrent.CompletableFuture<AuthRoleDeleteResponse> roleDelete​(ByteSequence role)
        RoleDelete deletes a role.
        Parameters:
        role - the role to delete.
        Returns:
        the response.