public interface ApiVisitor
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApiVisitor.ApiVisitResult |
| Modifier and Type | Method and Description |
|---|---|
default ApiVisitor.ApiVisitResult |
visitApiGroup(String group)
Visit the api group.
|
default ApiVisitor.ApiVisitResult |
visitApiGroupVersion(String group,
String version)
Visit the group version.
|
ApiVisitor.ApiVisitResult |
visitResource(String group,
String version,
io.fabric8.kubernetes.api.model.APIResource apiResource,
MixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> operation)
Visit the resource.
|
default ApiVisitor.ApiVisitResult visitApiGroup(String group)
group - the group name, will be empty for the core groupApiVisitor.ApiVisitResult.SKIP will skip visiting all versions of this api
group.default ApiVisitor.ApiVisitResult visitApiGroupVersion(String group, String version)
ApiVersionUtil to separate components if needed.group - the group name, will be empty for the core groupApiVisitor.ApiVisitResult.SKIP will skip visiting all resources under this
api group version.ApiVisitor.ApiVisitResult visitResource(String group, String version, io.fabric8.kubernetes.api.model.APIResource apiResource, MixedOperation<io.fabric8.kubernetes.api.model.GenericKubernetesResource,io.fabric8.kubernetes.api.model.GenericKubernetesResourceList,Resource<io.fabric8.kubernetes.api.model.GenericKubernetesResource>> operation)
group - the group name, will be empty for the core group. Generally used instead of APIResource.getGroup()version - generally used instead of APIResource.getVersion()apiResource - can be used to look at applicable verbs and other resource informationoperation - the GenericKubernetesResource operation for the current resource. Will be in the namespace of the
client by default.ApiVisitor.ApiVisitResult.TERMINATE to terminate. SKIP and CONTINUE will both continue visiting.Copyright © 2015–2023 Red Hat. All rights reserved.