github.com/castai/kvisor@v1.7.1-0.20240516114728-b3572a2607b5/api/v1/kube/kube_api.proto (about) 1 syntax = "proto3"; 2 3 package kube.v1; 4 5 option go_package = "github.com/castai/kvisor/api/kube/v1"; 6 7 service KubeAPI { 8 rpc GetClusterInfo(GetClusterInfoRequest) returns (GetClusterInfoResponse); 9 rpc GetIPInfo(GetIPInfoRequest) returns (GetIPInfoResponse); 10 rpc GetPod(GetPodRequest) returns (GetPodResponse); 11 } 12 13 message GetClusterInfoRequest {} 14 message GetClusterInfoResponse { 15 string pods_cidr = 1; 16 string service_cidr = 2; 17 } 18 19 message GetIPInfoRequest { 20 string ip = 1; 21 } 22 23 message GetIPInfoResponse { 24 IPInfo info = 1; 25 } 26 27 message IPInfo { 28 string pod_uid = 1; 29 string pod_name = 3; 30 string namespace = 2; 31 string workload_name = 4; 32 string workload_kind = 5; 33 string workload_uid = 6; 34 string zone = 7; 35 } 36 37 message GetPodRequest { 38 string uid = 2; 39 } 40 41 message GetPodResponse { 42 Pod pod = 1; 43 } 44 45 message Pod { 46 string uid = 1; 47 string namespace = 2; 48 string name = 3; 49 string workload_name = 4; 50 string workload_kind = 5; 51 string zone = 6; 52 }