generated.proto 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. Copyright 2016 The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // This file was autogenerated by go-to-protobuf. Do not edit it manually!
  14. syntax = 'proto2';
  15. package k8s.io.kubernetes.pkg.apis.certificates.v1alpha1;
  16. import "k8s.io/kubernetes/pkg/api/resource/generated.proto";
  17. import "k8s.io/kubernetes/pkg/api/unversioned/generated.proto";
  18. import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
  19. import "k8s.io/kubernetes/pkg/runtime/generated.proto";
  20. import "k8s.io/kubernetes/pkg/util/intstr/generated.proto";
  21. // Package-wide variables from generator "generated".
  22. option go_package = "v1alpha1";
  23. // Describes a certificate signing request
  24. message CertificateSigningRequest {
  25. optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
  26. // The certificate request itself and any additional information.
  27. optional CertificateSigningRequestSpec spec = 2;
  28. // Derived information about the request.
  29. optional CertificateSigningRequestStatus status = 3;
  30. }
  31. message CertificateSigningRequestCondition {
  32. // request approval state, currently Approved or Denied.
  33. optional string type = 1;
  34. // brief reason for the request state
  35. optional string reason = 2;
  36. // human readable message with details about the request state
  37. optional string message = 3;
  38. // timestamp for the last update to this condition
  39. optional k8s.io.kubernetes.pkg.api.unversioned.Time lastUpdateTime = 4;
  40. }
  41. message CertificateSigningRequestList {
  42. optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1;
  43. repeated CertificateSigningRequest items = 2;
  44. }
  45. // This information is immutable after the request is created. Only the Request
  46. // and ExtraInfo fields can be set on creation, other fields are derived by
  47. // Kubernetes and cannot be modified by users.
  48. message CertificateSigningRequestSpec {
  49. // Base64-encoded PKCS#10 CSR data
  50. optional bytes request = 1;
  51. // Information about the requesting user (if relevant)
  52. // See user.Info interface for details
  53. optional string username = 2;
  54. optional string uid = 3;
  55. repeated string groups = 4;
  56. }
  57. message CertificateSigningRequestStatus {
  58. // Conditions applied to the request, such as approval or denial.
  59. repeated CertificateSigningRequestCondition conditions = 1;
  60. // If request was approved, the controller will place the issued certificate here.
  61. optional bytes certificate = 2;
  62. }