@daocloud-proto/kpanda 0.46.1-dev-afcaf1bc → 0.47.0-dev-3a97ece9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,4 +97,24 @@ export type DetectKangarooRequest = {
97
97
 
98
98
  export type DetectKangarooResponse = {
99
99
  enabled?: boolean
100
+ }
101
+
102
+ export type GetImageInfoRequest = {
103
+ name?: string
104
+ cluster?: string
105
+ namespace?: string
106
+ }
107
+
108
+ export type ImageInfo = {
109
+ registry?: string
110
+ project?: string
111
+ repository?: string
112
+ tag?: string
113
+ public?: boolean
114
+ global?: boolean
115
+ }
116
+
117
+ export type GetImageInfoResponse = {
118
+ info?: ImageInfo
119
+ origin?: string
100
120
  }
@@ -913,6 +913,9 @@ export class Image {
913
913
  static ListArtifacts(req: KpandaIoApiKangarooV1alpha1Image.ListArtifactsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiKangarooV1alpha1Image.ListArtifactsResponse> {
914
914
  return fm.fetchReq<KpandaIoApiKangarooV1alpha1Image.ListArtifactsRequest, KpandaIoApiKangarooV1alpha1Image.ListArtifactsResponse>(`/apis/kpanda.io/v1alpha1/registries/${req["registry"]}/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["registry", "repository"])}`, {...initReq, method: "GET"})
915
915
  }
916
+ static GetImageInfo(req: KpandaIoApiKangarooV1alpha1Image.GetImageInfoRequest, initReq?: fm.InitReq): Promise<KpandaIoApiKangarooV1alpha1Image.GetImageInfoResponse> {
917
+ return fm.fetchReq<KpandaIoApiKangarooV1alpha1Image.GetImageInfoRequest, KpandaIoApiKangarooV1alpha1Image.GetImageInfoResponse>(`/apis/kpanda.io/v1alpha1/registries/imageinfo?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
918
+ }
916
919
  }
917
920
  export class Workspace {
918
921
  static ListWorkspaces(req: KpandaIoApiGhippoV1alpha1Workspace.ListWorkspacesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.ListWorkspacesResponse> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.46.1-dev-afcaf1bc",
3
+ "version":"v0.47.0-dev-3a97ece9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {