| 1 |
/** |
| 2 |
* Licensed to the Apache Software Foundation (ASF) under one |
| 3 |
* or more contributor license agreements. See the NOTICE file |
| 4 |
* distributed with this work for additional information |
| 5 |
* regarding copyright ownership. The ASF licenses this file |
| 6 |
* to you under the Apache License, Version 2.0 (the |
| 7 |
* "License"); you may not use this file except in compliance |
| 8 |
* with the License. You may obtain a copy of the License at |
| 9 |
* |
| 10 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
* |
| 12 |
* Unless required by applicable law or agreed to in writing, software |
| 13 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
* See the License for the specific language governing permissions and |
| 16 |
* limitations under the License. |
| 17 |
*/ |
| 18 |
|
| 19 |
package mesosproto; |
| 20 |
|
| 21 |
import "github.com/gogo/protobuf/gogoproto/gogo.proto"; |
| 22 |
|
| 23 |
option (gogoproto.gostring_all) = true; |
| 24 |
option (gogoproto.equal_all) = true; |
| 25 |
option (gogoproto.verbose_equal_all) = true; |
| 26 |
option (gogoproto.goproto_stringer_all) = false; |
| 27 |
option (gogoproto.stringer_all) = true; |
| 28 |
option (gogoproto.populate_all) = true; |
| 29 |
option (gogoproto.testgen_all) = true; |
| 30 |
option (gogoproto.benchgen_all) = true; |
| 31 |
option (gogoproto.marshaler_all) = true; |
| 32 |
option (gogoproto.sizer_all) = true; |
| 33 |
option (gogoproto.unmarshaler_all) = true; |
| 34 |
|
| 35 |
message AuthenticateMessage { |
| 36 |
required string pid = 1; // PID that needs to be authenticated. |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
message AuthenticationMechanismsMessage { |
| 41 |
repeated string mechanisms = 1; // List of available SASL mechanisms. |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
message AuthenticationStartMessage { |
| 46 |
required string mechanism = 1; |
| 47 |
optional bytes data = 2; |
| 48 |
} |
| 49 |
|
| 50 |
|
| 51 |
message AuthenticationStepMessage { |
| 52 |
required bytes data = 1; |
| 53 |
} |
| 54 |
|
| 55 |
|
| 56 |
message AuthenticationCompletedMessage {} |
| 57 |
|
| 58 |
|
| 59 |
message AuthenticationFailedMessage {} |
| 60 |
|
| 61 |
|
| 62 |
message AuthenticationErrorMessage { |
| 63 |
optional string error = 1; |
| 64 |
} |