Package org.jdrupes.vmoperator.common
Interface K8sClusterGenericStub.GenericSupplier<O extends io.kubernetes.client.common.KubernetesObject,L extends io.kubernetes.client.common.KubernetesListObject,R extends K8sClusterGenericStub<O,L>>
- Type Parameters:
O
- the object typeL
- the object list typeR
- the result type
- Enclosing class:
K8sClusterGenericStub<O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject>
public static interface K8sClusterGenericStub.GenericSupplier<O extends io.kubernetes.client.common.KubernetesObject,L extends io.kubernetes.client.common.KubernetesListObject,R extends K8sClusterGenericStub<O,L>>
A supplier for generic stubs.
-
Method Summary
-
Method Details
-
get
R get(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String name) Gets a new stub.- Parameters:
objectClass
- the object classobjectListClass
- the object list classclient
- the clientcontext
- the API resourcename
- the name- Returns:
- the result
-