Socket
Socket
Sign inDemoInstall

@daocloud-proto/kant

Package Overview
Dependencies
0
Maintainers
3
Versions
56
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.1 to 0.6.0-alpha1

13

core/v1alpha1/edgeunit.pb.ts

@@ -112,2 +112,15 @@ /* eslint-disable */

pagination?: KantIoApiCommonV1alpha1Page.Pagination
}
export type GetKubeEdgeAddonRequest = {
name?: string
}
export type GetKubeEdgeAddonResponseAddonInfo = {
exists?: boolean
version?: string
}
export type GetKubeEdgeAddonResponse = {
addonInfo?: {[key: string]: GetKubeEdgeAddonResponseAddonInfo}
}

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

import * as KpandaIoApiCoreV1alpha1Secret from "../../kpanda.io/api/core/v1alpha1/secret.pb"
import * as KpandaIoApiCoreV1alpha1Service from "../../kpanda.io/api/core/v1alpha1/service.pb"
import * as KantIoApiCoreV1alpha1Apprequest from "./apprequest.pb"

@@ -116,2 +117,5 @@ import * as KantIoApiCoreV1alpha1Customresource from "./customresource.pb"

}
static GetPod(req: KpandaIoApiCoreV1alpha1Pod.GetPodRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Pod.Pod> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Pod.GetPodRequest, KpandaIoApiCoreV1alpha1Pod.Pod>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pods/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static DeletePod(req: KpandaIoApiCoreV1alpha1Pod.DeletePodRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {

@@ -150,2 +154,5 @@ return fm.fetchReq<KpandaIoApiCoreV1alpha1Pod.DeletePodRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pods/${req["name"]}`, {...initReq, method: "DELETE"})

}
static GetKubeEdgeAddons(req: KantIoApiCoreV1alpha1Edgeunit.GetKubeEdgeAddonRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Edgeunit.GetKubeEdgeAddonResponse> {
return fm.fetchReq<KantIoApiCoreV1alpha1Edgeunit.GetKubeEdgeAddonRequest, KantIoApiCoreV1alpha1Edgeunit.GetKubeEdgeAddonResponse>(`/apis/core.kant.io/v1alpha1/edgeunits/${req["name"]}/addons?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
}
}

@@ -273,2 +280,28 @@ export class ConfigMaps {

}
}
export class Services {
static ListClusterServices(req: KpandaIoApiCoreV1alpha1Service.ListClusterServicesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Service.ListClusterServicesResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.ListClusterServicesRequest, KpandaIoApiCoreV1alpha1Service.ListClusterServicesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/services?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
}
static ListServices(req: KpandaIoApiCoreV1alpha1Service.ListServicesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Service.ListServicesResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.ListServicesRequest, KpandaIoApiCoreV1alpha1Service.ListServicesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
}
static GetService(req: KpandaIoApiCoreV1alpha1Service.GetServiceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Service.Service> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.GetServiceRequest, KpandaIoApiCoreV1alpha1Service.Service>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static GetServiceJSON(req: KpandaIoApiCoreV1alpha1Service.GetServiceJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Service.GetServiceJSONResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.GetServiceJSONRequest, KpandaIoApiCoreV1alpha1Service.GetServiceJSONResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
}
static CreateService(req: KpandaIoApiCoreV1alpha1Service.CreateServiceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Service.CreateServiceResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.CreateServiceRequest, KpandaIoApiCoreV1alpha1Service.CreateServiceResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req)})
}
static UpdateService(req: KpandaIoApiCoreV1alpha1Service.UpdateServiceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Service.UpdateServiceResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.UpdateServiceRequest, KpandaIoApiCoreV1alpha1Service.UpdateServiceResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
}
static PatchService(req: KpandaIoApiCoreV1alpha1Service.PatchServiceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Service.PatchServiceResponse> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.PatchServiceRequest, KpandaIoApiCoreV1alpha1Service.PatchServiceResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
}
static DeleteService(req: KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
return fm.fetchReq<KpandaIoApiCoreV1alpha1Service.DeleteServiceRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services/${req["name"]}`, {...initReq, method: "DELETE"})
}
}

2

package.json
{
"name":"@daocloud-proto/kant",
"version":"0.5.1",
"version":"0.6.0-alpha1",
"description": "",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc