Skip to content

Commit 2990d76

Browse files
authored
list envs endpoint (#245)
1 parent 8496ba7 commit 2990d76

9 files changed

+3975
-3402
lines changed

Diff for: generated/go/porter/v1/cluster_control_plane.pb.go

+3,566-3,400
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: generated/go/porter/v1/environment.pb.go

+186
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: generated/go/porter/v1/porterv1connect/cluster_control_plane.connect.go

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: generated/js/src/porter/v1/cluster_control_plane_pb.d.ts

+65-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import type { ContractComplianceCheckGroup, EnumComplianceProfile, EnumComplianc
1515
import type { AppImage, Build, Deletions, EnumAppRevisionStatus, EnvGroup, EnvGroupVariables, EnvVariableDeletions, JobRun, PorterApp } from "./porter_app_pb.js";
1616
import type { DeploymentTarget, DeploymentTargetIdentifier, DeploymentTargetMeta } from "./deployment_target_pb.js";
1717
import type { Addon, PrerequisiteAddon } from "./addons_pb.js";
18+
import type { Environment } from "./environment_pb.js";
1819
import type { AppEventType } from "./agent_app_event_types_pb.js";
1920
import type { Alert } from "./prometheus_alerts_pb.js";
2021
import type { EnumEnvGroupProviderType, ExternalEnvGroupProviderEnabledStatus, InfisicalEnv } from "./env_group_pb.js";
@@ -3160,10 +3161,18 @@ export declare class AppTemplateRequest extends Message<AppTemplateRequest> {
31603161
/**
31613162
* app_id is the id of the PorterApp to return the template for
31623163
*
3163-
* @generated from field: int64 app_id = 2;
3164+
* @generated from field: int64 app_id = 2 [deprecated = true];
3165+
* @deprecated
31643166
*/
31653167
appId: bigint;
31663168

3169+
/**
3170+
* name is the name of the template, usually corresponding to an app name
3171+
*
3172+
* @generated from field: string name = 3;
3173+
*/
3174+
name: string;
3175+
31673176
constructor(data?: PartialMessage<AppTemplateRequest>);
31683177

31693178
static readonly runtime: typeof proto3;
@@ -3219,6 +3228,61 @@ export declare class AppTemplateResponse extends Message<AppTemplateResponse> {
32193228
static equals(a: AppTemplateResponse | PlainMessage<AppTemplateResponse> | undefined, b: AppTemplateResponse | PlainMessage<AppTemplateResponse> | undefined): boolean;
32203229
}
32213230

3231+
/**
3232+
* @generated from message porter.v1.ListTemplatesRequest
3233+
*/
3234+
export declare class ListTemplatesRequest extends Message<ListTemplatesRequest> {
3235+
/**
3236+
* @generated from field: int64 project_id = 1;
3237+
*/
3238+
projectId: bigint;
3239+
3240+
/**
3241+
* @generated from field: int64 cluster_id = 2;
3242+
*/
3243+
clusterId: bigint;
3244+
3245+
constructor(data?: PartialMessage<ListTemplatesRequest>);
3246+
3247+
static readonly runtime: typeof proto3;
3248+
static readonly typeName = "porter.v1.ListTemplatesRequest";
3249+
static readonly fields: FieldList;
3250+
3251+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTemplatesRequest;
3252+
3253+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTemplatesRequest;
3254+
3255+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTemplatesRequest;
3256+
3257+
static equals(a: ListTemplatesRequest | PlainMessage<ListTemplatesRequest> | undefined, b: ListTemplatesRequest | PlainMessage<ListTemplatesRequest> | undefined): boolean;
3258+
}
3259+
3260+
/**
3261+
* @generated from message porter.v1.ListTemplatesResponse
3262+
*/
3263+
export declare class ListTemplatesResponse extends Message<ListTemplatesResponse> {
3264+
/**
3265+
* environment_templates is the list of environment templates for the given cluster
3266+
*
3267+
* @generated from field: repeated porter.v1.Environment environment_templates = 1;
3268+
*/
3269+
environmentTemplates: Environment[];
3270+
3271+
constructor(data?: PartialMessage<ListTemplatesResponse>);
3272+
3273+
static readonly runtime: typeof proto3;
3274+
static readonly typeName = "porter.v1.ListTemplatesResponse";
3275+
static readonly fields: FieldList;
3276+
3277+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTemplatesResponse;
3278+
3279+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTemplatesResponse;
3280+
3281+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTemplatesResponse;
3282+
3283+
static equals(a: ListTemplatesResponse | PlainMessage<ListTemplatesResponse> | undefined, b: ListTemplatesResponse | PlainMessage<ListTemplatesResponse> | undefined): boolean;
3284+
}
3285+
32223286
/**
32233287
* AddonTemplatesPayload is an object containg a list of addons to be included alongside an app template
32243288
* these addons will be applied or updated whenever an app is deployed to a new preview deployment target

0 commit comments

Comments
 (0)