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 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.

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.

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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::admissionregistration::v1::ValidatingAdmissionPolicy

source§

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

source§

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

source§

const KIND: &'static str = "ValidatingAdmissionPolicy"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "validatingadmissionpolicies"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::admissionregistration::v1::ValidatingAdmissionPolicyBinding

source§

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

source§

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

source§

const KIND: &'static str = "ValidatingAdmissionPolicyBinding"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "validatingadmissionpolicybindings"

source§

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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::admissionregistration::v1alpha1::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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::admissionregistration::v1alpha1::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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::admissionregistration::v1beta1::ValidatingAdmissionPolicy

source§

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

source§

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

source§

const KIND: &'static str = "ValidatingAdmissionPolicy"

source§

const VERSION: &'static str = "v1beta1"

source§

const URL_PATH_SEGMENT: &'static str = "validatingadmissionpolicies"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::admissionregistration::v1beta1::ValidatingAdmissionPolicyBinding

source§

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

source§

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

source§

const KIND: &'static str = "ValidatingAdmissionPolicyBinding"

source§

const VERSION: &'static str = "v1beta1"

source§

const URL_PATH_SEGMENT: &'static str = "validatingadmissionpolicybindings"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

type Scope = NamespaceResourceScope

source§

impl Resource for k8s_openapi::api::authentication::v1::SelfSubjectReview

source§

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

source§

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

source§

const KIND: &'static str = "SelfSubjectReview"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "selfsubjectreviews"

source§

type Scope = ClusterResourceScope

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"

source§

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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::authentication::v1alpha1::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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::authentication::v1beta1::SelfSubjectReview

source§

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

source§

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

source§

const KIND: &'static str = "SelfSubjectReview"

source§

const VERSION: &'static str = "v1beta1"

source§

const URL_PATH_SEGMENT: &'static str = "selfsubjectreviews"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for ClusterTrustBundle

source§

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

source§

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

source§

const KIND: &'static str = "ClusterTrustBundle"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "clustertrustbundles"

source§

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"

source§

type Scope = NamespaceResourceScope

source§

impl Resource for LeaseCandidate

source§

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

source§

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

source§

const KIND: &'static str = "LeaseCandidate"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "leasecandidates"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

type Scope = NamespaceResourceScope

source§

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

source§

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

source§

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

source§

const KIND: &'static str = "FlowSchema"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "flowschemas"

source§

type Scope = ClusterResourceScope

source§

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

source§

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

source§

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

source§

const KIND: &'static str = "PriorityLevelConfiguration"

source§

const VERSION: &'static str = "v1"

source§

const URL_PATH_SEGMENT: &'static str = "prioritylevelconfigurations"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

type Scope = NamespaceResourceScope

source§

impl Resource for IPAddress

source§

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

source§

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

source§

const KIND: &'static str = "IPAddress"

source§

const VERSION: &'static str = "v1beta1"

source§

const URL_PATH_SEGMENT: &'static str = "ipaddresses"

source§

type Scope = ClusterResourceScope

source§

impl Resource for ServiceCIDR

source§

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

source§

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

source§

const KIND: &'static str = "ServiceCIDR"

source§

const VERSION: &'static str = "v1beta1"

source§

const URL_PATH_SEGMENT: &'static str = "servicecidrs"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

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"

source§

type Scope = NamespaceResourceScope

source§

impl Resource for DeviceClass

source§

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

source§

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

source§

const KIND: &'static str = "DeviceClass"

source§

const VERSION: &'static str = "v1alpha3"

source§

const URL_PATH_SEGMENT: &'static str = "deviceclasses"

source§

type Scope = ClusterResourceScope

source§

impl Resource for PodSchedulingContext

source§

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

source§

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

source§

const KIND: &'static str = "PodSchedulingContext"

source§

const VERSION: &'static str = "v1alpha3"

source§

const URL_PATH_SEGMENT: &'static str = "podschedulingcontexts"

source§

type Scope = NamespaceResourceScope

source§

impl Resource for ResourceClaim

source§

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

source§

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

source§

const KIND: &'static str = "ResourceClaim"

source§

const VERSION: &'static str = "v1alpha3"

source§

const URL_PATH_SEGMENT: &'static str = "resourceclaims"

source§

type Scope = NamespaceResourceScope

source§

impl Resource for ResourceClaimTemplate

source§

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

source§

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

source§

const KIND: &'static str = "ResourceClaimTemplate"

source§

const VERSION: &'static str = "v1alpha3"

source§

const URL_PATH_SEGMENT: &'static str = "resourceclaimtemplates"

source§

type Scope = NamespaceResourceScope

source§

impl Resource for ResourceSlice

source§

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

source§

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

source§

const KIND: &'static str = "ResourceSlice"

source§

const VERSION: &'static str = "v1alpha3"

source§

const URL_PATH_SEGMENT: &'static str = "resourceslices"

source§

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"

source§

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"

source§

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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for 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"

source§

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"

source§

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"

source§

type Scope = ClusterResourceScope

source§

impl Resource for k8s_openapi::api::storage::v1alpha1::VolumeAttributesClass

source§

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

source§

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

source§

const KIND: &'static str = "VolumeAttributesClass"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "volumeattributesclasses"

source§

type Scope = ClusterResourceScope

source§

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

source§

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

source§

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

source§

const KIND: &'static str = "VolumeAttributesClass"

source§

const VERSION: &'static str = "v1beta1"

source§

const URL_PATH_SEGMENT: &'static str = "volumeattributesclasses"

source§

type Scope = ClusterResourceScope

source§

impl Resource for StorageVersionMigration

source§

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

source§

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

source§

const KIND: &'static str = "StorageVersionMigration"

source§

const VERSION: &'static str = "v1alpha1"

source§

const URL_PATH_SEGMENT: &'static str = "storageversionmigrations"

source§

type Scope = ClusterResourceScope

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"

source§

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 = ""

source§

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 = ""

source§

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 = ""

source§

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 = ""

source§

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"

source§

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"

source§

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 = ""

source§

type Scope = <T as Resource>::Scope