Search in sources :

Example 1 with AuthRoleGetRequest

use of io.etcd.jetcd.api.AuthRoleGetRequest in project jetcd by coreos.

the class AuthImpl method roleGet.

@Override
public CompletableFuture<AuthRoleGetResponse> roleGet(ByteSequence role) {
    checkNotNull(role, "role can't be null");
    AuthRoleGetRequest roleGetRequest = AuthRoleGetRequest.newBuilder().setRoleBytes(ByteString.copyFrom(role.getBytes())).build();
    return completable(this.stub.roleGet(roleGetRequest), AuthRoleGetResponse::new);
}
Also used : AuthRoleGetRequest(io.etcd.jetcd.api.AuthRoleGetRequest) AuthRoleGetResponse(io.etcd.jetcd.auth.AuthRoleGetResponse)

Aggregations

AuthRoleGetRequest (io.etcd.jetcd.api.AuthRoleGetRequest)1 AuthRoleGetResponse (io.etcd.jetcd.auth.AuthRoleGetResponse)1