Skip to content

Commit

Permalink
Add method and sub-commands to archive policy using aperturectl
Browse files Browse the repository at this point in the history
  • Loading branch information
hdkshingala committed Oct 18, 2023
1 parent 3b5af7a commit 43d9abe
Show file tree
Hide file tree
Showing 23 changed files with 383 additions and 96 deletions.
4 changes: 4 additions & 0 deletions api/aperture/cloud/v1/blueprints.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ service BlueprintsService {
rpc Delete(DeleteRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {delete: "/fluxninja/v1/blueprints/{policy_name}"};
}

rpc Archive(DeleteRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {delete: "/fluxninja/v1/blueprints/{policy_name}/archive"};
}
}

message Blueprint {
Expand Down
1 change: 1 addition & 0 deletions api/aperture/cloud/v1/policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ import "google/protobuf/empty.proto";
service PolicyService {
rpc UpsertPolicy(aperture.policy.language.v1.UpsertPolicyRequest) returns (aperture.policy.language.v1.UpsertPolicyResponse);
rpc DeletePolicy(aperture.policy.language.v1.DeletePolicyRequest) returns (google.protobuf.Empty);
rpc ArchivePolicy(aperture.policy.language.v1.DeletePolicyRequest) returns (google.protobuf.Empty);
}
4 changes: 2 additions & 2 deletions api/buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ deps:
- remote: buf.build
owner: envoyproxy
repository: envoy
commit: 8cd0d3102dee478fa0c21b0f063912a8
digest: shake256:4411b431a796948dce1df4b80cb3524c74ef13cc92363ff5cbae1a982e07885baddbc33d9fbeac882918d537425d81282fb5dfe85f0e7e09b93708dbe25f2e57
commit: 8b100ead80f2408c9b7fc3549b5aab9e
digest: shake256:53ade22c8b92a6a4fa38308825ba88dae3fa81bc8b6e6b44bf9ad79a70751e29a71e2eb355edd7edd94780ab1edafdfb084af434c52abd01df9414b808c26c3b
- remote: buf.build
owner: envoyproxy
repository: protoc-gen-validate
Expand Down
57 changes: 33 additions & 24 deletions api/gen/proto/go/aperture/cloud/v1/blueprints.pb.go

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

103 changes: 103 additions & 0 deletions api/gen/proto/go/aperture/cloud/v1/blueprints.pb.gw.go

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

45 changes: 41 additions & 4 deletions api/gen/proto/go/aperture/cloud/v1/blueprints_grpc.pb.go

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

Loading

0 comments on commit 43d9abe

Please sign in to comment.