public interface ResourceHandler<T,V extends io.fabric8.kubernetes.api.builder.VisitableBuilder<T,V>>
Modifier and Type | Method and Description |
---|---|
T |
create(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item)
Create the specified resource.
|
Boolean |
delete(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item)
Delete the specified resource (if exists).
|
V |
edit(T item)
Edit the specified resource.
|
String |
getKind() |
T |
reload(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item)
Reload the specified resource (if exists).
|
T |
replace(okhttp3.OkHttpClient client,
Config config,
String namespace,
T item)
Replace the specified resource.
|
String getKind()
T create(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 create.T replace(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 replace.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.Boolean delete(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 delete.Copyright © 2015–2016 Red Hat. All rights reserved.