public static final class WatchtowerClientGrpc.WatchtowerClientBlockingStub extends io.grpc.stub.AbstractBlockingStub<WatchtowerClientGrpc.WatchtowerClientBlockingStub>
WatchtowerClient is a service that grants access to the watchtower client functionality of the daemon.
Modifier and Type | Method and Description |
---|---|
Wtclient.AddTowerResponse |
addTower(Wtclient.AddTowerRequest request)
AddTower adds a new watchtower reachable at the given address and
considers it for new sessions.
|
protected WatchtowerClientGrpc.WatchtowerClientBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
Wtclient.Tower |
getTowerInfo(Wtclient.GetTowerInfoRequest request)
GetTowerInfo retrieves information for a registered watchtower.
|
Wtclient.ListTowersResponse |
listTowers(Wtclient.ListTowersRequest request)
ListTowers returns the list of watchtowers registered with the client.
|
Wtclient.PolicyResponse |
policy(Wtclient.PolicyRequest request)
Policy returns the active watchtower client policy configuration.
|
Wtclient.RemoveTowerResponse |
removeTower(Wtclient.RemoveTowerRequest request)
RemoveTower removes a watchtower from being considered for future session
negotiations and from being used for any subsequent backups until it's added
again.
|
Wtclient.StatsResponse |
stats(Wtclient.StatsRequest request)
Stats returns the in-memory statistics of the client since startup.
|
protected WatchtowerClientGrpc.WatchtowerClientBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<WatchtowerClientGrpc.WatchtowerClientBlockingStub>
public Wtclient.AddTowerResponse addTower(Wtclient.AddTowerRequest request)
AddTower adds a new watchtower reachable at the given address and considers it for new sessions. If the watchtower already exists, then any new addresses included will be considered when dialing it for session negotiations and backups.
public Wtclient.RemoveTowerResponse removeTower(Wtclient.RemoveTowerRequest request)
RemoveTower removes a watchtower from being considered for future session negotiations and from being used for any subsequent backups until it's added again. If an address is provided, then this RPC only serves as a way of removing the address from the watchtower instead.
public Wtclient.ListTowersResponse listTowers(Wtclient.ListTowersRequest request)
ListTowers returns the list of watchtowers registered with the client.
public Wtclient.Tower getTowerInfo(Wtclient.GetTowerInfoRequest request)
GetTowerInfo retrieves information for a registered watchtower.
public Wtclient.StatsResponse stats(Wtclient.StatsRequest request)
Stats returns the in-memory statistics of the client since startup.
public Wtclient.PolicyResponse policy(Wtclient.PolicyRequest request)
Policy returns the active watchtower client policy configuration.