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.3.0-alpha1 to 0.3.0-alpha2

batch/v1alpha1/edgeapplicationrequest.pb.ts

16

batch/v1alpha1/edgeapplication.pb.ts

@@ -7,3 +7,2 @@ /* eslint-disable */

import * as KantIoApiCommonV1alpha1Objectmeta from "../../common/v1alpha1/objectmeta.pb"
import * as KantIoApiCoreV1alpha1Deployment from "../../core/v1alpha1/deployment.pb"

@@ -31,10 +30,6 @@

export type CreateEdgeApplicationRequest = {
cluster?: string
namespace?: string
edgeApplication?: EdgeApplication
}
export type EdgeApplication = {
metadata?: KantIoApiCommonV1alpha1Objectmeta.ObjectMeta
kind?: string
apiVersion?: string
metadata?: KantIoApiCoreV1alpha1Deployment.ObjectMeta
spec?: EdgeApplicationSpec

@@ -79,3 +74,6 @@ status?: EdgeApplicationStatus

export type Manifest = {
deployment?: KantIoApiCoreV1alpha1Deployment.Deployment
kind?: string
apiVersion?: string
metadata?: KantIoApiCoreV1alpha1Deployment.ObjectMeta
spec?: KantIoApiCoreV1alpha1Deployment.DeploymentSpec
}

@@ -82,0 +80,0 @@

@@ -10,13 +10,28 @@ /* eslint-disable */

import * as GoogleApiHttpbody from "../../google/api/httpbody.pb"
import * as KpandaIoApiApiextensionsV1alpha1Custom_resource_definition from "../../kpanda.io/api/apiextensions/v1alpha1/custom_resource_definition.pb"
import * as KantIoApiBatchV1alpha1Batch from "./batch.pb"
import * as KantIoApiBatchV1alpha1Edgeapplication from "./edgeapplication.pb"
import * as KantIoApiBatchV1alpha1Edgeapplicationrequest from "./edgeapplicationrequest.pb"
export class EdgeApp {
static CreateEdgeApplication(req: KantIoApiBatchV1alpha1Edgeapplication.CreateEdgeApplicationRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Edgeapplication.CreateEdgeApplicationRequest> {
return fm.fetchReq<KantIoApiBatchV1alpha1Edgeapplication.CreateEdgeApplicationRequest, KantIoApiBatchV1alpha1Edgeapplication.CreateEdgeApplicationRequest>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/edgeapplications`, {...initReq, method: "POST", body: JSON.stringify(req)})
static CreateEdgeApplication(req: KantIoApiBatchV1alpha1Edgeapplicationrequest.CreateEdgeApplicationRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Edgeapplication.EdgeApplication> {
return fm.fetchReq<KantIoApiBatchV1alpha1Edgeapplicationrequest.CreateEdgeApplicationRequest, KantIoApiBatchV1alpha1Edgeapplication.EdgeApplication>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/edgeapplications`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateEdgeApplication(req: KantIoApiBatchV1alpha1Edgeapplicationrequest.UpdateEdgeApplicationRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Edgeapplication.EdgeApplication> {
return fm.fetchReq<KantIoApiBatchV1alpha1Edgeapplicationrequest.UpdateEdgeApplicationRequest, KantIoApiBatchV1alpha1Edgeapplication.EdgeApplication>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/edgeapplications/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static GetEdgeApplication(req: KantIoApiBatchV1alpha1Edgeapplicationrequest.GetEdgeApplicationRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Edgeapplication.EdgeApplication> {
return fm.fetchReq<KantIoApiBatchV1alpha1Edgeapplicationrequest.GetEdgeApplicationRequest, KantIoApiBatchV1alpha1Edgeapplication.EdgeApplication>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/edgeapplications/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static ListEdgeApplications(req: KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsResponse> {
return fm.fetchReq<KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsRequest, KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsResponse>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/edgeapplications?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static ListClusterEdgeApplications(req: KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsResponse> {
return fm.fetchReq<KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsRequest, KantIoApiBatchV1alpha1Edgeapplicationrequest.ListEdgeApplicationsResponse>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/edgeapplications?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static DeleteEdgeApplication(req: KantIoApiBatchV1alpha1Edgeapplicationrequest.DeleteEdgeApplicationRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiBatchV1alpha1Edgeapplicationrequest.DeleteEdgeApplicationRequest, GoogleProtobufEmpty.Empty>(`/apis/batch.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/edgeapplications/${req["name"]}`, {...initReq, method: "DELETE"})
}
}
export class BatchNodes {
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/edgeunits/${req["edgeunit"]}/batch-nodes?${fm.renderURLSearchParams(req, ["edgeunit"])}`, {...initReq, method: "GET"})
static List(req: KantIoApiBatchV1alpha1Batch.ListBatchNodeRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Batch.ListBatchNodeResponse> {
return fm.fetchReq<KantIoApiBatchV1alpha1Batch.ListBatchNodeRequest, KantIoApiBatchV1alpha1Batch.ListBatchNodeResponse>(`/apis/batch.kant.io/v1alpha1/edgeunits/${req["edgeunit"]}/batch-nodes?${fm.renderURLSearchParams(req, ["edgeunit"])}`, {...initReq, method: "GET"})
}

@@ -23,0 +38,0 @@ static Get(req: KantIoApiBatchV1alpha1Batch.GetBatchNodeRequest, initReq?: fm.InitReq): Promise<KantIoApiBatchV1alpha1Batch.BatchNode> {

@@ -8,2 +8,3 @@ /* eslint-disable */

import * as KantIoApiCommonV1alpha1Objectmeta from "../../common/v1alpha1/objectmeta.pb"
import * as KantIoApiCommonV1alpha1Page from "../../common/v1alpha1/page.pb"
import * as GoogleProtobufAny from "../../google/protobuf/any.pb"

@@ -21,2 +22,3 @@

name?: string
fuzzyName?: string
}

@@ -32,2 +34,7 @@

export type ListDeviceResponse = {
items?: Device[]
pagination?: KantIoApiCommonV1alpha1Page.Pagination
}
export type GetDeviceRequest = {

@@ -34,0 +41,0 @@ cluster?: string

@@ -9,3 +9,2 @@ /* 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"

@@ -22,2 +21,3 @@ import * as KpandaIoApiAppsV1alpha1Request from "../../kpanda.io/api/apps/v1alpha1/request.pb"

import * as KantIoApiCoreV1alpha1Node from "./node.pb"
import * as KantIoApiCoreV1alpha1Nodegroup from "./nodegroup.pb"
import * as KantIoApiCoreV1alpha1Rule from "./rule.pb"

@@ -166,7 +166,7 @@ import * as KantIoApiCoreV1alpha1Ruleendpoint from "./ruleendpoint.pb"

}
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 ListAllMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointResponse>(`/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 ListMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ruleendpoints?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}

@@ -184,7 +184,7 @@ static DeleteMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.DeleteRuleEndpointRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {

}
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 ListAllMsgRules(req: KantIoApiCoreV1alpha1Rule.ListRuleRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Rule.ListRuleResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.ListRuleRequest, KantIoApiCoreV1alpha1Rule.ListRuleResponse>(`/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 ListMsgRules(req: KantIoApiCoreV1alpha1Rule.ListRuleRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Rule.ListRuleResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.ListRuleRequest, KantIoApiCoreV1alpha1Rule.ListRuleResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}

@@ -196,7 +196,7 @@ static DeleteMsgRules(req: KantIoApiCoreV1alpha1Rule.DeleteRuleRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {

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 ListClusterDevices(req: KantIoApiCoreV1alpha1Device.ListClusterDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Device.ListDeviceResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Device.ListClusterDeviceRequest, KantIoApiCoreV1alpha1Device.ListDeviceResponse>(`/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 ListDevices(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"})
}

@@ -215,2 +215,19 @@ static GetDevice(req: KantIoApiCoreV1alpha1Device.GetDeviceRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Device.Device> {

}
}
export class NodeGroups {
static CreateNodeGroup(req: KantIoApiCoreV1alpha1Nodegroup.CreateNodeGroupRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Nodegroup.NodeGroup> {
return fm.fetchReq<KantIoApiCoreV1alpha1Nodegroup.CreateNodeGroupRequest, KantIoApiCoreV1alpha1Nodegroup.NodeGroup>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodegroups`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static GetNodeGroup(req: KantIoApiCoreV1alpha1Nodegroup.GetNodeGroupRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Nodegroup.NodeGroup> {
return fm.fetchReq<KantIoApiCoreV1alpha1Nodegroup.GetNodeGroupRequest, KantIoApiCoreV1alpha1Nodegroup.NodeGroup>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodegroups/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
}
static ListNodeGroups(req: KantIoApiCoreV1alpha1Nodegroup.ListNodeGroupRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Nodegroup.ListNodeGroupResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Nodegroup.ListNodeGroupRequest, KantIoApiCoreV1alpha1Nodegroup.ListNodeGroupResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodegroups?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static UpdateNodeGroup(req: KantIoApiCoreV1alpha1Nodegroup.UpdateNodeGroupRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Nodegroup.NodeGroup> {
return fm.fetchReq<KantIoApiCoreV1alpha1Nodegroup.UpdateNodeGroupRequest, KantIoApiCoreV1alpha1Nodegroup.NodeGroup>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodegroups/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static DeleteNodeGroup(req: KantIoApiCoreV1alpha1Nodegroup.GetNodeGroupRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KantIoApiCoreV1alpha1Nodegroup.GetNodeGroupRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodegroups/${req["name"]}`, {...initReq, method: "DELETE"})
}
}
{
"name":"@daocloud-proto/kant",
"version":"0.3.0-alpha1",
"version":"0.3.0-alpha2",
"description": "",

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

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