Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@daocloud-proto/kant

Package Overview
Dependencies
Maintainers
3
Versions
73
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.1.0-alpha6 to 0.1.0-alpha7

4

core/v1alpha1/apprequest.pb.ts

@@ -11,7 +11,7 @@ /* eslint-disable */

import * as KantIoApiCoreV1alpha1Secret from "./secret.pb"
export type WorkloadJSON = {
export type Workload = {
deployment?: KantIoApiCoreV1alpha1Deployment.Deployment
}
export type GetWorkloadRequest = {
export type GetWorkloadJSONRequest = {
name?: string

@@ -18,0 +18,0 @@ cluster?: string

@@ -41,20 +41,17 @@ /* eslint-disable */

export class DeploymentApp {
static CreateDeploymentByJSON(req: KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.WorkloadJSON> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.WorkloadJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments`, {...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: KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.WorkloadJSON> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.WorkloadJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...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"]}/namespaces/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: KantIoApiCoreV1alpha1Apprequest.GetWorkloadRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Deployment.Deployment> {
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.GetWorkloadRequest, KantIoApiCoreV1alpha1Deployment.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> {

@@ -81,4 +78,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"})
}

@@ -85,0 +82,0 @@ }

{
"name":"@daocloud-proto/kant",
"version":"0.1.0-alpha6",
"version":"0.1.0-alpha7",
"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