github.com/google/fleetspeak@v0.1.15-0.20240426164851-4f31f62c1aea/fleetspeak/src/config/proto/fleetspeak_config/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.0 4 // protoc v4.23.4 5 // source: fleetspeak/src/config/proto/fleetspeak_config/config.proto 6 7 package fleetspeak_config 8 9 import ( 10 fleetspeak_components "github.com/google/fleetspeak/fleetspeak/src/server/components/proto/fleetspeak_components" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // The configuration parameters needed by the configuration tool in order to 25 // create the artifacts needed to run a fleetspeak installation. 26 type Config struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 // An name for this installation, e.g. "Nascent" or "Nascent Staging". 32 // Required. 33 ConfigurationName string `protobuf:"bytes,1,opt,name=configuration_name,json=configurationName,proto3" json:"configuration_name,omitempty"` 34 // A template for the components configuration file that will be generated. 35 // The configuration tool will populate the https_config.key and 36 // https_config.certificates fields based on the parameters below. 37 ComponentsConfig *fleetspeak_components.Config `protobuf:"bytes,2,opt,name=components_config,json=componentsConfig,proto3" json:"components_config,omitempty"` 38 // A file containing a PEM encoded certificate that clients should be 39 // configured to trust. Typically a CA cert. If this file is not already 40 // present, a 10 year self-signed CA certificate and associated private key 41 // will be created. 42 TrustedCertFile string `protobuf:"bytes,3,opt,name=trusted_cert_file,json=trustedCertFile,proto3" json:"trusted_cert_file,omitempty"` 43 // A file containing the private key associated with trusted_cert_file, only 44 // required if it is necessary to create server certificates. 45 // 46 // NOTE: Contains private key material. Only needs to be online when creating 47 // new server certificates. 48 TrustedCertKeyFile string `protobuf:"bytes,4,opt,name=trusted_cert_key_file,json=trustedCertKeyFile,proto3" json:"trusted_cert_key_file,omitempty"` 49 // A file containing a PEM encoded certificate that the Fleetspeak server 50 // should use to identify itself. If this file is not already present, a 1 51 // year certificate signed directly using the contents of 52 // trusted_cert_?(key_)file will be created. 53 ServerCertFile string `protobuf:"bytes,5,opt,name=server_cert_file,json=serverCertFile,proto3" json:"server_cert_file,omitempty"` 54 // A file containing the private key associated with 55 // server_cert_file. Required. 56 // 57 // NOTE: Contains private key material. 58 ServerCertKeyFile string `protobuf:"bytes,6,opt,name=server_cert_key_file,json=serverCertKeyFile,proto3" json:"server_cert_key_file,omitempty"` 59 // Where to write the fleetspeak server component configuration file. 60 // 61 // NOTE: Result will contain private key material. Will only be needed by 62 // fleetspeak servers. 63 ServerComponentConfigurationFile string `protobuf:"bytes,7,opt,name=server_component_configuration_file,json=serverComponentConfigurationFile,proto3" json:"server_component_configuration_file,omitempty"` 64 // How clients should find the fleetspeak server(s) used by this installation. 65 // 66 // Each entry should be of the form "<ip/hostname>:<port>". Note the clients 67 // will not perform any intelligent load balancing, rather they will continue 68 // to use the first option which works for them. 69 // 70 // If you are creating your own server certificates, they will need to cover 71 // these addresses. 72 PublicHostPort []string `protobuf:"bytes,8,rep,name=public_host_port,json=publicHostPort,proto3" json:"public_host_port,omitempty"` 73 // If set, write a linux client configuration file for this installation. 74 LinuxClientConfigurationFile string `protobuf:"bytes,9,opt,name=linux_client_configuration_file,json=linuxClientConfigurationFile,proto3" json:"linux_client_configuration_file,omitempty"` 75 // If set, write a linux client configuration file for this installation. 76 DarwinClientConfigurationFile string `protobuf:"bytes,10,opt,name=darwin_client_configuration_file,json=darwinClientConfigurationFile,proto3" json:"darwin_client_configuration_file,omitempty"` 77 // If set, write a linux client configuration file for this installation. 78 WindowsClientConfigurationFile string `protobuf:"bytes,11,opt,name=windows_client_configuration_file,json=windowsClientConfigurationFile,proto3" json:"windows_client_configuration_file,omitempty"` 79 // If set, used for SNI server name and client-side certificate validation. 80 ServerName string `protobuf:"bytes,12,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` 81 } 82 83 func (x *Config) Reset() { 84 *x = Config{} 85 if protoimpl.UnsafeEnabled { 86 mi := &file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_msgTypes[0] 87 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 88 ms.StoreMessageInfo(mi) 89 } 90 } 91 92 func (x *Config) String() string { 93 return protoimpl.X.MessageStringOf(x) 94 } 95 96 func (*Config) ProtoMessage() {} 97 98 func (x *Config) ProtoReflect() protoreflect.Message { 99 mi := &file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_msgTypes[0] 100 if protoimpl.UnsafeEnabled && x != nil { 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 if ms.LoadMessageInfo() == nil { 103 ms.StoreMessageInfo(mi) 104 } 105 return ms 106 } 107 return mi.MessageOf(x) 108 } 109 110 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 111 func (*Config) Descriptor() ([]byte, []int) { 112 return file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescGZIP(), []int{0} 113 } 114 115 func (x *Config) GetConfigurationName() string { 116 if x != nil { 117 return x.ConfigurationName 118 } 119 return "" 120 } 121 122 func (x *Config) GetComponentsConfig() *fleetspeak_components.Config { 123 if x != nil { 124 return x.ComponentsConfig 125 } 126 return nil 127 } 128 129 func (x *Config) GetTrustedCertFile() string { 130 if x != nil { 131 return x.TrustedCertFile 132 } 133 return "" 134 } 135 136 func (x *Config) GetTrustedCertKeyFile() string { 137 if x != nil { 138 return x.TrustedCertKeyFile 139 } 140 return "" 141 } 142 143 func (x *Config) GetServerCertFile() string { 144 if x != nil { 145 return x.ServerCertFile 146 } 147 return "" 148 } 149 150 func (x *Config) GetServerCertKeyFile() string { 151 if x != nil { 152 return x.ServerCertKeyFile 153 } 154 return "" 155 } 156 157 func (x *Config) GetServerComponentConfigurationFile() string { 158 if x != nil { 159 return x.ServerComponentConfigurationFile 160 } 161 return "" 162 } 163 164 func (x *Config) GetPublicHostPort() []string { 165 if x != nil { 166 return x.PublicHostPort 167 } 168 return nil 169 } 170 171 func (x *Config) GetLinuxClientConfigurationFile() string { 172 if x != nil { 173 return x.LinuxClientConfigurationFile 174 } 175 return "" 176 } 177 178 func (x *Config) GetDarwinClientConfigurationFile() string { 179 if x != nil { 180 return x.DarwinClientConfigurationFile 181 } 182 return "" 183 } 184 185 func (x *Config) GetWindowsClientConfigurationFile() string { 186 if x != nil { 187 return x.WindowsClientConfigurationFile 188 } 189 return "" 190 } 191 192 func (x *Config) GetServerName() string { 193 if x != nil { 194 return x.ServerName 195 } 196 return "" 197 } 198 199 var File_fleetspeak_src_config_proto_fleetspeak_config_config_proto protoreflect.FileDescriptor 200 201 var file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDesc = []byte{ 202 0x0a, 0x3a, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63, 203 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c, 204 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 205 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, 0x66, 0x6c, 206 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 207 0x49, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63, 0x2f, 208 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 209 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 210 0x61, 0x6b, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 211 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x05, 0x0a, 0x06, 0x43, 212 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 213 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 214 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 215 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 216 0x74, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 217 0x1d, 0x2e, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 218 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 219 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 220 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 221 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x72, 0x75, 222 0x73, 0x74, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x15, 223 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 224 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x74, 0x72, 0x75, 225 0x73, 0x74, 0x65, 0x64, 0x43, 0x65, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 226 0x28, 0x0a, 0x10, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x66, 227 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 228 0x72, 0x43, 0x65, 0x72, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x73, 0x65, 0x72, 229 0x76, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x66, 0x69, 0x6c, 230 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 231 0x65, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x4d, 0x0a, 0x23, 0x73, 0x65, 232 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x63, 233 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 234 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x20, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 235 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 236 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x75, 0x62, 237 0x6c, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x08, 0x20, 238 0x03, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x50, 239 0x6f, 0x72, 0x74, 0x12, 0x45, 0x0a, 0x1f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x63, 0x6c, 0x69, 240 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 241 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1c, 0x6c, 0x69, 242 0x6e, 0x75, 0x78, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 243 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x47, 0x0a, 0x20, 0x64, 0x61, 244 0x72, 0x77, 0x69, 0x6e, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 245 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0a, 246 0x20, 0x01, 0x28, 0x09, 0x52, 0x1d, 0x64, 0x61, 0x72, 0x77, 0x69, 0x6e, 0x43, 0x6c, 0x69, 0x65, 247 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 248 0x69, 0x6c, 0x65, 0x12, 0x49, 0x0a, 0x21, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x5f, 0x63, 249 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 250 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1e, 251 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x73, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 252 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1f, 253 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 254 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x42, 255 0x4c, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 256 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 257 0x66, 0x6c, 0x65, 0x65, 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x63, 258 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x6c, 0x65, 0x65, 259 0x74, 0x73, 0x70, 0x65, 0x61, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x62, 0x06, 0x70, 260 0x72, 0x6f, 0x74, 0x6f, 0x33, 261 } 262 263 var ( 264 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescOnce sync.Once 265 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescData = file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDesc 266 ) 267 268 func file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescGZIP() []byte { 269 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescOnce.Do(func() { 270 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescData) 271 }) 272 return file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDescData 273 } 274 275 var file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 276 var file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_goTypes = []interface{}{ 277 (*Config)(nil), // 0: fleetspeak.config.Config 278 (*fleetspeak_components.Config)(nil), // 1: fleetspeak.components.Config 279 } 280 var file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_depIdxs = []int32{ 281 1, // 0: fleetspeak.config.Config.components_config:type_name -> fleetspeak.components.Config 282 1, // [1:1] is the sub-list for method output_type 283 1, // [1:1] is the sub-list for method input_type 284 1, // [1:1] is the sub-list for extension type_name 285 1, // [1:1] is the sub-list for extension extendee 286 0, // [0:1] is the sub-list for field type_name 287 } 288 289 func init() { file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_init() } 290 func file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_init() { 291 if File_fleetspeak_src_config_proto_fleetspeak_config_config_proto != nil { 292 return 293 } 294 if !protoimpl.UnsafeEnabled { 295 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 296 switch v := v.(*Config); i { 297 case 0: 298 return &v.state 299 case 1: 300 return &v.sizeCache 301 case 2: 302 return &v.unknownFields 303 default: 304 return nil 305 } 306 } 307 } 308 type x struct{} 309 out := protoimpl.TypeBuilder{ 310 File: protoimpl.DescBuilder{ 311 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 312 RawDescriptor: file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDesc, 313 NumEnums: 0, 314 NumMessages: 1, 315 NumExtensions: 0, 316 NumServices: 0, 317 }, 318 GoTypes: file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_goTypes, 319 DependencyIndexes: file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_depIdxs, 320 MessageInfos: file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_msgTypes, 321 }.Build() 322 File_fleetspeak_src_config_proto_fleetspeak_config_config_proto = out.File 323 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_rawDesc = nil 324 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_goTypes = nil 325 file_fleetspeak_src_config_proto_fleetspeak_config_config_proto_depIdxs = nil 326 }