Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kubernetes_apis/builtin/core@v1/mod.ts>CoreV1NamespacedApi

REST focused Typescript classes for Kubernetes APIs, and tools for generating API interfaces
Go to Latest
class CoreV1NamespacedApi
import { CoreV1NamespacedApi } from "https://deno.land/x/kubernetes_apis@v0.5.1/builtin/core@v1/mod.ts";

Constructors

new
CoreV1NamespacedApi(client: c.RestClient, namespace: string)

Methods

createBinding(body: CoreV1.Binding, opts?: operations.PutOpts): Promise<CoreV1.Binding>
createConfigMap(body: CoreV1.ConfigMap, opts?: operations.PutOpts): Promise<CoreV1.ConfigMap>
createEndpoints(body: CoreV1.Endpoints, opts?: operations.PutOpts): Promise<CoreV1.Endpoints>
createEvent(body: CoreV1.Event, opts?: operations.PutOpts): Promise<CoreV1.Event>
createLimitRange(body: CoreV1.LimitRange, opts?: operations.PutOpts): Promise<CoreV1.LimitRange>
createPersistentVolumeClaim(body: CoreV1.PersistentVolumeClaim, opts?: operations.PutOpts): Promise<CoreV1.PersistentVolumeClaim>
createPod(body: CoreV1.Pod, opts?: operations.PutOpts): Promise<CoreV1.Pod>
createPodBinding(
name: string,
body: CoreV1.Binding,
opts?: operations.PutOpts,
): Promise<CoreV1.Binding>
createPodEviction(
name: string,
body: PolicyV1.Eviction,
opts?: operations.PutOpts,
): Promise<PolicyV1.Eviction>
createPodTemplate(body: CoreV1.PodTemplate, opts?: operations.PutOpts): Promise<CoreV1.PodTemplate>
createReplicationController(body: CoreV1.ReplicationController, opts?: operations.PutOpts): Promise<CoreV1.ReplicationController>
createResourceQuota(body: CoreV1.ResourceQuota, opts?: operations.PutOpts): Promise<CoreV1.ResourceQuota>
createSecret(body: CoreV1.Secret, opts?: operations.PutOpts): Promise<CoreV1.Secret>
createService(body: CoreV1.Service, opts?: operations.PutOpts): Promise<CoreV1.Service>
createServiceAccount(body: CoreV1.ServiceAccount, opts?: operations.PutOpts): Promise<CoreV1.ServiceAccount>
createServiceAccountToken(
name: string,
body: AuthenticationV1.TokenRequest,
opts?: operations.PutOpts,
): Promise<AuthenticationV1.TokenRequest>
deleteConfigMap(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.ConfigMap | MetaV1.Status>
deleteConfigMapList(opts?: operations.DeleteListOpts): Promise<CoreV1.ConfigMapList>
deleteEndpoints(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.Endpoints | MetaV1.Status>
deleteEndpointsList(opts?: operations.DeleteListOpts): Promise<CoreV1.EndpointsList>
deleteEvent(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.Event | MetaV1.Status>
deleteEventList(opts?: operations.DeleteListOpts): Promise<CoreV1.EventList>
deleteLimitRange(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.LimitRange | MetaV1.Status>
deleteLimitRangeList(opts?: operations.DeleteListOpts): Promise<CoreV1.LimitRangeList>
deletePersistentVolumeClaim(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.PersistentVolumeClaim | MetaV1.Status>
deletePersistentVolumeClaimList(opts?: operations.DeleteListOpts): Promise<CoreV1.PersistentVolumeClaimList>
deletePod(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.Pod | MetaV1.Status>
deletePodList(opts?: operations.DeleteListOpts): Promise<CoreV1.PodList>
deletePodTemplate(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.PodTemplate | MetaV1.Status>
deletePodTemplateList(opts?: operations.DeleteListOpts): Promise<CoreV1.PodTemplateList>
deleteReplicationController(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.ReplicationController | MetaV1.Status>
deleteReplicationControllerList(opts?: operations.DeleteListOpts): Promise<CoreV1.ReplicationControllerList>
deleteResourceQuota(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.ResourceQuota | MetaV1.Status>
deleteResourceQuotaList(opts?: operations.DeleteListOpts): Promise<CoreV1.ResourceQuotaList>
deleteSecret(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.Secret | MetaV1.Status>
deleteSecretList(opts?: operations.DeleteListOpts): Promise<CoreV1.SecretList>
deleteService(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.Service | MetaV1.Status>
deleteServiceAccount(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.ServiceAccount | MetaV1.Status>
deleteServiceAccountList(opts?: operations.DeleteListOpts): Promise<CoreV1.ServiceAccountList>
deleteServiceList(opts?: operations.DeleteListOpts): Promise<CoreV1.ServiceList>
getConfigMap(name: string, opts?: operations.NoOpts): Promise<CoreV1.ConfigMap>
getConfigMapList(opts?: operations.GetListOpts): Promise<CoreV1.ConfigMapList>
getEndpoints(name: string, opts?: operations.NoOpts): Promise<CoreV1.Endpoints>
getEndpointsList(opts?: operations.GetListOpts): Promise<CoreV1.EndpointsList>
getEvent(name: string, opts?: operations.NoOpts): Promise<CoreV1.Event>
getEventList(opts?: operations.GetListOpts): Promise<CoreV1.EventList>
getLimitRange(name: string, opts?: operations.NoOpts): Promise<CoreV1.LimitRange>
getLimitRangeList(opts?: operations.GetListOpts): Promise<CoreV1.LimitRangeList>
getPersistentVolumeClaim(name: string, opts?: operations.NoOpts): Promise<CoreV1.PersistentVolumeClaim>
getPersistentVolumeClaimList(opts?: operations.GetListOpts): Promise<CoreV1.PersistentVolumeClaimList>
getPersistentVolumeClaimStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.PersistentVolumeClaim>
getPod(name: string, opts?: operations.NoOpts): Promise<CoreV1.Pod>
getPodEphemeralcontainers(name: string, opts?: operations.NoOpts): Promise<CoreV1.Pod>
getPodList(opts?: operations.GetListOpts): Promise<CoreV1.PodList>
getPodLog(name: string, opts?: { container?: string; insecureSkipTLSVerifyBackend?: boolean; limitBytes?: number; previous?: boolean; sinceSeconds?: number; tailLines?: number; timestamps?: boolean; abortSignal?: AbortSignal; }): Promise<string>
getPodStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.Pod>
getPodTemplate(name: string, opts?: operations.NoOpts): Promise<CoreV1.PodTemplate>
getPodTemplateList(opts?: operations.GetListOpts): Promise<CoreV1.PodTemplateList>
getReplicationController(name: string, opts?: operations.NoOpts): Promise<CoreV1.ReplicationController>
getReplicationControllerList(opts?: operations.GetListOpts): Promise<CoreV1.ReplicationControllerList>
getReplicationControllerScale(name: string, opts?: operations.NoOpts): Promise<AutoscalingV1.Scale>
getReplicationControllerStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.ReplicationController>
getResourceQuota(name: string, opts?: operations.NoOpts): Promise<CoreV1.ResourceQuota>
getResourceQuotaList(opts?: operations.GetListOpts): Promise<CoreV1.ResourceQuotaList>
getResourceQuotaStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.ResourceQuota>
getSecret(name: string, opts?: operations.NoOpts): Promise<CoreV1.Secret>
getSecretList(opts?: operations.GetListOpts): Promise<CoreV1.SecretList>
getService(name: string, opts?: operations.NoOpts): Promise<CoreV1.Service>
getServiceAccount(name: string, opts?: operations.NoOpts): Promise<CoreV1.ServiceAccount>
getServiceAccountList(opts?: operations.GetListOpts): Promise<CoreV1.ServiceAccountList>
getServiceList(opts?: operations.GetListOpts): Promise<CoreV1.ServiceList>
getServiceStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.Service>
patchConfigMap(
name: string,
type: c.PatchType,
body: CoreV1.ConfigMap | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.ConfigMap>
patchEndpoints(
name: string,
type: c.PatchType,
body: CoreV1.Endpoints | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Endpoints>
patchEvent(
name: string,
type: c.PatchType,
body: CoreV1.Event | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Event>
patchLimitRange(
name: string,
type: c.PatchType,
body: CoreV1.LimitRange | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.LimitRange>
patchPersistentVolumeClaim(
name: string,
type: c.PatchType,
body: CoreV1.PersistentVolumeClaim | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.PersistentVolumeClaim>
patchPersistentVolumeClaimStatus(
name: string,
type: c.PatchType,
body: CoreV1.PersistentVolumeClaim | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.PersistentVolumeClaim>
patchPod(
name: string,
type: c.PatchType,
body: CoreV1.Pod | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Pod>
patchPodEphemeralcontainers(
name: string,
type: c.PatchType,
body: CoreV1.Pod | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Pod>
patchPodStatus(
name: string,
type: c.PatchType,
body: CoreV1.Pod | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Pod>
patchPodTemplate(
name: string,
type: c.PatchType,
body: CoreV1.PodTemplate | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.PodTemplate>
patchReplicationController(
name: string,
type: c.PatchType,
body: CoreV1.ReplicationController | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.ReplicationController>
patchReplicationControllerScale(
name: string,
type: c.PatchType,
body: AutoscalingV1.Scale | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<AutoscalingV1.Scale>
patchReplicationControllerStatus(
name: string,
type: c.PatchType,
body: CoreV1.ReplicationController | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.ReplicationController>
patchResourceQuota(
name: string,
type: c.PatchType,
body: CoreV1.ResourceQuota | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.ResourceQuota>
patchResourceQuotaStatus(
name: string,
type: c.PatchType,
body: CoreV1.ResourceQuota | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.ResourceQuota>
patchSecret(
name: string,
type: c.PatchType,
body: CoreV1.Secret | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Secret>
patchService(
name: string,
type: c.PatchType,
body: CoreV1.Service | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Service>
patchServiceAccount(
name: string,
type: c.PatchType,
body: CoreV1.ServiceAccount | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.ServiceAccount>
patchServiceStatus(
name: string,
type: c.PatchType,
body: CoreV1.Service | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Service>
proxyPodRequest(podName: string, opts: c.ProxyOptions & { expectStream: true; expectJson: true; }): Promise<ReadableStream<c.JSONValue>>
proxyPodRequest(podName: string, opts: c.ProxyOptions & { expectStream: true; }): Promise<ReadableStream<Uint8Array>>
proxyPodRequest(podName: string, opts: c.ProxyOptions & { expectJson: true; }): Promise<c.JSONValue>
proxyPodRequest(podName: string, opts: c.ProxyOptions): Promise<Uint8Array>
proxyServiceRequest(serviceName: string, opts: c.ProxyOptions & { expectStream: true; expectJson: true; }): Promise<ReadableStream<c.JSONValue>>
proxyServiceRequest(serviceName: string, opts: c.ProxyOptions & { expectStream: true; }): Promise<ReadableStream<Uint8Array>>
proxyServiceRequest(serviceName: string, opts: c.ProxyOptions & { expectJson: true; }): Promise<c.JSONValue>
proxyServiceRequest(serviceName: string, opts: c.ProxyOptions): Promise<Uint8Array>
replaceConfigMap(
name: string,
body: CoreV1.ConfigMap,
opts?: operations.PutOpts,
): Promise<CoreV1.ConfigMap>
replaceEndpoints(
name: string,
body: CoreV1.Endpoints,
opts?: operations.PutOpts,
): Promise<CoreV1.Endpoints>
replaceEvent(
name: string,
body: CoreV1.Event,
opts?: operations.PutOpts,
): Promise<CoreV1.Event>
replaceLimitRange(
name: string,
body: CoreV1.LimitRange,
opts?: operations.PutOpts,
): Promise<CoreV1.LimitRange>
replacePersistentVolumeClaim(
name: string,
body: CoreV1.PersistentVolumeClaim,
opts?: operations.PutOpts,
): Promise<CoreV1.PersistentVolumeClaim>
replacePersistentVolumeClaimStatus(
name: string,
body: CoreV1.PersistentVolumeClaim,
opts?: operations.PutOpts,
): Promise<CoreV1.PersistentVolumeClaim>
replacePod(
name: string,
body: CoreV1.Pod,
opts?: operations.PutOpts,
): Promise<CoreV1.Pod>
replacePodEphemeralcontainers(
name: string,
body: CoreV1.Pod,
opts?: operations.PutOpts,
): Promise<CoreV1.Pod>
replacePodStatus(
name: string,
body: CoreV1.Pod,
opts?: operations.PutOpts,
): Promise<CoreV1.Pod>
replacePodTemplate(
name: string,
body: CoreV1.PodTemplate,
opts?: operations.PutOpts,
): Promise<CoreV1.PodTemplate>
replaceReplicationController(
name: string,
body: CoreV1.ReplicationController,
opts?: operations.PutOpts,
): Promise<CoreV1.ReplicationController>
replaceReplicationControllerScale(
name: string,
body: AutoscalingV1.Scale,
opts?: operations.PutOpts,
): Promise<AutoscalingV1.Scale>
replaceReplicationControllerStatus(
name: string,
body: CoreV1.ReplicationController,
opts?: operations.PutOpts,
): Promise<CoreV1.ReplicationController>
replaceResourceQuota(
name: string,
body: CoreV1.ResourceQuota,
opts?: operations.PutOpts,
): Promise<CoreV1.ResourceQuota>
replaceResourceQuotaStatus(
name: string,
body: CoreV1.ResourceQuota,
opts?: operations.PutOpts,
): Promise<CoreV1.ResourceQuota>
replaceSecret(
name: string,
body: CoreV1.Secret,
opts?: operations.PutOpts,
): Promise<CoreV1.Secret>
replaceService(
name: string,
body: CoreV1.Service,
opts?: operations.PutOpts,
): Promise<CoreV1.Service>
replaceServiceAccount(
name: string,
body: CoreV1.ServiceAccount,
opts?: operations.PutOpts,
): Promise<CoreV1.ServiceAccount>
replaceServiceStatus(
name: string,
body: CoreV1.Service,
opts?: operations.PutOpts,
): Promise<CoreV1.Service>
streamPodLog(name: string, opts?: { container?: string; follow?: boolean; insecureSkipTLSVerifyBackend?: boolean; limitBytes?: number; previous?: boolean; sinceSeconds?: number; tailLines?: number; timestamps?: boolean; abortSignal?: AbortSignal; }): Promise<ReadableStream<string>>
tunnelPodAttach(name: string, opts: { container?: string; stderr?: boolean; stdin?: boolean; stdout: boolean; tty?: boolean; abortSignal?: AbortSignal; }): Promise<tunnels.StdioTunnel>
tunnelPodExec(name: string, opts: { command: Array<string>; container?: string; stderr?: boolean; stdin?: boolean; stdout: boolean; tty?: boolean; abortSignal?: AbortSignal; }): Promise<tunnels.StdioTunnel>
tunnelPodPortforward(name: string, opts?: { ports?: Array<number>; abortSignal?: AbortSignal; }): Promise<tunnels.PortforwardTunnel>
watchConfigMapList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ConfigMap>>
watchEndpointsList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Endpoints>>
watchEventList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Event>>
watchLimitRangeList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.LimitRange>>
watchPersistentVolumeClaimList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.PersistentVolumeClaim>>
watchPodList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Pod>>
watchPodTemplateList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.PodTemplate>>
watchReplicationControllerList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ReplicationController>>
watchResourceQuotaList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ResourceQuota>>
watchSecretList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Secret>>
watchServiceAccountList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ServiceAccount>>
watchServiceList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Service>>