Interface OpenShiftAccessInterface

  • All Superinterfaces:
    org.uberfire.commons.lifecycle.Disposable
    All Known Implementing Classes:
    OpenShiftAccessInterfaceImpl

    public interface OpenShiftAccessInterface
    extends org.uberfire.commons.lifecycle.Disposable
    This interface abstracts the OpenShift client creation and caching (per provider id).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      OpenShiftClient getOpenShiftClient​(org.guvnor.ala.runtime.providers.ProviderId providerId)
      Gets the OpenShift Client for the provided ProviderId.
      OpenShiftClient newOpenShiftClient​(org.guvnor.ala.config.ProviderConfig providerConfig)
      Always creates a new OpenShiftClient with the provided Provider configuration.
      • Methods inherited from interface org.uberfire.commons.lifecycle.Disposable

        dispose
    • Method Detail

      • getOpenShiftClient

        OpenShiftClient getOpenShiftClient​(org.guvnor.ala.runtime.providers.ProviderId providerId)
        Gets the OpenShift Client for the provided ProviderId.
        Parameters:
        providerId - the ProviderId
        Returns:
        OpenShiftClient for the ProviderId; if it doesn't exist, it creates a new OpenshiftClient
        See Also:
        the (potentially cached) OpenShiftClient
      • newOpenShiftClient

        OpenShiftClient newOpenShiftClient​(org.guvnor.ala.config.ProviderConfig providerConfig)
        Always creates a new OpenShiftClient with the provided Provider configuration.
        Parameters:
        providerConfig - the Provider configuration
        Returns:
        the OpenShiftClient
        See Also:
        the (not-cached) OpenShiftClient