-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
config.pb.go
198 lines (174 loc) · 8.53 KB
/
config.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: grpc/tls/provider/meshca/experimental/config.proto
// NOTE: This proto will very likely move to a different namespace and a
// different git repo in the future.
package meshca_experimental
import (
fmt "fmt"
v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Type of key to be embedded in CSRs sent to the MeshCA.
type GoogleMeshCaConfig_KeyType int32
const (
GoogleMeshCaConfig_KEY_TYPE_UNKNOWN GoogleMeshCaConfig_KeyType = 0
GoogleMeshCaConfig_KEY_TYPE_RSA GoogleMeshCaConfig_KeyType = 1
)
var GoogleMeshCaConfig_KeyType_name = map[int32]string{
0: "KEY_TYPE_UNKNOWN",
1: "KEY_TYPE_RSA",
}
var GoogleMeshCaConfig_KeyType_value = map[string]int32{
"KEY_TYPE_UNKNOWN": 0,
"KEY_TYPE_RSA": 1,
}
func (x GoogleMeshCaConfig_KeyType) String() string {
return proto.EnumName(GoogleMeshCaConfig_KeyType_name, int32(x))
}
func (GoogleMeshCaConfig_KeyType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2f29f6dba7c86653, []int{0, 0}
}
// GoogleMeshCaConfig contains all configuration parameters required by the
// MeshCA CertificateProvider plugin implementation.
type GoogleMeshCaConfig struct {
// GoogleMeshCA server endpoint to get CSRs signed via the *CreateCertificate*
// unary call. This must have :ref:`api_type
// <envoy_api_field_config.core.v3.ApiConfigSource.api_type>` :ref:`GRPC
// <envoy_api_enum_value_config.core.v3.ApiConfigSource.ApiType.GRPC>`.
// STS based call credentials need to be supplied in :ref:`call_credentials
// <envoy_api_field_config.core.v3.GrpcService.GoogleGrpc.call_credentials>`.
//
// If :ref:`timeout envoy_api_field_config.core.v3.GrpcService.timeout` is
// left unspecified, a default value of 10s will be used.
Server *v3.ApiConfigSource `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
// Certificate lifetime to request in CSRs sent to the MeshCA.
//
// A default value of 24h will be used if left unspecified.
CertificateLifetime *duration.Duration `protobuf:"bytes,2,opt,name=certificate_lifetime,json=certificateLifetime,proto3" json:"certificate_lifetime,omitempty"`
// How long before certificate expiration should the certificate be renewed.
//
// A default value of 12h will be used if left unspecified.
RenewalGracePeriod *duration.Duration `protobuf:"bytes,3,opt,name=renewal_grace_period,json=renewalGracePeriod,proto3" json:"renewal_grace_period,omitempty"`
// Type of key.
//
// RSA keys will be used if left unspecified.
KeyType GoogleMeshCaConfig_KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=grpc.tls.provider.meshca.experimental.GoogleMeshCaConfig_KeyType" json:"key_type,omitempty"`
// Size of the key in bits.
//
// 2048 bit keys will be used if left unspecified.
KeySize uint32 `protobuf:"varint,5,opt,name=key_size,json=keySize,proto3" json:"key_size,omitempty"`
// GCE location (region/zone) where the workload is located.
//
// GCE/GKE Metadata Server will be contacted if left unspecified.
Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GoogleMeshCaConfig) Reset() { *m = GoogleMeshCaConfig{} }
func (m *GoogleMeshCaConfig) String() string { return proto.CompactTextString(m) }
func (*GoogleMeshCaConfig) ProtoMessage() {}
func (*GoogleMeshCaConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_2f29f6dba7c86653, []int{0}
}
func (m *GoogleMeshCaConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GoogleMeshCaConfig.Unmarshal(m, b)
}
func (m *GoogleMeshCaConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GoogleMeshCaConfig.Marshal(b, m, deterministic)
}
func (m *GoogleMeshCaConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_GoogleMeshCaConfig.Merge(m, src)
}
func (m *GoogleMeshCaConfig) XXX_Size() int {
return xxx_messageInfo_GoogleMeshCaConfig.Size(m)
}
func (m *GoogleMeshCaConfig) XXX_DiscardUnknown() {
xxx_messageInfo_GoogleMeshCaConfig.DiscardUnknown(m)
}
var xxx_messageInfo_GoogleMeshCaConfig proto.InternalMessageInfo
func (m *GoogleMeshCaConfig) GetServer() *v3.ApiConfigSource {
if m != nil {
return m.Server
}
return nil
}
func (m *GoogleMeshCaConfig) GetCertificateLifetime() *duration.Duration {
if m != nil {
return m.CertificateLifetime
}
return nil
}
func (m *GoogleMeshCaConfig) GetRenewalGracePeriod() *duration.Duration {
if m != nil {
return m.RenewalGracePeriod
}
return nil
}
func (m *GoogleMeshCaConfig) GetKeyType() GoogleMeshCaConfig_KeyType {
if m != nil {
return m.KeyType
}
return GoogleMeshCaConfig_KEY_TYPE_UNKNOWN
}
func (m *GoogleMeshCaConfig) GetKeySize() uint32 {
if m != nil {
return m.KeySize
}
return 0
}
func (m *GoogleMeshCaConfig) GetLocation() string {
if m != nil {
return m.Location
}
return ""
}
func init() {
proto.RegisterEnum("grpc.tls.provider.meshca.experimental.GoogleMeshCaConfig_KeyType", GoogleMeshCaConfig_KeyType_name, GoogleMeshCaConfig_KeyType_value)
proto.RegisterType((*GoogleMeshCaConfig)(nil), "grpc.tls.provider.meshca.experimental.GoogleMeshCaConfig")
}
func init() {
proto.RegisterFile("grpc/tls/provider/meshca/experimental/config.proto", fileDescriptor_2f29f6dba7c86653)
}
var fileDescriptor_2f29f6dba7c86653 = []byte{
// 439 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x6f, 0xd3, 0x30,
0x18, 0xc6, 0x09, 0x83, 0x6e, 0x98, 0x3f, 0x2a, 0xa6, 0x87, 0xac, 0x07, 0x54, 0x4d, 0x9a, 0x94,
0x93, 0x2d, 0xda, 0x33, 0x87, 0x6e, 0x4c, 0x3b, 0x74, 0x94, 0x2a, 0x1d, 0x9a, 0x86, 0x90, 0x22,
0xcf, 0x7d, 0x9b, 0x59, 0x73, 0xed, 0xe8, 0x8d, 0x1b, 0xc8, 0x3e, 0x09, 0x9f, 0x84, 0xcf, 0x87,
0xe2, 0x78, 0x53, 0x04, 0x07, 0x7a, 0xcb, 0x1b, 0xfb, 0xf7, 0x3c, 0x8f, 0x1e, 0xbf, 0x64, 0x9c,
0x63, 0x21, 0xb9, 0xd3, 0x25, 0x2f, 0xd0, 0x56, 0x6a, 0x05, 0xc8, 0x37, 0x50, 0xde, 0x4a, 0xc1,
0xe1, 0x67, 0x01, 0xa8, 0x36, 0x60, 0x9c, 0xd0, 0x5c, 0x5a, 0xb3, 0x56, 0x39, 0x2b, 0xd0, 0x3a,
0x4b, 0x8f, 0x1b, 0x86, 0x39, 0x5d, 0xb2, 0x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