Class IngressHandler

  • All Implemented Interfaces:
    ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>

    public class IngressHandler
    extends Object
    implements ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
    • Constructor Summary

      Constructors 
      Constructor Description
      IngressHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.fabric8.kubernetes.api.model.extensions.Ingress create​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item, boolean dryRun)
      Create the specified resource
      Boolean delete​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy, long gracePeriodSeconds, io.fabric8.kubernetes.api.model.extensions.Ingress item, boolean dryRun)
      Delete the specified resource (if exists).
      io.fabric8.kubernetes.api.model.extensions.IngressBuilder edit​(io.fabric8.kubernetes.api.model.extensions.Ingress item)
      Edit the specified resource.
      String getApiVersion()  
      String getKind()  
      io.fabric8.kubernetes.api.model.extensions.Ingress reload​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item)
      Reload the specified resource (if exists).
      io.fabric8.kubernetes.api.model.extensions.Ingress replace​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item, boolean dryRun)
      Replace the specified resource
      io.fabric8.kubernetes.api.model.extensions.Ingress waitUntilCondition​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item, Predicate<io.fabric8.kubernetes.api.model.extensions.Ingress> condition, long amount, TimeUnit timeUnit)  
      io.fabric8.kubernetes.api.model.extensions.Ingress waitUntilReady​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item, long amount, TimeUnit timeUnit)
      Waits until the specified resource is Ready.
      Watch watch​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item, io.fabric8.kubernetes.api.model.ListOptions options, Watcher<io.fabric8.kubernetes.api.model.extensions.Ingress> watcher)
      Watches the specified resource for changes
      Watch watch​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item, Watcher<io.fabric8.kubernetes.api.model.extensions.Ingress> watcher)
      Watches the specified resource for changes.
      Watch watch​(okhttp3.OkHttpClient client, Config config, String namespace, io.fabric8.kubernetes.api.model.extensions.Ingress item, String resourceVersion, Watcher<io.fabric8.kubernetes.api.model.extensions.Ingress> watcher)
      Watches the specified resource for changes.
    • Constructor Detail

      • IngressHandler

        public IngressHandler()
    • Method Detail

      • getKind

        public String getKind()
        Specified by:
        getKind in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
      • getApiVersion

        public String getApiVersion()
        Specified by:
        getApiVersion in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
      • create

        public io.fabric8.kubernetes.api.model.extensions.Ingress create​(okhttp3.OkHttpClient client,
                                                                         Config config,
                                                                         String namespace,
                                                                         io.fabric8.kubernetes.api.model.extensions.Ingress item,
                                                                         boolean dryRun)
        Description copied from interface: ResourceHandler
        Create the specified resource
        Specified by:
        create in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        client - An instance of the http client.
        config - The client config.
        namespace - The target namespace.
        item - The resource to create.
        dryRun - Enable dry run
        Returns:
        The created resource.
      • replace

        public io.fabric8.kubernetes.api.model.extensions.Ingress replace​(okhttp3.OkHttpClient client,
                                                                          Config config,
                                                                          String namespace,
                                                                          io.fabric8.kubernetes.api.model.extensions.Ingress item,
                                                                          boolean dryRun)
        Description copied from interface: ResourceHandler
        Replace the specified resource
        Specified by:
        replace in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        client - An instance of the http client.
        config - The client config.
        namespace - The target namespace.
        item - The resource to replace.
        dryRun - Enable dry run
        Returns:
        The replaced resource.
      • reload

        public io.fabric8.kubernetes.api.model.extensions.Ingress reload​(okhttp3.OkHttpClient client,
                                                                         Config config,
                                                                         String namespace,
                                                                         io.fabric8.kubernetes.api.model.extensions.Ingress item)
        Description copied from interface: ResourceHandler
        Reload the specified resource (if exists).
        Specified by:
        reload in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        client - An instance of the http client.
        config - The client config.
        namespace - The target namespace.
        item - The resource to reload.
        Returns:
        The reloaded resource.
      • edit

        public io.fabric8.kubernetes.api.model.extensions.IngressBuilder edit​(io.fabric8.kubernetes.api.model.extensions.Ingress item)
        Description copied from interface: ResourceHandler
        Edit the specified resource.
        Specified by:
        edit in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        item - The resource to edit.
        Returns:
        The resource editor.
      • delete

        public Boolean delete​(okhttp3.OkHttpClient client,
                              Config config,
                              String namespace,
                              io.fabric8.kubernetes.api.model.DeletionPropagation propagationPolicy,
                              long gracePeriodSeconds,
                              io.fabric8.kubernetes.api.model.extensions.Ingress item,
                              boolean dryRun)
        Description copied from interface: ResourceHandler
        Delete the specified resource (if exists).
        Specified by:
        delete in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        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 run
        Returns:
        The true if the resource was successfully deleted.
      • watch

        public Watch watch​(okhttp3.OkHttpClient client,
                           Config config,
                           String namespace,
                           io.fabric8.kubernetes.api.model.extensions.Ingress item,
                           Watcher<io.fabric8.kubernetes.api.model.extensions.Ingress> watcher)
        Description copied from interface: ResourceHandler
        Watches the specified resource for changes.
        Specified by:
        watch in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        client - An instance of the http client.
        config - The client config.
        namespace - The target namespace.
        item - The resource to delete.
        watcher - The Watcher to use.
        Returns:
        The Watch
      • watch

        public Watch watch​(okhttp3.OkHttpClient client,
                           Config config,
                           String namespace,
                           io.fabric8.kubernetes.api.model.extensions.Ingress item,
                           String resourceVersion,
                           Watcher<io.fabric8.kubernetes.api.model.extensions.Ingress> watcher)
        Description copied from interface: ResourceHandler
        Watches the specified resource for changes.
        Specified by:
        watch in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        client - An instance of the http client.
        config - The client config.
        namespace - The target namespace.
        item - The resource to delete.
        resourceVersion - The resourceVersion of object
        watcher - The Watcher to use.
        Returns:
        The Watch
      • watch

        public Watch watch​(okhttp3.OkHttpClient client,
                           Config config,
                           String namespace,
                           io.fabric8.kubernetes.api.model.extensions.Ingress item,
                           io.fabric8.kubernetes.api.model.ListOptions options,
                           Watcher<io.fabric8.kubernetes.api.model.extensions.Ingress> watcher)
        Description copied from interface: ResourceHandler
        Watches the specified resource for changes
        Specified by:
        watch in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        client - An instance of http client.
        config - The client config.
        namespace - The target namespace.
        item - The resource to delete.
        options - The ListOptions for available options
        watcher - The Watcher to use.
        Returns:
        The Watch
      • waitUntilReady

        public io.fabric8.kubernetes.api.model.extensions.Ingress waitUntilReady​(okhttp3.OkHttpClient client,
                                                                                 Config config,
                                                                                 String namespace,
                                                                                 io.fabric8.kubernetes.api.model.extensions.Ingress item,
                                                                                 long amount,
                                                                                 TimeUnit timeUnit)
                                                                          throws InterruptedException
        Description copied from interface: ResourceHandler
        Waits until the specified resource is Ready. For resources that 'readiness' is not applicable the method is equivalent to get.
        Specified by:
        waitUntilReady in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Parameters:
        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 wait
        timeUnit - The wait TimeUnit.
        Returns:
        The true if the resource was successfully deleted.
        Throws:
        InterruptedException - Interrupted Exception
      • waitUntilCondition

        public io.fabric8.kubernetes.api.model.extensions.Ingress waitUntilCondition​(okhttp3.OkHttpClient client,
                                                                                     Config config,
                                                                                     String namespace,
                                                                                     io.fabric8.kubernetes.api.model.extensions.Ingress item,
                                                                                     Predicate<io.fabric8.kubernetes.api.model.extensions.Ingress> condition,
                                                                                     long amount,
                                                                                     TimeUnit timeUnit)
                                                                              throws InterruptedException
        Specified by:
        waitUntilCondition in interface ResourceHandler<io.fabric8.kubernetes.api.model.extensions.Ingress,​io.fabric8.kubernetes.api.model.extensions.IngressBuilder>
        Throws:
        InterruptedException