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 888489280b..05c9de32a3 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 60e41e8ab8..a8d4a08250 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::server::metrics::Metrics as ProxyMetrics; 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 ee3f09d62c..261ed24df0 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)]