Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for compress (0.2 sec)

  1. internal/config/compress/compress.go

    	cfg := Config{}
    	if err = config.CheckValidKeys(config.CompressionSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	compress := env.Get(EnvCompressState, kvs.Get(config.Enable))
    	if compress == "" {
    		compress = env.Get(EnvCompress, "")
    	}
    	cfg.Enabled, err = config.ParseBool(compress)
    	if err != nil {
    		// Parsing failures happen due to empty KVS, ignore it.
    		if kvs.Empty() {
    			return cfg, nil
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5K bytes
    - Viewed (0)
  2. internal/config/compress/compress_test.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package compress
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestParseCompressIncludes(t *testing.T) {
    	testCases := []struct {
    		str              string
    		expectedPatterns []string
    		success          bool
    	}{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  3. .github/workflows/mint/minio-compress-encrypt.yaml

    Harshavardhana <******@****.***> 1699046298 -0700
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 03 21:18:18 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  4. internal/logger/logrotate.go

    	if w.f != nil {
    		if err := w.closeCurrentFile(); err != nil {
    			return err
    		}
    
    		// This function is a no-op if opts.Compress is false
    		// writes an error in JSON form to stderr, if we cannot
    		// compress.
    		if err := w.compress(); err != nil {
    			msg := fmt.Sprintf("unable to compress log file %v: %v, ignoring and moving on", w.f.Name(), err)
    			stdErrEnc.Encode(&log.Entry{
    				Level:   ErrorKind,
    				Message: msg,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 11:38:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. docs/compression/README.md

    MinIO server allows streaming compression to ensure efficient disk space usage.
    Compression happens inflight, i.e objects are compressed before being written to disk(s).
    MinIO uses [`klauspost/compress/s2`](https://github.com/klauspost/compress/tree/master/s2)
    streaming compression due to its stability and performance.
    
    This algorithm is specifically optimized for machine generated content.
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. internal/config/compress/legacy.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package compress
    
    import (
    	"strings"
    
    	"github.com/minio/minio/internal/config"
    )
    
    // Legacy envs.
    const (
    	EnvCompress                 = "MINIO_COMPRESS"
    	EnvCompressMimeTypesLegacy1 = "MINIO_COMPRESS_MIMETYPES"
    
    	// These envs were wrong but we supported them for a long time
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jul 17 15:43:14 GMT 2022
    - 1.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py

        return {"request_class": type(request).__name__}
    
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize("compress", [True, False])
    def test_gzip_request(compress):
        n = 1000
        headers = {}
        body = [1] * n
        data = json.dumps(body).encode()
        if compress:
            data = gzip.compress(data)
            headers["Content-Encoding"] = "gzip"
        headers["Content-Type"] = "application/json"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Nov 13 14:26:09 GMT 2022
    - 886 bytes
    - Viewed (0)
  8. cmd/config-versions.go

    	// Notification queue configuration.
    	Notify notify.Config `json:"notify"`
    
    	// Logger configuration
    	Logger logger.Config `json:"logger"`
    
    	// Compression configuration
    	Compression compress.Config `json:"compress"`
    
    	// OpenID configuration
    	OpenID openid.Config `json:"openid"`
    
    	// External policy enforcements.
    	Policy struct {
    		// OPA configuration.
    		OPA opa.Args `json:"opa"`
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:05:24 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  9. .github/workflows/mint.yml

          - name: multipart uploads test
            run: |
              ${GITHUB_WORKSPACE}/.github/workflows/multipart/migrate.sh "${{ steps.vars.outputs.sha_short }}"
    
          - name: compress and encrypt
            run: |
              ${GITHUB_WORKSPACE}/.github/workflows/run-mint.sh "compress-encrypt" "minio" "minio123" "${{ steps.vars.outputs.sha_short }}"
    
          - name: multiple pools
            run: |
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 23:44:49 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  10. cmd/config-migrate.go

    	switch cfg.Version {
    	case "29":
    		// V29 -> V30
    		cfg.Compression.Enabled = false
    		cfg.Compression.Extensions = strings.Split(compress.DefaultExtensions, config.ValueSeparator)
    		cfg.Compression.MimeTypes = strings.Split(compress.DefaultMimeTypes, config.ValueSeparator)
    	case "30":
    		// V30 -> V31
    		cfg.OpenID = openid.Config{}
    		cfg.Policy.OPA = opa.Args{
    			URL:       &xnet.URL{},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:05:24 GMT 2023
    - 5.4K bytes
    - Viewed (0)
Back to top