trait K8sObject[T] extends AnyRef

Common operations for every Kubernetes resource's object

T

Kubernetes resource type

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

Abstract Value Members

  1. abstract def mapMetadata(f: (ObjectMeta) ⇒ ObjectMeta)(r: T): T

    Maps the metadata of the object, constructing a new object with the modified metadata

    Maps the metadata of the object, constructing a new object with the modified metadata

    f

    Function returning the modified metadata

  2. abstract def metadata(obj: T): Optional[ObjectMeta]

    Gets the metadata of the object

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(obj: T)(ownerName: String, ownerUid: String, ownerType: K8sResourceType, kind: String): T

    Attach another Kubernetes resource as the owner of the given one

    Attach another Kubernetes resource as the owner of the given one

    obj

    Object to attach the owner to

    ownerName

    Owner's name

    ownerUid

    Owner's UID

    ownerType

    Owner's resource type

    kind

    Owner's resource kind

    returns

    The modified object with the attached owner

  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(obj: T): Long

    Gets the generation of the object stored in its metadata or 0 if it is not present (the resource was not uploaded yet)

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

    Gets the metadata of the object or fails with UndefinedField if it is not present.

  12. def getName(obj: T): IO[K8sFailure, String]

    Gets the name stored in the metadata of the object or fails with UndefinedField if it is not present.

  13. def getUid(obj: T): IO[K8sFailure, String]

    Gets the UID stored in the metadata of the object or fails with 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](obj: T)(owner: OwnerT)(implicit arg0: K8sObject[OwnerT], arg1: ResourceMetadata[OwnerT]): Boolean

    Check if a resource is owned by an other one

    Check if a resource is owned by an other one

    OwnerT

    Owner resource type

    obj

    Owned resource object to check

    owner

    Owner

    returns

    True if owner owns obj

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

    Try to attachOwner another Kubernetes resource as the owner of the given one, can fail with UndefinedField if some of the metadata fields are not present.

  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  25. 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