Trait k8s_openapi::Resource

source ·
pub trait Resource {
    type Scope: ResourceScope;

    const API_VERSION: &'static str;
    const GROUP: &'static str;
    const KIND: &'static str;
    const VERSION: &'static str;
    const URL_PATH_SEGMENT: &'static str;
}
Expand description

A trait applied to all Kubernetes resources.

Required Associated Types§

source

type Scope: ResourceScope

Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource.

If you need to restrict some generic code to resources of a specific scope, use this associated type to create a bound on the generic. For example, fn foo<T: k8s_openapi::Resource<Scope = k8s_openapi::ClusterResourceScope>>() { } can only be called with cluster-scoped resources.

Required Associated Constants§

source

const API_VERSION: &'static str

The API version of the resource. This is a composite of Resource::GROUP and Resource::VERSION (eg "apiextensions.k8s.io/v1beta1") or just the version for resources without a group (eg "v1").

This is the string used in the apiVersion field of the resource’s serialized form.

source

const GROUP: &'static str

The group of the resource, or the empty string if the resource doesn’t have a group.

source

const KIND: &'static str

The kind of the resource.

This is the string used in the kind field of the resource’s serialized form.

source

const VERSION: &'static str

The version of the resource.

source

const URL_PATH_SEGMENT: &'static str

The URL path segment used to construct URLs related to this resource.

For cluster- and namespaced-scoped resources, this is the plural name of the resource that is followed by the resource name. For example, api::core::v1::Pod’s value is "pods" and its URLs look like .../pods/{name}.

For subresources, this is the subresource name that comes after the parent resource’s name. For example, api::authentication::v1::TokenRequest’s value is "token", and its URLs look like .../serviceaccounts/{name}/token.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Resource for MutatingWebhookConfiguration

source§

const API_VERSION: &'static str = "admissionregistration.k8s.io/v1"

source§

const GROUP: &'static str = "admissionregistration.k8s.io"

source§

const KIND: &'static str = "MutatingWebhookConfiguration"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "mutatingwebhookconfigurations"

§

type Scope = ClusterResourceScope

source§

impl Resource for ValidatingWebhookConfiguration

source§

const API_VERSION: &'static str = "admissionregistration.k8s.io/v1"

source§

const GROUP: &'static str = "admissionregistration.k8s.io"

source§

const KIND: &'static str = "ValidatingWebhookConfiguration"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "validatingwebhookconfigurations"

§

type Scope = ClusterResourceScope

source§

impl Resource for ValidatingAdmissionPolicy

source§

const API_VERSION: &'static str = "admissionregistration.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "admissionregistration.k8s.io"

source§

const KIND: &'static str = "ValidatingAdmissionPolicy"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "validatingadmissionpolicies"

§

type Scope = ClusterResourceScope

source§

impl Resource for ValidatingAdmissionPolicyBinding

source§

const API_VERSION: &'static str = "admissionregistration.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "admissionregistration.k8s.io"

source§

const KIND: &'static str = "ValidatingAdmissionPolicyBinding"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "validatingadmissionpolicybindings"

§

type Scope = ClusterResourceScope

source§

impl Resource for StorageVersion

source§

const API_VERSION: &'static str = "internal.apiserver.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "internal.apiserver.k8s.io"

source§

const KIND: &'static str = "StorageVersion"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "storageversions"

§

type Scope = ClusterResourceScope

source§

impl Resource for ControllerRevision

source§

const API_VERSION: &'static str = "apps/v1"

source§

const GROUP: &'static str = "apps"

source§

const KIND: &'static str = "ControllerRevision"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "controllerrevisions"

§

type Scope = NamespaceResourceScope

source§

impl Resource for DaemonSet

source§

const API_VERSION: &'static str = "apps/v1"

source§

const GROUP: &'static str = "apps"

source§

const KIND: &'static str = "DaemonSet"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "daemonsets"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Deployment

source§

const API_VERSION: &'static str = "apps/v1"

source§

const GROUP: &'static str = "apps"

source§

const KIND: &'static str = "Deployment"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "deployments"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ReplicaSet

source§

const API_VERSION: &'static str = "apps/v1"

source§

const GROUP: &'static str = "apps"

source§

