public interface KubernetesApi
| Modifier and Type | Method and Description |
|---|---|
scala.concurrent.Future<LeaseResource> |
readOrCreateLeaseResource(java.lang.String name)
Reads a Lease from the API server.
|
scala.concurrent.Future<scala.util.Either<LeaseResource,LeaseResource>> |
updateLeaseResource(java.lang.String name,
java.lang.String clientName,
java.lang.String version,
long time)
Update the named resource.
|
long |
updateLeaseResource$default$4() |
scala.concurrent.Future<LeaseResource> readOrCreateLeaseResource(java.lang.String name)
name - (undocumented)scala.concurrent.Future<scala.util.Either<LeaseResource,LeaseResource>> updateLeaseResource(java.lang.String name, java.lang.String clientName, java.lang.String version, long time)
Must readOrCreateLeaseResource to first to get a resource version.
Can return one of three things: - Future failure e.g. timed out waiting for k8s api server to respond - Left - Update failed due to version not matching current in the k8s api server. In this case resource is returned so the version can be used for subsequent calls - Right - Success
Any subsequent updates should also use the latest version or re-read with readOrCreateLeaseResource
name - (undocumented)clientName - (undocumented)version - (undocumented)time - (undocumented)long updateLeaseResource$default$4()