Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Endpoints = Endpoints {
- _kind :: !(Maybe Text)
- _apiVersion :: !(Maybe Text)
- _metadata :: !(Maybe ObjectMeta)
- _subsets :: ![EndpointSubset]
- kind :: Lens' Endpoints (Maybe Text)
- apiVersion :: Lens' Endpoints (Maybe Text)
- metadata :: Lens' Endpoints (Maybe ObjectMeta)
- subsets :: Lens' Endpoints [EndpointSubset]
- mkEndpoints :: [EndpointSubset] -> Endpoints
Documentation
Endpoints is a collection of endpoints that implement the actual service. Example:n Name: "mysvc",n Subsets: [n {n Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}],n Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}]n },n {n Addresses: [{"ip": "10.10.3.3"}],n Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}]n },n ]
Endpoints | |
|
mkEndpoints :: [EndpointSubset] -> Endpoints Source
Use this method to build a Endpoints