const KIND: &'static str = "ReplicaSet"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "replicasets"

§

type Scope = NamespaceResourceScope

source§

impl Resource for StatefulSet

source§

const API_VERSION: &'static str = "apps/v1"

source§

const GROUP: &'static str = "apps"

source§

const KIND: &'static str = "StatefulSet"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "statefulsets"

§

type Scope = NamespaceResourceScope

source§

impl Resource for TokenRequest

source§

const API_VERSION: &'static str = "authentication.k8s.io/v1"

source§

const GROUP: &'static str = "authentication.k8s.io"

source§

const KIND: &'static str = "TokenRequest"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "token"

§

type Scope = SubResourceScope

source§

impl Resource for TokenReview

source§

const API_VERSION: &'static str = "authentication.k8s.io/v1"

source§

const GROUP: &'static str = "authentication.k8s.io"

source§

const KIND: &'static str = "TokenReview"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "tokenreviews"

§

type Scope = ClusterResourceScope

source§

impl Resource for SelfSubjectReview

source§

const API_VERSION: &'static str = "authentication.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "authentication.k8s.io"

source§

const KIND: &'static str = "SelfSubjectReview"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "selfsubjectreviews"

§

type Scope = ClusterResourceScope

source§

impl Resource for LocalSubjectAccessReview

source§

const API_VERSION: &'static str = "authorization.k8s.io/v1"

source§

const GROUP: &'static str = "authorization.k8s.io"

source§

const KIND: &'static str = "LocalSubjectAccessReview"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "localsubjectaccessreviews"

§

type Scope = NamespaceResourceScope

source§

impl Resource for SelfSubjectAccessReview

source§

const API_VERSION: &'static str = "authorization.k8s.io/v1"

source§

const GROUP: &'static str = "authorization.k8s.io"

source§

const KIND: &'static str = "SelfSubjectAccessReview"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "selfsubjectaccessreviews"

§

type Scope = ClusterResourceScope

source§

impl Resource for SelfSubjectRulesReview

source§

const API_VERSION: &'static str = "authorization.k8s.io/v1"

source§

const GROUP: &'static str = "authorization.k8s.io"

source§

const KIND: &'static str = "SelfSubjectRulesReview"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "selfsubjectrulesreviews"

§

type Scope = ClusterResourceScope

source§

impl Resource for SubjectAccessReview

source§

const API_VERSION: &'static str = "authorization.k8s.io/v1"

source§

const GROUP: &'static str = "authorization.k8s.io"

source§

const KIND: &'static str = "SubjectAccessReview"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "subjectaccessreviews"

§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::autoscaling::v1::HorizontalPodAutoscaler

source§

const API_VERSION: &'static str = "autoscaling/v1"

source§

const GROUP: &'static str = "autoscaling"

source§

const KIND: &'static str = "HorizontalPodAutoscaler"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "horizontalpodautoscalers"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Scale

source§

const API_VERSION: &'static str = "autoscaling/v1"

source§

const GROUP: &'static str = "autoscaling"

source§

const KIND: &'static str = "Scale"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "scale"

§

type Scope = SubResourceScope

source§

impl Resource for k8s_openapi::api::autoscaling::v2::HorizontalPodAutoscaler

source§

const API_VERSION: &'static str = "autoscaling/v2"

source§

const GROUP: &'static str = "autoscaling"

source§

const KIND: &'static str = "HorizontalPodAutoscaler"

source§

const VERSION: &'static str = "v2"

source§

const URL_PATH_SEGMENT: &'static str = "horizontalpodautoscalers"

§

type Scope = NamespaceResourceScope

source§

impl Resource for CronJob

source§

const API_VERSION: &'static str = "batch/v1"

source§

const GROUP: &'static str = "batch"

source§

const KIND: &'static str = "CronJob"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "cronjobs"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Job

source§

const API_VERSION: &'static str = "batch/v1"

source§

const GROUP: &'static str = "batch"

source§

const KIND: &'static str = "Job"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "jobs"

§

type Scope = NamespaceResourceScope

source§

impl Resource for CertificateSigningRequest

source§

const API_VERSION: &'static str = "certificates.k8s.io/v1"

source§

const GROUP: &'static str = "certificates.k8s.io"

