-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: add compressor/decompressor support (#2474)
* Add API for compressor Signed-off-by: He Jie Xu <hejie.xu@intel.com> * update Signed-off-by: He Jie Xu <hejie.xu@intel.com> * update Signed-off-by: He Jie Xu <hejie.xu@intel.com> * update Signed-off-by: He Jie Xu <hejie.xu@intel.com> * update doc Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate manifests Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate Signed-off-by: He Jie Xu <hejie.xu@intel.com> * address comments Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate manifests Signed-off-by: He Jie Xu <hejie.xu@intel.com> * address comments Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate Signed-off-by: He Jie Xu <hejie.xu@intel.com> * update Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate Signed-off-by: He Jie Xu <hejie.xu@intel.com> * update comments Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate Signed-off-by: He Jie Xu <hejie.xu@intel.com> * address comments Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate Signed-off-by: He Jie Xu <hejie.xu@intel.com> * address comments Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate Signed-off-by: He Jie Xu <hejie.xu@intel.com> * generate again Signed-off-by: He Jie Xu <hejie.xu@intel.com> --------- Signed-off-by: He Jie Xu <hejie.xu@intel.com>
- Loading branch information
Showing
5 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright Envoy Gateway Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// The full text of the Apache license is available in the LICENSE file at | ||
// the root of the repo. | ||
|
||
package v1alpha1 | ||
|
||
// CompressorType defines the types of compressor library supported by Envoy Gateway. | ||
// | ||
// +kubebuilder:validation:Enum=Gzip | ||
type CompressorType string | ||
|
||
// GzipCompressor defines the config for the Gzip compressor. | ||
// The default values can be found here: | ||
// https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/compression/gzip/compressor/v3/gzip.proto#extension-envoy-compression-gzip-compressor | ||
type GzipCompressor struct { | ||
} | ||
|
||
// Compression defines the config of enabling compression. | ||
// This can help reduce the bandwidth at the expense of higher CPU. | ||
type Compression struct { | ||
// CompressorType defines the compressor type to use for compression. | ||
// | ||
// +required | ||
Type CompressorType `json:"type"` | ||
|
||
// The configuration for GZIP compressor. | ||
// | ||
// +optional | ||
Gzip *GzipCompressor `json:"gzip,omitempty"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters