Matthias Andreas Benkard | 832a54e | 2019-01-29 09:27:38 +0100 | [diff] [blame] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | |
| 18 | // This file was autogenerated by go-to-protobuf. Do not edit it manually! |
| 19 | |
| 20 | syntax = 'proto2'; |
| 21 | |
| 22 | package k8s.io.api.certificates.v1beta1; |
| 23 | |
| 24 | import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; |
| 25 | import "k8s.io/apimachinery/pkg/runtime/generated.proto"; |
| 26 | import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; |
| 27 | import "k8s.io/apimachinery/pkg/util/intstr/generated.proto"; |
| 28 | |
| 29 | // Package-wide variables from generator "generated". |
| 30 | option go_package = "v1beta1"; |
| 31 | |
| 32 | // Describes a certificate signing request |
| 33 | message CertificateSigningRequest { |
| 34 | // +optional |
| 35 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; |
| 36 | |
| 37 | // The certificate request itself and any additional information. |
| 38 | // +optional |
| 39 | optional CertificateSigningRequestSpec spec = 2; |
| 40 | |
| 41 | // Derived information about the request. |
| 42 | // +optional |
| 43 | optional CertificateSigningRequestStatus status = 3; |
| 44 | } |
| 45 | |
| 46 | message CertificateSigningRequestCondition { |
| 47 | // request approval state, currently Approved or Denied. |
| 48 | optional string type = 1; |
| 49 | |
| 50 | // brief reason for the request state |
| 51 | // +optional |
| 52 | optional string reason = 2; |
| 53 | |
| 54 | // human readable message with details about the request state |
| 55 | // +optional |
| 56 | optional string message = 3; |
| 57 | |
| 58 | // timestamp for the last update to this condition |
| 59 | // +optional |
| 60 | optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 4; |
| 61 | } |
| 62 | |
| 63 | message CertificateSigningRequestList { |
| 64 | // +optional |
| 65 | optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; |
| 66 | |
| 67 | repeated CertificateSigningRequest items = 2; |
| 68 | } |
| 69 | |
| 70 | // This information is immutable after the request is created. Only the Request |
| 71 | // and Usages fields can be set on creation, other fields are derived by |
| 72 | // Kubernetes and cannot be modified by users. |
| 73 | message CertificateSigningRequestSpec { |
| 74 | // Base64-encoded PKCS#10 CSR data |
| 75 | optional bytes request = 1; |
| 76 | |
| 77 | // allowedUsages specifies a set of usage contexts the key will be |
| 78 | // valid for. |
| 79 | // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 |
| 80 | // https://tools.ietf.org/html/rfc5280#section-4.2.1.12 |
| 81 | repeated string usages = 5; |
| 82 | |
| 83 | // Information about the requesting user. |
| 84 | // See user.Info interface for details. |
| 85 | // +optional |
| 86 | optional string username = 2; |
| 87 | |
| 88 | // UID information about the requesting user. |
| 89 | // See user.Info interface for details. |
| 90 | // +optional |
| 91 | optional string uid = 3; |
| 92 | |
| 93 | // Group information about the requesting user. |
| 94 | // See user.Info interface for details. |
| 95 | // +optional |
| 96 | repeated string groups = 4; |
| 97 | |
| 98 | // Extra information about the requesting user. |
| 99 | // See user.Info interface for details. |
| 100 | // +optional |
| 101 | map<string, ExtraValue> extra = 6; |
| 102 | } |
| 103 | |
| 104 | message CertificateSigningRequestStatus { |
| 105 | // Conditions applied to the request, such as approval or denial. |
| 106 | // +optional |
| 107 | repeated CertificateSigningRequestCondition conditions = 1; |
| 108 | |
| 109 | // If request was approved, the controller will place the issued certificate here. |
| 110 | // +optional |
| 111 | optional bytes certificate = 2; |
| 112 | } |
| 113 | |
| 114 | // ExtraValue masks the value so protobuf can generate |
| 115 | // +protobuf.nullable=true |
| 116 | // +protobuf.options.(gogoproto.goproto_stringer)=false |
| 117 | message ExtraValue { |
| 118 | // items, if empty, will result in an empty slice |
| 119 | |
| 120 | repeated string items = 1; |
| 121 | } |
| 122 | |