source§

const KIND: &'static str = "CertificateSigningRequest"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "certificatesigningrequests"

§

type Scope = ClusterResourceScope

source§

impl Resource for Lease

source§

const API_VERSION: &'static str = "coordination.k8s.io/v1"

source§

const GROUP: &'static str = "coordination.k8s.io"

source§

const KIND: &'static str = "Lease"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "leases"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Binding

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Binding"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "bindings"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ComponentStatus

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "ComponentStatus"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "componentstatuses"

§

type Scope = ClusterResourceScope

source§

impl Resource for ConfigMap

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "ConfigMap"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "configmaps"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Endpoints

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Endpoints"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "endpoints"

§

type Scope = NamespaceResourceScope

source§

impl Resource for k8s_openapi::api::core::v1::Event

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Event"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "events"

§

type Scope = NamespaceResourceScope

source§

impl Resource for LimitRange

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "LimitRange"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "limitranges"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Namespace

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Namespace"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "namespaces"

§

type Scope = ClusterResourceScope

source§

impl Resource for Node

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Node"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "nodes"

§

type Scope = ClusterResourceScope

source§

impl Resource for PersistentVolume

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "PersistentVolume"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "persistentvolumes"

§

type Scope = ClusterResourceScope

source§

impl Resource for PersistentVolumeClaim

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "PersistentVolumeClaim"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "persistentvolumeclaims"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Pod

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Pod"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "pods"

§

type Scope = NamespaceResourceScope

source§

impl Resource for PodTemplate

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "PodTemplate"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "podtemplates"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ReplicationController

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "ReplicationController"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "replicationcontrollers"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ResourceQuota

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "ResourceQuota"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "resourcequotas"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Secret

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Secret"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "secrets"

§

type Scope = NamespaceResourceScope

source§

impl Resource for Service

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Service"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "services"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ServiceAccount

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "ServiceAccount"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "serviceaccounts"

§

type Scope = NamespaceResourceScope

source§

impl Resource for EndpointSlice

source§

const API_VERSION: &'static str = "discovery.k8s.io/v1"

source§

const GROUP: &'static str = "discovery.k8s.io"

source§

const KIND: &'static str = "EndpointSlice"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "endpointslices"

§

type Scope = NamespaceResourceScope

source§

impl Resource for k8s_openapi::api::events::v1::Event

source§

const API_VERSION: &'static str = "events.k8s.io/v1"

source§

const GROUP: &'static str = "events.k8s.io"

source§

const KIND: &'static str = "Event"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "events"

§

type Scope = NamespaceResourceScope

source§

impl Resource for k8s_openapi::api::flowcontrol::v1beta2::FlowSchema

source§

const API_VERSION: &'static str = "flowcontrol.apiserver.k8s.io/v1beta2"

source§

const GROUP: &'static str = "flowcontrol.apiserver.k8s.io"

source§

const KIND: &'static str = "FlowSchema"

source§

const VERSION: &'static str = "v1beta2"

source§

const URL_PATH_SEGMENT: &'static str = "flowschemas"

§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::flowcontrol::v1beta2::PriorityLevelConfiguration

source§

const API_VERSION: &'static str = "flowcontrol.apiserver.k8s.io/v1beta2"

source§

const GROUP: &'static str = "flowcontrol.apiserver.k8s.io"

source§

const KIND: &'static str = "PriorityLevelConfiguration"

source§

const VERSION: &'static str = "v1beta2"

source§

const URL_PATH_SEGMENT: &'static str = "prioritylevelconfigurations"

§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::flowcontrol::v1beta3::FlowSchema

source§

const API_VERSION: &'static str = "flowcontrol.apiserver.k8s.io/v1beta3"

source§

const GROUP: &'static str = "flowcontrol.apiserver.k8s.io"

source§

const KIND: &'static str = "FlowSchema"

source§

const VERSION: &'static str = "v1beta3"

source§

const URL_PATH_SEGMENT: &'static str = "flowschemas"

§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::flowcontrol::v1beta3::PriorityLevelConfiguration

source§

const API_VERSION: &'static str = "flowcontrol.apiserver.k8s.io/v1beta3"

source§

