Socket
Socket
Sign inDemoInstall

@daocloud-proto/kant

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daocloud-proto/kant - npm Package Compare versions

Comparing version 0.2.0-dev-62cec5ee to 0.2.0

core/v1alpha1/apprequest.pb.ts

8

batch/v1alpha1/batch.pb.ts

@@ -10,3 +10,3 @@ /* eslint-disable */

export type ListBatchNodeRequest = {
cluster?: string
edgeunit?: string
name?: string

@@ -24,3 +24,3 @@ nodeNamePrefix?: string

export type GetBatchNodeRequest = {
cluster?: string
edgeunit?: string
name?: string

@@ -30,3 +30,3 @@ }

export type CreateBatchNodeRequest = {
cluster?: string
edgeunit?: string
metadata?: KantIoApiCommonV1alpha1Objectmeta.ObjectMeta

@@ -37,3 +37,3 @@ spec?: BatchNodeSpec

export type UpdateBatchNodeRequest = {
cluster?: string
edgeunit?: string
name?: string

@@ -40,0 +40,0 @@ metadata?: KantIoApiCommonV1alpha1Objectmeta.ObjectMeta

@@ -20,22 +20,22 @@ /* eslint-disable */

static List(req: KantIoApiBatchV1alpha1Batch.ListBatchNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.ListBatchNodeRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/batch-nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.ListBatchNodeRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes?${fm.renderURLSearchParams(req, ["edgeunit"])}`, {...initReq, method: "GET"})
}
static Get(req: KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Batch.BatchNode> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, KantIoApiBatchV1alpha1Batch.BatchNode>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/batch-nodes/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, KantIoApiBatchV1alpha1Batch.BatchNode>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes/${req["name"]}?${fm.renderURLSearchParams(req, ["edgeunit", "name"])}`, {...initReq, method: "GET"})
}
static Create(req: KantIoApiBatchV1alpha1Batch.CreateBatchNodeRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Batch.BatchNode> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.CreateBatchNodeRequest, KantIoApiBatchV1alpha1Batch.BatchNode>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/batch-nodes`, {...initReq, method: "POST", body: JSON.stringify(req)})
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.CreateBatchNodeRequest, KantIoApiBatchV1alpha1Batch.BatchNode>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static Update(req: KantIoApiBatchV1alpha1Batch.UpdateBatchNodeRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Batch.BatchNode> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.UpdateBatchNodeRequest, KantIoApiBatchV1alpha1Batch.BatchNode>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/batch-nodes/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.UpdateBatchNodeRequest, KantIoApiBatchV1alpha1Batch.BatchNode>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static Delete(req: KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, GoogleProtobufEmpty.Empty>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/batch-nodes/${req["name"]}`, {...initReq, method: "DELETE"})
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, GoogleProtobufEmpty.Empty>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes/${req["name"]}`, {...initReq, method: "DELETE"})
}
static DownloadCert(req: KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, GoogleApiHttpbody.HttpBody>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/batch-nodes/${req["name"]}/cert?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, GoogleApiHttpbody.HttpBody>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes/${req["name"]}/cert?${fm.renderURLSearchParams(req, ["edgeunit", "name"])}`, {...initReq, method: "GET"})
}
static JoinHelp(req: KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Batch.JoinHelpResponse> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, KantIoApiBatchV1alpha1Batch.JoinHelpResponse>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/batch-nodes/${req["name"]}/join-help?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, KantIoApiBatchV1alpha1Batch.JoinHelpResponse>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes/${req["name"]}/join-help?${fm.renderURLSearchParams(req, ["edgeunit", "name"])}`, {...initReq, method: "GET"})
}
}

@@ -7,26 +7,6 @@ /* eslint-disable */

import * as KpandaIoApiTypesPage from "../../kpanda.io/api/types/page.pb"
export type DeploymentJSON = {
data?: string
}
export type CreateDeploymentRequest = {
cluster?: string
namespace?: string
deployment?: Deployment
}
export type UpdateDeploymentRequest = {
cluster?: string
namespace?: string
name?: string
deployment?: Deployment
}
export type ListDeploymentsResponse = {
items?: Deployment[]
pagination?: KpandaIoApiTypesPage.Pagination
}
import * as KpandaIoApiTypesObjectmeta from "../../kpanda.io/api/types/objectmeta.pb"
export type Deployment = {
kind?: string
apiVersion?: string
metadata?: ObjectMeta

@@ -60,4 +40,4 @@ spec?: DeploymentSpec

status?: string
lastUpdateTime?: Time
lastTransitionTime?: Time
lastUpdateTime?: string
lastTransitionTime?: string
reason?: string

@@ -68,4 +48,4 @@ message?: string

export type RollingUpdateDeployment = {
maxUnavailable?: IntOrString
maxSurge?: IntOrString
maxUnavailable?: string
maxSurge?: string
}

@@ -98,2 +78,3 @@

collisionCount?: number
state?: KpandaIoApiTypesObjectmeta.WorkloadState
}

@@ -307,3 +288,3 @@

preemptionPolicy?: string
overhead?: {[key: string]: Quantity}
overhead?: {[key: string]: string}
topologySpreadConstraints?: TopologySpreadConstraint[]

@@ -397,3 +378,3 @@ setHostnameAsFQDN?: boolean

medium?: string
sizeLimit?: Quantity
sizeLimit?: string
}

@@ -529,3 +510,3 @@

resource?: string
divisor?: Quantity
divisor?: string
}

@@ -552,3 +533,3 @@

export type ConfigMapVolumeSource = {
localObjectReference?: LocalObjectReference
name?: string
items?: KeyToPath[]

@@ -612,3 +593,3 @@ defaultMode?: number

export type ConfigMapProjection = {
localObjectReference?: LocalObjectReference
name?: string
items?: KeyToPath[]

@@ -727,3 +708,2 @@ optional?: boolean

export type Probe = {
handler?: ProbeHandler
initialDelaySeconds?: number

@@ -735,2 +715,6 @@ timeoutSeconds?: number

terminationGracePeriodSeconds?: string
exec?: ExecAction
httpGet?: HTTPGetAction
tcpSocket?: TCPSocketAction
grpc?: GRPCAction
}

@@ -751,3 +735,3 @@

export type TCPSocketAction = {
port?: IntOrString
port?: number
host?: string

@@ -758,3 +742,3 @@ }

path?: string
port?: IntOrString
port?: number
host?: string

@@ -808,3 +792,3 @@ scheme?: string

export type SecretKeySelector = {
localObjectReference?: LocalObjectReference
name?: string
key?: string

@@ -815,3 +799,3 @@ optional?: boolean

export type ConfigMapKeySelector = {
localObjectReference?: LocalObjectReference
name?: string
key?: string

@@ -866,3 +850,3 @@ optional?: boolean

export type SecretEnvSource = {
localObjectReference?: LocalObjectReference
name?: string
optional?: boolean

@@ -872,3 +856,3 @@ }

export type ConfigMapEnvSource = {
localObjectReference?: LocalObjectReference
name?: string
optional?: boolean

@@ -875,0 +859,0 @@ }

@@ -6,12 +6,272 @@ /* eslint-disable */

*/
import * as KantIoApiCommonV1alpha1Objectmeta from "../../common/v1alpha1/objectmeta.pb"
import * as GoogleProtobufAny from "../../google/protobuf/any.pb"
export enum ProtocolConfigCommonCollectType {
sync = "sync",
async = "async",
}
export type ListClusterDeviceRequest = {
cluster?: string
page?: number
pageSize?: number
name?: string
}
export type ListDeviceRequest = {
cluster?: string
namespace?: string
name?: string
page?: number
pageSize?: number
name?: string
}
export type ListDeviceResponse = {
export type GetDeviceRequest = {
cluster?: string
namespace?: string
name?: string
}
export type CreateDeviceRequest = {
cluster?: string
namespace?: string
metadata?: KantIoApiCommonV1alpha1Objectmeta.ObjectMeta
spec?: DeviceSpec
}
export type UpdateDeviceRequest = {
cluster?: string
namespace?: string
name?: string
metadata?: KantIoApiCommonV1alpha1Objectmeta.ObjectMeta
spec?: DeviceSpec
}
export type DeleteDeviceRequest = {
cluster?: string
namespace?: string
name?: string
}
export type DeviceModel = {
apiVersion?: string
kind?: string
metadata?: KantIoApiCommonV1alpha1Objectmeta.ObjectMeta
spec?: DeviceModelSpec
}
export type DeviceModelSpec = {
properties?: DeviceProperty[]
protocol?: string
}
export type DeviceProperty = {
name?: string
description?: string
type?: PropertyType
}
export type PropertyType = {
int?: PropertyTypeInt64
string?: PropertyTypeString
double?: PropertyTypeDouble
float?: PropertyTypeFloat
boolean?: PropertyTypeBoolean
bytes?: PropertyTypeBytes
}
export type PropertyTypeInt64 = {
accessMode?: string
defaultValue?: number
minimum?: number
maximum?: number
unit?: string
}
export type PropertyTypeString = {
accessMode?: string
defaultValue?: string
}
export type PropertyTypeDouble = {
accessMode?: string
defaultValue?: number
minimum?: number
maximum?: number
unit?: string
}
export type PropertyTypeFloat = {
accessMode?: string
defaultValue?: number
minimum?: number
maximum?: number
unit?: string
}
export type PropertyTypeBoolean = {
accessMode?: string
defaultValue?: boolean
}
export type PropertyTypeBytes = {
accessMode?: string
}
export type Device = {
apiVersion?: string
kind?: string
metadata?: KantIoApiCommonV1alpha1Objectmeta.ObjectMeta
spec?: DeviceSpec
status?: DeviceStatus
}
export type DeviceSpec = {
deviceModelReference?: string
protocol?: ProtocolConfig
nodeSelector?: DeviceNodeSelector
propertyVisitors?: DevicePropertyVisitor[]
properties?: DeviceProperty[]
}
export type ProtocolConfig = {
opcua?: ProtocolConfigOpcUA
modbus?: ProtocolConfigModbus
bluetooth?: ProtocolConfigBluetooth
common?: ProtocolConfigCommon
customizedProtocol?: ProtocolConfigCustomized
}
export type ProtocolConfigOpcUA = {
url?: string
userName?: string
password?: string
securityPolicy?: string
securityMode?: string
certificate?: string
privateKey?: string
timeout?: number
}
export type ProtocolConfigModbus = {
slaveID?: number
}
export type ProtocolConfigBluetooth = {
macAddress?: string
}
export type ProtocolConfigCommon = {
com?: ProtocolConfigCOM
tcp?: ProtocolConfigTCP
commType?: string
reconnTimeout?: number
reconnRetryTimes?: number
collectTimeout?: number
collectRetryTimes?: number
collectType?: ProtocolConfigCommonCollectType
customizedValues?: CustomizedValue
}
export type ProtocolConfigCOM = {
serialPort?: string
baudRate?: number
dataBits?: number
parity?: string
stopBits?: number
}
export type ProtocolConfigTCP = {
ip?: string
port?: number
}
export type CustomizedValue = {
data?: {[key: string]: GoogleProtobufAny.Any}
}
export type ProtocolConfigCustomized = {
protocolName?: string
configData?: CustomizedValue
}
export type DevicePropertyVisitor = {
propertyName?: string
reportCycle?: number
collectCycle?: number
customizedValues?: CustomizedValue
opcua?: VisitorConfigOPCUA
modbus?: VisitorConfigModbus
bluetooth?: VisitorConfigBluetooth
customizedProtocol?: VisitorConfigCustomized
}
export type VisitorConfigOPCUA = {
nodeID?: string
browseName?: string
}
export type VisitorConfigModbus = {
register?: string
offset?: number
limit?: number
scale?: number
isSwap?: boolean
isRegisterSwap?: boolean
}
export type VisitorConfigBluetooth = {
characteristicUUID?: string
dataWrite?: {[key: string]: Uint8Array}
dataConverter?: BluetoothReadConverter
}
export type BluetoothReadConverter = {
startIndex?: number
endIndex?: number
shiftLeft?: number
shiftRight?: number
orderOfOperations?: BluetoothOperations[]
}
export type BluetoothOperations = {
operationType?: string
operationValue?: number
}
export type VisitorConfigCustomized = {
protocolName?: string
configData?: CustomizedValue
}
export type DeviceStatus = {
twins?: Twin[]
state?: string
}
export type Twin = {
propertyName?: string
desired?: TwinProperty
reported?: TwinProperty
}
export type TwinProperty = {
value?: string
metadata?: {[key: string]: string}
}
export type DeviceNodeSelector = {
nodeSelectorTerms?: DeviceNodeSelectorTerm[]
}
export type DeviceNodeSelectorTerm = {
matchExpressions?: DeviceNodeSelectorRequirement[]
}
export type DeviceNodeSelectorRequirement = {
key?: string
operator?: string
values?: string[]
}

@@ -9,5 +9,9 @@ /* eslint-disable */

import * as GoogleProtobufEmpty from "../../google/api/empty.pb"
import * as KpandaIoApiApiextensionsV1alpha1Custom_resource_definition from "../../kpanda.io/api/apiextensions/v1alpha1/custom_resource_definition.pb"
import * as KpandaIoApiAppsV1alpha1Deployment from "../../kpanda.io/api/apps/v1alpha1/deployment.pb"
import * as KpandaIoApiAppsV1alpha1Request from "../../kpanda.io/api/apps/v1alpha1/request.pb"
import * as KpandaIoApiCoreV1alpha1Configmap from "../../kpanda.io/api/core/v1alpha1/configmap.pb"
import * as KpandaIoApiCoreV1alpha1Node from "../../kpanda.io/api/core/v1alpha1/node.pb"
import * as KpandaIoApiCoreV1alpha1Secret from "../../kpanda.io/api/core/v1alpha1/secret.pb"
import * as KantIoApiCoreV1alpha1Apprequest from "./apprequest.pb"
import * as KantIoApiCoreV1alpha1Deployment from "./deployment.pb"

@@ -17,8 +21,5 @@ import * as KantIoApiCoreV1alpha1Device from "./device.pb"

import * as KantIoApiCoreV1alpha1Node from "./node.pb"
import * as KantIoApiCoreV1alpha1Rule from "./rule.pb"
import * as KantIoApiCoreV1alpha1Ruleendpoint from "./ruleendpoint.pb"
import * as KantIoApiCoreV1alpha1Workspaces from "./workspaces.pb"
export class Device {
static ListDevice(req: KantIoApiCoreV1alpha1Device.ListDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Device.ListDeviceResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.ListDeviceRequest, KantIoApiCoreV1alpha1Device.ListDeviceResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
}
export class Nodes {

@@ -28,2 +29,5 @@ static ListNode(req: KpandaIoApiCoreV1alpha1Node.ListNodesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.ListNodesResponse> {

}
static GetNode(req: KpandaIoApiCoreV1alpha1Node.GetNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.Node> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.GetNodeRequest, KpandaIoApiCoreV1alpha1Node.Node>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
}
static CordonNode(req: KantIoApiCoreV1alpha1Node.CordonNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.Node> {

@@ -40,20 +44,17 @@ return fm.fetchReq<KantIoApiCoreV1alpha1Node.CordonNodeRequest, KpandaIoApiCoreV1alpha1Node.Node>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["name"]}/cordon`, {...initReq, method: "PATCH"})

