1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-06 16:57:10 +00:00
node-feature-discovery/pkg/topologyupdater/topology-updater.proto

61 lines
1.4 KiB
Protocol Buffer
Raw Normal View History

/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
syntax = "proto3";
//option go_package = "topologyupdater";
package topologyupdater;
service NodeTopology{
rpc UpdateNodeTopology(NodeTopologyRequest) returns (NodeTopologyResponse);
}
message NodeTopologyRequest {
string nfd_version = 1;
string node_name = 2;
repeated string topology_policies = 3;
repeated Zone zones = 4;
}
message Zone {
string name = 1;
string type = 2;
string parent = 3;
repeated CostInfo costs = 4;
repeated AttributeInfo attributes = 5;
repeated ResourceInfo resources = 6;
}
message CostInfo {
string name = 1;
int32 value = 2 ;
}
message AttributeInfo {
string name = 1;
string value = 2 ;
}
message ResourceInfo {
string name = 1;
string allocatable = 2;
string capacity = 3;
}
message NodeTopologyResponse {
}