@Service public class PodHandler extends Object implements ResourceHandler<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodBuilder>
Constructor and Description |
---|
PodHandler() |
Modifier and Type | Method and Description |
---|---|
io.fabric8.kubernetes.api.model.Pod |
create(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.Pod item)
Create the specified resource.
|
Boolean |
delete(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.Pod item)
Delete the specified resource (if exists).
|
io.fabric8.kubernetes.api.model.PodBuilder |
edit(io.fabric8.kubernetes.api.model.Pod item)
Edit the specified resource.
|
String |
getKind() |
io.fabric8.kubernetes.api.model.Pod |
reload(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.Pod item)
Reload the specified resource (if exists).
|
io.fabric8.kubernetes.api.model.Pod |
replace(com.squareup.okhttp.OkHttpClient client,
Config config,
String namespace,
io.fabric8.kubernetes.api.model.Pod item)
Replace the specified resource.
|
public String getKind()
getKind
in interface ResourceHandler<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodBuilder>
public io.fabric8.kubernetes.api.model.Pod create(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Pod item)
ResourceHandler
create
in interface ResourceHandler<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to create.public io.fabric8.kubernetes.api.model.Pod replace(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Pod item)
ResourceHandler
replace
in interface ResourceHandler<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to replace.public io.fabric8.kubernetes.api.model.Pod reload(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Pod item)
ResourceHandler
reload
in interface ResourceHandler<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodBuilder>
client
- An instance of the http client.config
- The client config.namespace
- The target namespace.item
- The resource to reload.public io.fabric8.kubernetes.api.model.PodBuilder edit(io.fabric8.kubernetes.api.model.Pod item)
ResourceHandler
edit
in interface ResourceHandler<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodBuilder>
item
- The resource to edit.public Boolean delete(com.squareup.okhttp.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.Pod item)
ResourceHandler
delete
in interface ResourceHandler<io.fabric8.kubernetes.api.model.Pod,io.fabric8.kubernetes.api.model.PodBuilder>
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.