const GROUP: &'static str = "flowcontrol.apiserver.k8s.io"

source§

const KIND: &'static str = "PriorityLevelConfiguration"

source§

const VERSION: &'static str = "v1beta3"

source§

const URL_PATH_SEGMENT: &'static str = "prioritylevelconfigurations"

§

type Scope = ClusterResourceScope

source§

impl Resource for Ingress

source§

const API_VERSION: &'static str = "networking.k8s.io/v1"

source§

const GROUP: &'static str = "networking.k8s.io"

source§

const KIND: &'static str = "Ingress"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "ingresses"

§

type Scope = NamespaceResourceScope

source§

impl Resource for IngressClass

source§

const API_VERSION: &'static str = "networking.k8s.io/v1"

source§

const GROUP: &'static str = "networking.k8s.io"

source§

const KIND: &'static str = "IngressClass"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "ingressclasses"

§

type Scope = ClusterResourceScope

source§

impl Resource for NetworkPolicy

source§

const API_VERSION: &'static str = "networking.k8s.io/v1"

source§

const GROUP: &'static str = "networking.k8s.io"

source§

const KIND: &'static str = "NetworkPolicy"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "networkpolicies"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ClusterCIDR

source§

const API_VERSION: &'static str = "networking.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "networking.k8s.io"

source§

const KIND: &'static str = "ClusterCIDR"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "clustercidrs"

§

type Scope = ClusterResourceScope

source§

impl Resource for RuntimeClass

source§

const API_VERSION: &'static str = "node.k8s.io/v1"

source§

const GROUP: &'static str = "node.k8s.io"

source§

const KIND: &'static str = "RuntimeClass"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "runtimeclasses"

§

type Scope = ClusterResourceScope

source§

impl Resource for Eviction

source§

const API_VERSION: &'static str = "policy/v1"

source§

const GROUP: &'static str = "policy"

source§

const KIND: &'static str = "Eviction"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "eviction"

§

type Scope = SubResourceScope

source§

impl Resource for PodDisruptionBudget

source§

const API_VERSION: &'static str = "policy/v1"

source§

const GROUP: &'static str = "policy"

source§

const KIND: &'static str = "PodDisruptionBudget"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "poddisruptionbudgets"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ClusterRole

source§

const API_VERSION: &'static str = "rbac.authorization.k8s.io/v1"

source§

const GROUP: &'static str = "rbac.authorization.k8s.io"

source§

const KIND: &'static str = "ClusterRole"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "clusterroles"

§

type Scope = ClusterResourceScope

source§

impl Resource for ClusterRoleBinding

source§

const API_VERSION: &'static str = "rbac.authorization.k8s.io/v1"

source§

const GROUP: &'static str = "rbac.authorization.k8s.io"

source§

const KIND: &'static str = "ClusterRoleBinding"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "clusterrolebindings"

§

type Scope = ClusterResourceScope

source§

impl Resource for Role

source§

const API_VERSION: &'static str = "rbac.authorization.k8s.io/v1"

source§

const GROUP: &'static str = "rbac.authorization.k8s.io"

source§

const KIND: &'static str = "Role"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "roles"

§

type Scope = NamespaceResourceScope

source§

impl Resource for RoleBinding

source§

const API_VERSION: &'static str = "rbac.authorization.k8s.io/v1"

source§

const GROUP: &'static str = "rbac.authorization.k8s.io"

source§

const KIND: &'static str = "RoleBinding"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "rolebindings"

§

type Scope = NamespaceResourceScope

source§

impl Resource for PodScheduling

source§

const API_VERSION: &'static str = "resource.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "resource.k8s.io"

source§

const KIND: &'static str = "PodScheduling"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "podschedulings"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ResourceClaim

source§

const API_VERSION: &'static str = "resource.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "resource.k8s.io"

source§

const KIND: &'static str = "ResourceClaim"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "resourceclaims"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ResourceClaimTemplate

source§

const API_VERSION: &'static str = "resource.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "resource.k8s.io"

source§

const KIND: &'static str = "ResourceClaimTemplate"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "resourceclaimtemplates"

§

type Scope = NamespaceResourceScope

source§

impl Resource for ResourceClass

source§

const API_VERSION: &'static str = "resource.k8s.io/v1alpha1"

