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

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

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

Constructors

new
CoreV1Api(client: c.RestClient)

Methods

createNamespace(body: CoreV1.Namespace, opts?: operations.PutOpts): Promise<CoreV1.Namespace>
createNode(body: CoreV1.Node, opts?: operations.PutOpts): Promise<CoreV1.Node>
createPersistentVolume(body: CoreV1.PersistentVolume, opts?: operations.PutOpts): Promise<CoreV1.PersistentVolume>
deleteNamespace(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.Namespace | MetaV1.Status>
deleteNode(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.Node | MetaV1.Status>
deleteNodeList(opts?: operations.DeleteListOpts): Promise<CoreV1.NodeList>
deletePersistentVolume(name: string, opts?: operations.DeleteOpts): Promise<CoreV1.PersistentVolume | MetaV1.Status>
deletePersistentVolumeList(opts?: operations.DeleteListOpts): Promise<CoreV1.PersistentVolumeList>
getComponentStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.ComponentStatus>
getComponentStatusList(opts?: operations.GetListOpts): Promise<CoreV1.ComponentStatusList>
getConfigMapListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.ConfigMapList>
getEndpointsListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.EndpointsList>
getEventListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.EventList>
getLimitRangeListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.LimitRangeList>
getNamespace(name: string, opts?: operations.NoOpts): Promise<CoreV1.Namespace>
getNamespaceList(opts?: operations.GetListOpts): Promise<CoreV1.NamespaceList>
getNamespaceStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.Namespace>
getNode(name: string, opts?: operations.NoOpts): Promise<CoreV1.Node>
getNodeList(opts?: operations.GetListOpts): Promise<CoreV1.NodeList>
getNodeStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.Node>
getPersistentVolume(name: string, opts?: operations.NoOpts): Promise<CoreV1.PersistentVolume>
getPersistentVolumeClaimListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.PersistentVolumeClaimList>
getPersistentVolumeList(opts?: operations.GetListOpts): Promise<CoreV1.PersistentVolumeList>
getPersistentVolumeStatus(name: string, opts?: operations.NoOpts): Promise<CoreV1.PersistentVolume>
getPodListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.PodList>
getPodTemplateListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.PodTemplateList>
getReplicationControllerListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.ReplicationControllerList>
getResourceQuotaListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.ResourceQuotaList>
getSecretListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.SecretList>
getServiceAccountListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.ServiceAccountList>
getServiceListForAllNamespaces(opts?: operations.GetListOpts): Promise<CoreV1.ServiceList>
patchNamespace(
name: string,
type: c.PatchType,
body: CoreV1.Namespace | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Namespace>
patchNamespaceStatus(
name: string,
type: c.PatchType,
body: CoreV1.Namespace | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Namespace>
patchNode(
name: string,
type: c.PatchType,
body: CoreV1.Node | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Node>
patchNodeStatus(
name: string,
type: c.PatchType,
body: CoreV1.Node | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.Node>
patchPersistentVolume(
name: string,
type: c.PatchType,
body: CoreV1.PersistentVolume | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.PersistentVolume>
patchPersistentVolumeStatus(
name: string,
type: c.PatchType,
body: CoreV1.PersistentVolume | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<CoreV1.PersistentVolume>
proxyNodeRequest(nodeName: string, opts: c.ProxyOptions & { expectStream: true; expectJson: true; }): Promise<ReadableStream<c.JSONValue>>
proxyNodeRequest(nodeName: string, opts: c.ProxyOptions & { expectStream: true; }): Promise<ReadableStream<Uint8Array>>
proxyNodeRequest(nodeName: string, opts: c.ProxyOptions & { expectJson: true; }): Promise<c.JSONValue>
proxyNodeRequest(nodeName: string, opts: c.ProxyOptions): Promise<Uint8Array>
replaceNamespace(
name: string,
body: CoreV1.Namespace,
opts?: operations.PutOpts,
): Promise<CoreV1.Namespace>
replaceNamespaceFinalize(
name: string,
body: CoreV1.Namespace,
opts?: operations.PutOpts,
): Promise<CoreV1.Namespace>
replaceNamespaceStatus(
name: string,
body: CoreV1.Namespace,
opts?: operations.PutOpts,
): Promise<CoreV1.Namespace>
replaceNode(
name: string,
body: CoreV1.Node,
opts?: operations.PutOpts,
): Promise<CoreV1.Node>
replaceNodeStatus(
name: string,
body: CoreV1.Node,
opts?: operations.PutOpts,
): Promise<CoreV1.Node>
replacePersistentVolume(
name: string,
body: CoreV1.PersistentVolume,
opts?: operations.PutOpts,
): Promise<CoreV1.PersistentVolume>
replacePersistentVolumeStatus(
name: string,
body: CoreV1.PersistentVolume,
opts?: operations.PutOpts,
): Promise<CoreV1.PersistentVolume>
watchConfigMapListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ConfigMap>>
watchEndpointsListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Endpoints>>
watchEventListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Event>>
watchLimitRangeListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.LimitRange>>
watchNamespaceList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Namespace>>
watchNodeList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Node>>
watchPersistentVolumeClaimListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.PersistentVolumeClaim>>
watchPersistentVolumeList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.PersistentVolume>>
watchPodListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Pod>>
watchPodTemplateListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.PodTemplate>>
watchReplicationControllerListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ReplicationController>>
watchResourceQuotaListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ResourceQuota>>
watchSecretListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Secret>>
watchServiceAccountListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.ServiceAccount>>
watchServiceListForAllNamespaces(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<CoreV1.Service>>