mirror of https://github.com/k3s-io/k3s
26 lines
620 B
Protocol Buffer
26 lines
620 B
Protocol Buffer
syntax = "proto3";
|
|
package leasepb;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "etcd/etcdserver/etcdserverpb/rpc.proto";
|
|
|
|
option (gogoproto.marshaler_all) = true;
|
|
option (gogoproto.sizer_all) = true;
|
|
option (gogoproto.unmarshaler_all) = true;
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
option (gogoproto.goproto_enum_prefix_all) = false;
|
|
|
|
message Lease {
|
|
int64 ID = 1;
|
|
int64 TTL = 2;
|
|
int64 RemainingTTL = 3;
|
|
}
|
|
|
|
message LeaseInternalRequest {
|
|
etcdserverpb.LeaseTimeToLiveRequest LeaseTimeToLiveRequest = 1;
|
|
}
|
|
|
|
message LeaseInternalResponse {
|
|
etcdserverpb.LeaseTimeToLiveResponse LeaseTimeToLiveResponse = 1;
|
|
}
|