Packages

implicit class Ops extends K8sObjectOps[Role]

Linear Supertypes
K8sObjectOps[Role], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Ops
  2. K8sObjectOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Ops(obj: Role)

Value Members

  1. def attachOwner(ownerName: String, ownerUid: String, ownerType: K8sResourceType, kind: String): Role

    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

    Definition Classes
    K8sObjectOps
  2. def generation: Long

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

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

    Definition Classes
    K8sObjectOps
  3. 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

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

    Definition Classes
    K8sObjectOps
  4. 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

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

    Definition Classes
    K8sObjectOps
  5. 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

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

    Definition Classes
    K8sObjectOps
  6. 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

    Definition Classes
    K8sObjectOps
  7. def mapMetadata(f: (ObjectMeta) ⇒ ObjectMeta): Role

    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

    Definition Classes
    K8sObjectOps
  8. def metadata: Optional[ObjectMeta]

    Gets the metadata of the object

    Gets the metadata of the object

    Definition Classes
    K8sObjectOps
  9. def tryAttachOwner[OwnerT](owner: OwnerT)(implicit arg0: K8sObject[OwnerT], arg1: ResourceMetadata[OwnerT]): IO[K8sFailure, Role]

    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

    Definition Classes
    K8sObjectOps