...

Text file src/k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1/api.proto

Documentation: k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1

     1/*
     2Copyright 2018 The Kubernetes Authors.
     3
     4Licensed under the Apache License, Version 2.0 (the "License");
     5you may not use this file except in compliance with the License.
     6You may obtain a copy of the License at
     7
     8    http://www.apache.org/licenses/LICENSE-2.0
     9
    10Unless required by applicable law or agreed to in writing, software
    11distributed under the License is distributed on an "AS IS" BASIS,
    12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13See the License for the specific language governing permissions and
    14limitations under the License.
    15*/
    16
    17syntax = "proto3";
    18
    19package v1beta1;
    20option go_package = "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1";
    21
    22import "github.com/gogo/protobuf/gogoproto/gogo.proto";
    23
    24option (gogoproto.goproto_stringer_all) = false;
    25option (gogoproto.stringer_all) =  true;
    26option (gogoproto.goproto_getters_all) = true;
    27option (gogoproto.marshaler_all) = true;
    28option (gogoproto.sizer_all) = true;
    29option (gogoproto.unmarshaler_all) = true;
    30option (gogoproto.goproto_unrecognized_all) = false;
    31
    32message ExampleRequest {
    33	string request = 1;
    34	string v1beta1_field = 2;
    35}
    36
    37message ExampleResponse {
    38	string error  = 1;
    39}
    40
    41// Example is a simple example service for general reference on the recommended
    42// kubelet plugin model and plugin watcher testing.
    43service Example {
    44	rpc GetExampleInfo(ExampleRequest) returns (ExampleResponse) {}
    45}

View as plain text