Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 224 for compressLog (0.2 sec)

  1. pkg/kubelet/logs/container_log_manager.go

    			return nil, fmt.Errorf("failed to remove old log %q: %v", logs[i], err)
    		}
    	}
    	logs = logs[i:]
    	return logs, nil
    }
    
    // compressLog compresses a log to log.gz with gzip.
    func (c *containerLogManager) compressLog(log string) error {
    	r, err := c.osInterface.Open(log)
    	if err != nil {
    		return fmt.Errorf("failed to open log %q: %v", log, err)
    	}
    	defer r.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. pkg/kubelet/logs/container_log_manager_test.go

    	_, err = testFile.Write([]byte(testContent))
    	require.NoError(t, err)
    	testFile.Close()
    
    	testLog := testFile.Name()
    	c := &containerLogManager{osInterface: container.RealOS{}}
    	require.NoError(t, c.compressLog(testLog))
    	_, err = os.Stat(testLog + compressSuffix)
    	assert.NoError(t, err, "log should be compressed")
    	_, err = os.Stat(testLog + tmpSuffix)
    	assert.Error(t, err, "temporary log should be renamed")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/tasks/bundling/Compression.java

    import java.util.Arrays;
    import java.util.List;
    
    /**
     * Specifies the compression which should be applied to a TAR archive.
     */
    public enum Compression {
        NONE("tar"),
        GZIP("tgz", "gz"),
        BZIP2("tbz2", "bz2");
    
        private final String defaultExtension;
        private final List<String> supportedExtensions = new ArrayList<String>(2);
    
        private Compression(String defaultExtension, String... additionalSupportedExtensions) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 02 16:56:13 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  4. src/compress/flate/deflate.go

    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).store
    	case level == HuffmanOnly:
    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).storeHuff
    	case level == BestSpeed:
    		d.compressionLevel = levels[level]
    		d.window = make([]byte, maxStoreBlockSize)
    		d.fill = (*compressor).fillStore
    		d.step = (*compressor).encSpeed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/compress/zlib/writer.go

    	// The first four bits is the CINFO (compression info), which is 7 for the default deflate window size.
    	// The next four bits is the CM (compression method), which is 8 for deflate.
    	z.scratch[0] = 0x78
    	// The next two bits is the FLEVEL (compression level). The four values are:
    	// 0=fastest, 1=fast, 2=default, 3=best.
    	// The next bit, FDICT, is set if a dictionary is given.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 18:51:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. src/compress/zlib/writer_test.go

    	var buf bytes.Buffer
    	compressor, err := NewWriterLevelDict(&buf, BestCompression, input)
    	if err != nil {
    		t.Errorf("error in NewWriterLevelDict: %s", err)
    		return
    	}
    	compressor.Write(input)
    	compressor.Close()
    	const expectedMaxSize = 25
    	output := buf.Bytes()
    	if len(output) > expectedMaxSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  7. docs/site-replication/run-ssec-object-replication-with-compression.sh

    touch /tmp/data/defpartsize
    shred -s 500M /tmp/data/defpartsize
    touch /tmp/data/mpartobj.txt
    shred -s 500M /tmp/data/mpartobj.txt
    echo "done"
    
    # Enable compression for site minio1
    ./mc admin config set minio1 compression enable=on extensions=".txt" --insecure
    ./mc admin config set minio1 compression allow_encryption=off --insecure
    
    # Create bucket in source cluster
    echo "Create bucket in source MinIO instance"
    ./mc mb minio1/test-bucket --insecure
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/compress/flate/example_test.go

    	// Documentation is for users.
    }
    
    // A preset dictionary can be used to improve the compression ratio.
    // The downside to using a dictionary is that the compressor and decompressor
    // must agree in advance what dictionary to use.
    func Example_dictionary() {
    	// The dictionary is a string of bytes. When compressing some input data,
    	// the compressor will attempt to substitute substrings with matches found
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 18:42:35 UTC 2016
    - 6.5K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/tasks/bundling/Tar.java

            return compression;
        }
    
        /**
         * Configures the compressor based on passed in compression.
         *
         * @param compression The compression. Should not be null.
         */
        public void setCompression(Compression compression) {
            this.compression = compression;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 24 23:13:41 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  10. src/compress/gzip/gzip.go

    		return nil, fmt.Errorf("gzip: invalid compression level: %d", level)
    	}
    	z := new(Writer)
    	z.init(w, level)
    	return z, nil
    }
    
    func (z *Writer) init(w io.Writer, level int) {
    	compressor := z.compressor
    	if compressor != nil {
    		compressor.Reset(w)
    	}
    	*z = Writer{
    		Header: Header{
    			OS: 255, // unknown
    		},
    		w:          w,
    		level:      level,
    		compressor: compressor,
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top