Module roperator::resource[][src]

Structs

InvalidResourceError
K8sResource

A K8sResource represents a Kubernetes resource that actually exists in the cluster. It is a transparent wrapper around a serde_json::Value, with some validation and some accessors for common properties. This type can represent a Kubernetes resource of any apiVersion/kind. If you want to deserialize this to a specific struct type (e.g. a Pod), you can use into_type::<Pod>() to deserialize it. This type is not used to represent resources that haven’t been created yet, since the fields that are populated by the api server would be missing. Resources that don’t actually exist in the cluster are instead represented by a plain serde_json::Value, since we make almost no assumptions about those.

K8sTypeRef
ObjectId

An owned Object Id

ObjectIdRef

An id that borrows its fields

Traits

ResourceJson

Type Definitions

JsonObject