source§

const GROUP: &'static str = "resource.k8s.io"

source§

const KIND: &'static str = "ResourceClass"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "resourceclasses"

§

type Scope = ClusterResourceScope

source§

impl Resource for PriorityClass

source§

const API_VERSION: &'static str = "scheduling.k8s.io/v1"

source§

const GROUP: &'static str = "scheduling.k8s.io"

source§

const KIND: &'static str = "PriorityClass"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "priorityclasses"

§

type Scope = ClusterResourceScope

source§

impl Resource for CSIDriver

source§

const API_VERSION: &'static str = "storage.k8s.io/v1"

source§

const GROUP: &'static str = "storage.k8s.io"

source§

const KIND: &'static str = "CSIDriver"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "csidrivers"

§

type Scope = ClusterResourceScope

source§

impl Resource for CSINode

source§

const API_VERSION: &'static str = "storage.k8s.io/v1"

source§

const GROUP: &'static str = "storage.k8s.io"

source§

const KIND: &'static str = "CSINode"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "csinodes"

§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::storage::v1::CSIStorageCapacity

source§

const API_VERSION: &'static str = "storage.k8s.io/v1"

source§

const GROUP: &'static str = "storage.k8s.io"

source§

const KIND: &'static str = "CSIStorageCapacity"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "csistoragecapacities"

§

type Scope = NamespaceResourceScope

source§

impl Resource for StorageClass

source§

const API_VERSION: &'static str = "storage.k8s.io/v1"

source§

const GROUP: &'static str = "storage.k8s.io"

source§

const KIND: &'static str = "StorageClass"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "storageclasses"

§

type Scope = ClusterResourceScope

source§

impl Resource for VolumeAttachment

source§

const API_VERSION: &'static str = "storage.k8s.io/v1"

source§

const GROUP: &'static str = "storage.k8s.io"

source§

const KIND: &'static str = "VolumeAttachment"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "volumeattachments"

§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::storage::v1beta1::CSIStorageCapacity

source§

const API_VERSION: &'static str = "storage.k8s.io/v1beta1"

source§

const GROUP: &'static str = "storage.k8s.io"

source§

const KIND: &'static str = "CSIStorageCapacity"

source§

const VERSION: &'static str = "v1beta1"

source§

const URL_PATH_SEGMENT: &'static str = "csistoragecapacities"

§

type Scope = NamespaceResourceScope

source§

impl Resource for CustomResourceDefinition

source§

const API_VERSION: &'static str = "apiextensions.k8s.io/v1"

source§

const GROUP: &'static str = "apiextensions.k8s.io"

source§

const KIND: &'static str = "CustomResourceDefinition"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "customresourcedefinitions"

§

type Scope = ClusterResourceScope

source§

impl Resource for APIGroup

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "APIGroup"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = ""

§

type Scope = ClusterResourceScope

source§

impl Resource for APIGroupList

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "APIGroupList"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = ""

§

type Scope = ClusterResourceScope

source§

impl Resource for APIResourceList

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "APIResourceList"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = ""

§

type Scope = ClusterResourceScope

source§

impl Resource for APIVersions

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "APIVersions"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = ""

§

type Scope = ClusterResourceScope

source§

impl Resource for Status

source§

const API_VERSION: &'static str = "v1"

source§

const GROUP: &'static str = ""

source§

const KIND: &'static str = "Status"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "status"

§

type Scope = SubResourceScope

source§

impl Resource for APIService

source§

const API_VERSION: &'static str = "apiregistration.k8s.io/v1"

source§

const GROUP: &'static str = "apiregistration.k8s.io"

source§

const KIND: &'static str = "APIService"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "apiservices"

§

type Scope = ClusterResourceScope

source§

impl<T> Resource for List<T>

source§

const API_VERSION: &'static str = <T as crate::Resource>::API_VERSION

source§

const GROUP: &'static str = <T as crate::Resource>::GROUP

source§

const KIND: &'static str = <T as crate::ListableResource>::LIST_KIND

source§

const VERSION: &'static str = <T as crate::Resource>::VERSION

source§

const URL_PATH_SEGMENT: &'static str = ""

§

type Scope = <T as Resource>::Scope