export class DeploymentApp {
static CreateDeploymentByJSON(req: KantIoApiCoreV1alpha1Deployment.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Deployment.DeploymentJSON> {
return fm.fetchReq<KantIoApiCoreV1alpha1Deployment.CreateDeploymentRequest, KantIoApiCoreV1alpha1Deployment.DeploymentJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/json`, {...initReq, method: "POST", body: JSON.stringify(req)})
static CreateDeployment(req: KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.Workload> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.Workload>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateDeploymentByJSON(req: KantIoApiCoreV1alpha1Deployment.UpdateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Deployment.DeploymentJSON> {
return fm.fetchReq<KantIoApiCoreV1alpha1Deployment.UpdateDeploymentRequest, KantIoApiCoreV1alpha1Deployment.DeploymentJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}/json`, {...initReq, method: "PUT", body: JSON.stringify(req)})
static UpdateDeployment(req: KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.Workload> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.Workload>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static ListDeployments(req: KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
static ListWorkloads(req: KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/workloads?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static ListClusterDeployments(req: KpandaIoApiAppsV1alpha1Deployment.ListClusterDeploymentsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.ListClusterDeploymentsRequest, KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/deployments?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
static ListClusterWorkloads(req: KpandaIoApiAppsV1alpha1Deployment.ListClusterDeploymentsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.ListClusterDeploymentsRequest, KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/workloads?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static GetDeployment(req: KpandaIoApiAppsV1alpha1Request.GetWorkloadRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.Deployment> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Request.GetWorkloadRequest, KpandaIoApiAppsV1alpha1Deployment.Deployment>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
static GetWorkload(req: KpandaIoApiAppsV1alpha1Request.GetWorkloadRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.Deployment> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Request.GetWorkloadRequest, KpandaIoApiAppsV1alpha1Deployment.Deployment>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/workloads/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static PatchDeployment(req: KpandaIoApiAppsV1alpha1Deployment.PatchDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.PatchDeploymentResponse> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.PatchDeploymentRequest, KpandaIoApiAppsV1alpha1Deployment.PatchDeploymentResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
}
static DeleteDeployment(req: KpandaIoApiAppsV1alpha1Deployment.DeleteDeploymentRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {

@@ -80,4 +81,4 @@ return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.DeleteDeploymentRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "DELETE"})

}
static GetWorkloadJSON(req: KpandaIoApiAppsV1alpha1Request.GetWorkloadJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Request.WorkloadJSON> {
return fm.fetchReq<KpandaIoApiAppsV1alpha1Request.GetWorkloadJSONRequest, KpandaIoApiAppsV1alpha1Request.WorkloadJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/${req["kind"]}/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "kind", "name"])}`, {...initReq, method: "GET"})
static GetDeployment(req: KantIoApiCoreV1alpha1Apprequest.GetWorkloadJSONRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Deployment.Deployment> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.GetWorkloadJSONRequest, KantIoApiCoreV1alpha1Deployment.Deployment>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployment/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}

@@ -109,2 +110,93 @@ }

}
}
export class ConfigMaps {
static ListClusterConfigMaps(req: KpandaIoApiCoreV1alpha1Configmap.ListClusterConfigMapsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Configmap.ListClusterConfigMapsResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Configmap.ListClusterConfigMapsRequest, KpandaIoApiCoreV1alpha1Configmap.ListClusterConfigMapsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/configmaps?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListConfigMaps(req: KpandaIoApiCoreV1alpha1Configmap.ListConfigMapsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Configmap.ListConfigMapsResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Configmap.ListConfigMapsRequest, KpandaIoApiCoreV1alpha1Configmap.ListConfigMapsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/configmaps?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static GetConfigMap(req: KpandaIoApiCoreV1alpha1Configmap.GetConfigMapRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Configmap.ConfigMap> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Configmap.GetConfigMapRequest, KpandaIoApiCoreV1alpha1Configmap.ConfigMap>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static CreateConfigMap(req: KantIoApiCoreV1alpha1Apprequest.CreateConfigMapRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Configmap.CreateConfigMapResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.CreateConfigMapRequest, KpandaIoApiCoreV1alpha1Configmap.CreateConfigMapResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/configmaps`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateConfigMap(req: KantIoApiCoreV1alpha1Apprequest.UpdateConfigMapRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Configmap.UpdateConfigMapResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.UpdateConfigMapRequest, KpandaIoApiCoreV1alpha1Configmap.UpdateConfigMapResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static DeleteConfigMap(req: KpandaIoApiCoreV1alpha1Configmap.DeleteConfigMapRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Configmap.DeleteConfigMapRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}`, {...initReq, method: "DELETE"})
}
}
export class Secrets {
static UpdateSecret(req: KantIoApiCoreV1alpha1Apprequest.UpdateSecretRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Secret.UpdateSecretResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.UpdateSecretRequest, KpandaIoApiCoreV1alpha1Secret.UpdateSecretResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static DeleteSecret(req: KpandaIoApiCoreV1alpha1Secret.DeleteSecretRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Secret.DeleteSecretRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}`, {...initReq, method: "DELETE"})
}
static GetSecret(req: KpandaIoApiCoreV1alpha1Secret.GetSecretRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Secret.Secret> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Secret.GetSecretRequest, KpandaIoApiCoreV1alpha1Secret.Secret>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static ListClusterSecrets(req: KpandaIoApiCoreV1alpha1Secret.ListClusterSecretsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Secret.ListClusterSecretsResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Secret.ListClusterSecretsRequest, KpandaIoApiCoreV1alpha1Secret.ListClusterSecretsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/secrets?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListSecrets(req: KpandaIoApiCoreV1alpha1Secret.ListSecretsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Secret.ListSecretsResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Secret.ListSecretsRequest, KpandaIoApiCoreV1alpha1Secret.ListSecretsResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static CreateSecret(req: KantIoApiCoreV1alpha1Apprequest.CreateSecretRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Secret.CreateSecretResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.CreateSecretRequest, KpandaIoApiCoreV1alpha1Secret.CreateSecretResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
}
export class RuleEndpoints {
static CreateMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.CreateRuleEndpointRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Ruleendpoint.RuleEndpoint> {
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.CreateRuleEndpointRequest, KantIoApiCoreV1alpha1Ruleendpoint.RuleEndpoint>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ruleendpoints`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static ListAllMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/ruleendpoints?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ruleendpoints?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static DeleteMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.DeleteRuleEndpointRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.DeleteRuleEndpointRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ruleendpoints/${req["name"]}`, {...initReq, method: "DELETE"})
}
}
export class Rules {
static CreateMsgRules(req: KantIoApiCoreV1alpha1Rule.CreateRuleRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Rule.Rule> {
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.CreateRuleRequest, KantIoApiCoreV1alpha1Rule.Rule>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static GetMsgRules(req: KantIoApiCoreV1alpha1Rule.GetRuleRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Rule.Rule> {
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.GetRuleRequest, KantIoApiCoreV1alpha1Rule.Rule>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static ListAllMsgRules(req: KantIoApiCoreV1alpha1Rule.ListRuleRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.ListRuleRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/rules?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListMsgRules(req: KantIoApiCoreV1alpha1Rule.ListRuleRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.ListRuleRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static DeleteMsgRules(req: KantIoApiCoreV1alpha1Rule.DeleteRuleRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.DeleteRuleRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules/${req["name"]}`, {...initReq, method: "DELETE"})
}
}
export class Devices {
static ListClusterDevices(req: KantIoApiCoreV1alpha1Device.ListClusterDeviceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListClusterCustomResourcesResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.ListClusterDeviceRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListClusterCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/devices?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListDevices(req: KantIoApiCoreV1alpha1Device.ListDeviceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.ListDeviceRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static GetDevice(req: KantIoApiCoreV1alpha1Device.GetDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Device.Device> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.GetDeviceRequest, KantIoApiCoreV1alpha1Device.Device>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static CreateDevice(req: KantIoApiCoreV1alpha1Device.CreateDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Device.Device> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.CreateDeviceRequest, KantIoApiCoreV1alpha1Device.Device>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateDevice(req: KantIoApiCoreV1alpha1Device.UpdateDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Device.Device> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.UpdateDeviceRequest, KantIoApiCoreV1alpha1Device.Device>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static DeleteDevice(req: KantIoApiCoreV1alpha1Device.DeleteDeviceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.DeleteDeviceRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/devices/${req["name"]}`, {...initReq, method: "DELETE"})
}
}
{
"name":"@daocloud-proto/kant",
"version":"0.2.0-dev-62cec5ee",
"version":"0.2.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -9,7 +9,17 @@ /* eslint-disable */

import * as GoogleProtobufEmpty from "../../google/api/empty.pb"
import * as KantIoApiSystemV1alpha1Version from "./version.pb"
export class Versions {
static Get(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiSystemV1alpha1Version.Version> {
return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiSystemV1alpha1Version.Version>(`/apis/system.kant.io/v1alpha1/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
import * as KantIoApiSystemV1alpha1Types from "./types.pb"
export class Constants {
static Get(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiSystemV1alpha1Types.ConstsResponse> {
return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiSystemV1alpha1Types.ConstsResponse>(`/apis/system.kant.io/v1alpha1/consts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
}
}
export class AddonVersions {
static KubeEdgeVersions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiSystemV1alpha1Types.KubeEdgeVersionsResponse> {
return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiSystemV1alpha1Types.KubeEdgeVersionsResponse>(`/apis/system.kant.io/v1alpha1/kubeedge-versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
}
}
export class User {
static Permissions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiSystemV1alpha1Types.UserPermissionsResponse> {
return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiSystemV1alpha1Types.UserPermissionsResponse>(`/apis/system.kant.io/v1alpha1/user-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc