Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 130 additions & 48 deletions generated/go/porter/v1/contract.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions generated/js/src/porter/v1/contract_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,26 @@ import type { Cluster } from "./cluster_pb.js";
*/
export declare class Contract extends Message<Contract> {
/**
* cluster is a cluster object
*
* @generated from field: porter.v1.Cluster cluster = 1;
*/
cluster?: Cluster;

/**
* user is the user that triggered a contract create/update
*
* @generated from field: porter.v1.User user = 2;
*/
user?: User;

/**
* compliance_profile is the compliance profile that the cluster should be configured with
*
* @generated from field: porter.v1.ComplianceProfile compliance_profile = 3;
*/
complianceProfile?: ComplianceProfile;

constructor(data?: PartialMessage<Contract>);

static readonly runtime: typeof proto3;
Expand All @@ -38,6 +49,34 @@ export declare class Contract extends Message<Contract> {
static equals(a: Contract | PlainMessage<Contract> | undefined, b: Contract | PlainMessage<Contract> | undefined): boolean;
}

/**
* ComplianceProfile
*
* @generated from message porter.v1.ComplianceProfile
*/
export declare class ComplianceProfile extends Message<ComplianceProfile> {
/**
* soc2_type1 is a boolean that represents whether the cluster should be configured with SOC2 Type 1
*
* @generated from field: bool soc2_type1 = 1;
*/
soc2Type1: boolean;

constructor(data?: PartialMessage<ComplianceProfile>);

static readonly runtime: typeof proto3;
static readonly typeName = "porter.v1.ComplianceProfile";
static readonly fields: FieldList;

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ComplianceProfile;

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ComplianceProfile;

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ComplianceProfile;

static equals(a: ComplianceProfile | PlainMessage<ComplianceProfile> | undefined, b: ComplianceProfile | PlainMessage<ComplianceProfile> | undefined): boolean;
}

/**
* ContractRevision represents a contract revision which should be acted upon, depending on the stream
* that is was passed through. This approach goes against microservice architectures, by expecting every consumer
Expand Down
13 changes: 13 additions & 0 deletions generated/js/src/porter/v1/contract_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ export const Contract = proto3.makeMessageType(
() => [
{ no: 1, name: "cluster", kind: "message", T: Cluster },
{ no: 2, name: "user", kind: "message", T: User },
{ no: 3, name: "compliance_profile", kind: "message", T: ComplianceProfile },
],
);

/**
* ComplianceProfile
*
* @generated from message porter.v1.ComplianceProfile
*/
export const ComplianceProfile = proto3.makeMessageType(
"porter.v1.ComplianceProfile",
() => [
{ no: 1, name: "soc2_type1", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
],
);

Expand Down
10 changes: 10 additions & 0 deletions porter/v1/contract.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ import "porter/v1/cluster.proto";

// Contract represents the API contract for Porter, commonly known as "porter.yaml"
message Contract {
// cluster is a cluster object
Cluster cluster = 1;
// user is the user that triggered a contract create/update
User user = 2;
// compliance_profile is the compliance profile that the cluster should be configured with
ComplianceProfile compliance_profile = 3;
}

// ComplianceProfile
message ComplianceProfile {
// soc2_type1 is a boolean that represents whether the cluster should be configured with SOC2 Type 1
bool soc2_type1 = 1;
}

// ContractRevision represents a contract revision which should be acted upon, depending on the stream
Expand Down