final case class EndpointSlice(endpoints: Seq[Endpoint], addressType: String, ports: Option[Seq[EndpointPort]] = None, metadata: Option[ObjectMeta] = None) extends KObject with Product with Serializable
EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
- Source
- EndpointSlice.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EndpointSlice
- KObject
- Product
- Equals
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new EndpointSlice(endpoints: Seq[Endpoint], addressType: String, ports: Option[Seq[EndpointPort]] = None, metadata: Option[ObjectMeta] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val _resourceKind: ResourceKind
- Attributes
- protected
- Definition Classes
- EndpointSlice → KObject
- def addEndpoints(newValues: Endpoint*): EndpointSlice
Appends new values to endpoints
- def addPorts(newValues: EndpointPort*): EndpointSlice
Appends new values to ports
- val addressType: String
- final lazy val apiVersion: String
- Definition Classes
- KObject
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val endpoints: Seq[Endpoint]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def foldTo[T](implicit arg0: Builder[T]): T
- Definition Classes
- EndpointSlice → KObject
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def group: String
- Definition Classes
- KObject
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final lazy val kind: String
- Definition Classes
- KObject
- def mapAddressType(f: (String) => String): EndpointSlice
transforms addressType to result of function
- def mapEndpoints(f: (Seq[Endpoint]) => Seq[Endpoint]): EndpointSlice
transforms endpoints to result of function
- def mapMetadata(f: (ObjectMeta) => ObjectMeta): EndpointSlice
if metadata has a value, transforms to the result of function
- def mapPorts(f: (Seq[EndpointPort]) => Seq[EndpointPort]): EndpointSlice
if ports has a value, transforms to the result of function
- val metadata: Option[ObjectMeta]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val ports: Option[Seq[EndpointPort]]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final lazy val version: String
- Definition Classes
- KObject
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withAddressType(value: String): EndpointSlice
Returns a new data with addressType set to new value
- def withEndpoints(value: Seq[Endpoint]): EndpointSlice
Returns a new data with endpoints set to new value
- def withMetadata(value: ObjectMeta): EndpointSlice
Returns a new data with metadata set to new value
- def withPorts(value: Seq[EndpointPort]): EndpointSlice
Returns a new data with ports set to new value