Class GatewayServiceGrpc.GatewayServiceFutureStub (0.47.0)

public static final class GatewayServiceGrpc.GatewayServiceFutureStub extends AbstractFutureStub<GatewayServiceGrpc.GatewayServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service GatewayService.

Gateway service is a public API which works as a Kubernetes resource model proxy between end users and registered Kubernetes clusters. Each RPC in this service matches with an HTTP verb. End user will initiate kubectl commands against the Gateway service, and Gateway service will forward user requests to clusters.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > GatewayServiceGrpc.GatewayServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected GatewayServiceGrpc.GatewayServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
GatewayServiceGrpc.GatewayServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

deleteResource(HttpBody request)

public ListenableFuture<HttpBody> deleteResource(HttpBody request)

DeleteResource performs an HTTP DELETE on the Kubernetes API Server.

Parameter
Name Description
request com.google.api.HttpBody
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody>

getResource(HttpBody request)

public ListenableFuture<HttpBody> getResource(HttpBody request)

GetResource performs an HTTP GET request on the Kubernetes API Server.

Parameter
Name Description
request com.google.api.HttpBody
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody>

patchResource(HttpBody request)

public ListenableFuture<HttpBody> patchResource(HttpBody request)

PatchResource performs an HTTP PATCH on the Kubernetes API Server.

Parameter
Name Description
request com.google.api.HttpBody
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody>

postResource(HttpBody request)

public ListenableFuture<HttpBody> postResource(HttpBody request)

PostResource performs an HTTP POST on the Kubernetes API Server.

Parameter
Name Description
request com.google.api.HttpBody
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody>

putResource(HttpBody request)

public ListenableFuture<HttpBody> putResource(HttpBody request)

PutResource performs an HTTP PUT on the Kubernetes API Server.

Parameter
Name Description
request com.google.api.HttpBody
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody>