public interface ResourceHandler<T,V extends io.fabric8.kubernetes.api.builder.VisitableBuilder<T,V>>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResourceHandler.Key |
| Modifier and Type | Method and Description |
|---|---|
default T |
create(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item,
boolean dryRun)
Create the specified resource
|
default Boolean |
delete(okhttp3.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy,
long gracePeriodSeconds,
T item,
boolean dryRun)
Delete the specified resource (if exists).
|
V |
edit(T item)
Edit the specified resource.
|
String |
getApiVersion() |
String |
getKind() |
default T |
reload(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item)
Reload the specified resource (if exists).
|
default T |
replace(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item,
boolean dryRun)
Replace the specified resource
|
Resource<T> |
resource(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item)
Gets the Resource for the given item
|
default T |
waitUntilCondition(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item,
Predicate<T> condition,
long amount,
TimeUnit timeUnit)
Waits until the specified condition is true.
|
default T |
waitUntilReady(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item,
long amount,
TimeUnit timeUnit)
Waits until the specified resource is Ready.
|
default Watch |
watch(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item,
io.fabric8.kubernetes.api.model.ListOptions listOptions,
Watcher<T> watcher)
Watches the specified resource for changes
|
default Watch |
watch(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item,
String resourceVersion,
Watcher<T> watcher)
Watches the specified resource for changes.
|
default Watch |
watch(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item,
Watcher<T> watcher)
Watches the specified resource for changes.
|
String getKind()
String getApiVersion()
default T create(okhttp3.OkHttpClient client, Config config, String namespace, T item, boolean dryRun)
client - An instance of the http client.config - The client config.namespace - The target namespace.item - The resource to create.dryRun - Enable dry rundefault T replace(okhttp3.OkHttpClient client, Config config, String namespace, T item, boolean dryRun)
client - An instance of the http client.config - The client config.namespace - The target namespace.item - The resource to replace.dryRun - Enable dry rundefault T reload(okhttp3.OkHttpClient client, Config config, String namespace, T item)
client - An instance of the http client.config - The client config.namespace - The target namespace.item - The resource to reload.V edit(T item)
item - The resource to edit.default Boolean delete(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy, long gracePeriodSeconds, T item, boolean dryRun)
client - An instance of the http client.config - The client config.namespace - The target namespace.propagationPolicy - Whether and how garbage collection will be performed.gracePeriodSeconds - The duration in seconds before the object should be deleted.item - The resource to delete.dryRun - enable dry rundefault Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, T item, Watcher<T> watcher)
default Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, T item, String resourceVersion, Watcher<T> watcher)
default Watch watch(okhttp3.OkHttpClient client, Config config, String namespace, T item, io.fabric8.kubernetes.api.model.ListOptions listOptions, Watcher<T> watcher)
default T waitUntilReady(okhttp3.OkHttpClient client, Config config, String namespace, T item, long amount, TimeUnit timeUnit)
client - An instance of the http client.config - The client config.namespace - The target namespace.item - The resource to wait.amount - The amount of time to waittimeUnit - The wait TimeUnit.default T waitUntilCondition(okhttp3.OkHttpClient client, Config config, String namespace, T item, Predicate<T> condition, long amount, TimeUnit timeUnit)
client - An instance of the http client.config - The client config.namespace - The target namespace.item - The resource to wait.amount - The amount of time to waittimeUnit - The wait TimeUnit.condition - The condition to wait forResource<T> resource(okhttp3.OkHttpClient client, Config config, String namespace, T item)
client - An instance of the http client.config - The client config.namespace - The target namespace.item - The resource to wait.Copyright © 2015–2020 Red Hat. All rights reserved.