...

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

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

     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 v1beta2;
    20option go_package = "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta2";
    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
    32// Renames a field from v1beta1 ExampleRequest.
    33message ExampleRequest {
    34	string request = 1;
    35	string v1beta2_field = 2;
    36}
    37
    38message ExampleResponse {
    39	string error  = 1;
    40}
    41
    42// Example is a simple example service for general reference on the recommended
    43// kubelet plugin model and plugin watcher testing.
    44service Example {
    45	rpc GetExampleInfo(ExampleRequest) returns (ExampleResponse) {}
    46}

View as plain text