Interface ApiVisitor


  • public interface ApiVisitor
    Used to perform operations across all resources known to the api server.
    • Method Detail

      • visitResource

        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.
        Parameters:
        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 information
        operation - the GenericKubernetesResource operation for the current resource. Will be in the namespace of the client by default.
        Returns:
        ApiVisitor.ApiVisitResult.TERMINATE to terminate. SKIP and CONTINUE will both continue visiting.