trait K8sObjectOps[T] extends AnyRef

Extension methods for Kubernetes resources

This is a common implementation for all the implicit classes providing extension methods for the generated Kuberentes model types. The extension methods are just delegating the calls to the resource's K8sObject implementation.

T

Resource type to be extended

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. K8sObjectOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val impl: K8sObject[T]
    Attributes
    protected
  2. abstract val obj: T
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attachOwner(ownerName: String, ownerUid: String, ownerType: K8sResourceType, kind: String): T

    Attach another resource as the owner of this one

    Attach another resource as the owner of this one

    ownerName

    Owner's name

    ownerUid

    Owner's UID

    ownerType

    Owner's resource type metadata

    kind

    Owner's resource kind

    returns

    Object with the attached owner described in its metadata

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def generation: Long

    Gets the geneation of the object or 0 if it is new

  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def getMetadata: IO[K8sFailure, ObjectMeta]

    Gets the metadata of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

  12. def getName: IO[K8sFailure, String]

    Gets the name of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

  13. def getUid: IO[K8sFailure, String]

    Gets the UID of the object and fail with com.coralogix.zio.k8s.client.UndefinedField if it is not present

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isOwnedBy[OwnerT](owner: OwnerT)(implicit arg0: K8sObject[OwnerT], arg1: ResourceMetadata[OwnerT]): Boolean

    Verifies ownership between the resources

    Verifies ownership between the resources

    OwnerT

    Type of the owner resource

    owner

    Possible owner of this resource

    returns

    True if owner owns this resource

  17. def mapMetadata(f: (ObjectMeta) ⇒ ObjectMeta): T

    Creates a new object with its metadata modified by the given function f

    Creates a new object with its metadata modified by the given function f

    f

    Function to modify the object's metadata with

    returns

    Object with modified metadata

  18. def metadata: Optional[ObjectMeta]

    Gets the metadata of the object

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def tryAttachOwner[OwnerT](owner: OwnerT)(implicit arg0: K8sObject[OwnerT], arg1: ResourceMetadata[OwnerT]): IO[K8sFailure, T]

    Tries to attach another resource as the owner of this one.

    Tries to attach another resource as the owner of this one. Can fail with com.coralogix.zio.k8s.client.UndefinedField if the owner does not have all the required metadata.

    OwnerT

    Type of the owner

    owner

    Owner resource

    returns

    Object with the attached owner described in its metadata

  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped