From 27db3224cf8d8e7a2e992b35734e3706bad91f2b Mon Sep 17 00:00:00 2001 From: Mark Mandel Date: Sun, 6 Dec 2020 09:50:10 -0800 Subject: [PATCH] Bunch of files without licences MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Looks like I missed these on code review 😬 --- src/config/builder.rs | 16 ++++++++++++++++ src/config/endpoints.rs | 16 ++++++++++++++++ src/config/error.rs | 16 ++++++++++++++++ src/proxy/builder.rs | 16 ++++++++++++++++ src/proxy/metrics.rs | 16 ++++++++++++++++ src/proxy/server/error.rs | 16 ++++++++++++++++ src/proxy/sessions/error.rs | 16 ++++++++++++++++ 7 files changed, 112 insertions(+) diff --git a/src/config/builder.rs b/src/config/builder.rs index cb001bce6a..c6e50cb7d5 100644 --- a/src/config/builder.rs +++ b/src/config/builder.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use super::{Config, Filter}; use crate::config::{EndPoint, Proxy, ProxyMode, Source, Version}; diff --git a/src/config/endpoints.rs b/src/config/endpoints.rs index 969b2354b4..f08e0ce7ba 100644 --- a/src/config/endpoints.rs +++ b/src/config/endpoints.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use crate::config::EndPoint; use std::sync::Arc; diff --git a/src/config/error.rs b/src/config/error.rs index c076ea1986..a552a0b305 100644 --- a/src/config/error.rs +++ b/src/config/error.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use crate::extensions::Error as FilterRegistryError; use std::fmt::{self, Display, Formatter}; diff --git a/src/proxy/builder.rs b/src/proxy/builder.rs index abec94cebd..90ef819488 100644 --- a/src/proxy/builder.rs +++ b/src/proxy/builder.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use crate::config::{Config, ValidationError}; use crate::extensions::{default_registry, CreateFilterError, FilterChain, FilterRegistry}; use crate::proxy::{Metrics, Server}; diff --git a/src/proxy/metrics.rs b/src/proxy/metrics.rs index 58faeb362b..4d13d72c02 100644 --- a/src/proxy/metrics.rs +++ b/src/proxy/metrics.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use crate::proxy::sessions::metrics::Metrics as SessionMetrics; use prometheus::{Encoder, Registry, Result as MetricsResult, TextEncoder}; use slog::{info, warn, Logger}; diff --git a/src/proxy/server/error.rs b/src/proxy/server/error.rs index 77aa071acb..72cd144afe 100644 --- a/src/proxy/server/error.rs +++ b/src/proxy/server/error.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use crate::proxy::sessions::error::Error as SessionError; use std::fmt::{self, Display, Formatter}; diff --git a/src/proxy/sessions/error.rs b/src/proxy/sessions/error.rs index 5acad1d26b..78ccfa2675 100644 --- a/src/proxy/sessions/error.rs +++ b/src/proxy/sessions/error.rs @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + use std::fmt::{self, Display, Formatter}; #[derive(Debug)]