feat: expose service registry target helper
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@serve.zone/api",
|
"name": "@serve.zone/api",
|
||||||
"version": "5.3.3",
|
"version": "5.3.4",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "Type-safe API client for Cloudly and the serve.zone control plane.",
|
"description": "Type-safe API client for Cloudly and the serve.zone control plane.",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -260,6 +260,9 @@ export class CloudlyApiClient {
|
|||||||
createService: async (optionsArg: Parameters<typeof Service.createService>[1]) => {
|
createService: async (optionsArg: Parameters<typeof Service.createService>[1]) => {
|
||||||
return Service.createService(this, optionsArg);
|
return Service.createService(this, optionsArg);
|
||||||
},
|
},
|
||||||
|
getRegistryTarget: async (serviceId: string, tag = 'latest') => {
|
||||||
|
return Service.getServiceRegistryTarget(this, serviceId, tag);
|
||||||
|
},
|
||||||
updateService: async (serviceId: string, serviceData: plugins.servezoneInterfaces.data.IService['data']): Promise<{ service: plugins.servezoneInterfaces.data.IService }> => {
|
updateService: async (serviceId: string, serviceData: plugins.servezoneInterfaces.data.IService['data']): Promise<{ service: plugins.servezoneInterfaces.data.IService }> => {
|
||||||
const op = 'updateService';
|
const op = 'updateService';
|
||||||
const payload = { identity: this.identity, serviceId, serviceData } as any;
|
const payload = { identity: this.identity, serviceId, serviceData } as any;
|
||||||
|
|||||||
Reference in New Issue
Block a user