Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 575 for io (0.17 sec)

  1. cmd/streaming-signature-v4.go

    	var signature [80]byte
    	_, err = io.ReadFull(cr.reader, signature[:])
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	if err != nil {
    		cr.err = err
    		return n, cr.err
    	}
    	if !bytes.HasPrefix(signature[:], []byte("chunk-signature=")) {
    		cr.err = errMalformedEncoding
    		return n, cr.err
    	}
    	b, err := cr.reader.ReadByte()
    	if err == io.EOF {
    		err = io.ErrUnexpectedEOF
    	}
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  2. internal/crypto/sse.go

    	return
    }
    
    // EncryptSinglePart encrypts an io.Reader which must be the
    // body of a single-part PUT request.
    func EncryptSinglePart(r io.Reader, key ObjectKey) io.Reader {
    	r, err := sio.EncryptReader(r, sio.Config{MinVersion: sio.Version20, Key: key[:], CipherSuites: fips.DARECiphers()})
    	if err != nil {
    		logger.CriticalIf(context.Background(), errors.New("Unable to encrypt io.Reader using object key"))
    	}
    	return r
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  3. internal/config/crypto.go

    package config
    
    import (
    	"bytes"
    	"context"
    	"crypto/rand"
    	"encoding/binary"
    	"errors"
    	"fmt"
    	"io"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/minio/minio/internal/fips"
    	"github.com/minio/minio/internal/kms"
    	"github.com/secure-io/sio-go"
    	"github.com/secure-io/sio-go/sioutil"
    )
    
    // EncryptBytes encrypts the plaintext with a key managed by KMS.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  4. operator/cmd/mesh/operator_test.go

    import (
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    
    	"k8s.io/client-go/kubernetes/fake"
    	"k8s.io/client-go/rest"
    	"sigs.k8s.io/controller-runtime/pkg/client"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/operator/pkg/util"
    	"istio.io/istio/operator/pkg/util/clog"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    var (
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  5. cmd/bitrot.go

    			}
    		}
    	}
    }
    
    // Close all the writers.
    func closeBitrotWriters(ws []io.Writer) {
    	for _, w := range ws {
    		if w != nil {
    			if bw, ok := w.(io.Closer); ok {
    				bw.Close()
    			}
    		}
    	}
    }
    
    // Returns hash sum for whole-bitrot, nil for streaming-bitrot.
    func bitrotWriterSum(w io.Writer) []byte {
    	if bw, ok := w.(*wholeBitrotWriter); ok {
    		return bw.Sum(nil)
    	}
    	return nil
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  6. operator/cmd/mesh/operator-init.go

    	"github.com/spf13/cobra"
    
    	"istio.io/api/operator/v1alpha1"
    	"istio.io/istio/istioctl/pkg/cli"
    	iopv1alpha1 "istio.io/istio/operator/pkg/apis/istio/v1alpha1"
    	"istio.io/istio/operator/pkg/name"
    	"istio.io/istio/operator/pkg/translate"
    	operatorutil "istio.io/istio/operator/pkg/util"
    	"istio.io/istio/operator/pkg/util/clog"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/labels"
    	"istio.io/istio/pkg/kube"
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. cmd/metacache-stream.go

    			switch err {
    			case nil:
    				r.err = io.EOF
    				return io.EOF
    			case io.EOF:
    				r.err = io.ErrUnexpectedEOF
    				return io.ErrUnexpectedEOF
    			}
    			return err
    		}
    
    		if err := r.mr.Skip(); err != nil {
    			if err == io.EOF {
    				err = io.ErrUnexpectedEOF
    			}
    			r.err = err
    			return err
    		}
    		if err := r.mr.Skip(); err != nil {
    			if err == io.EOF {
    				err = io.ErrUnexpectedEOF
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  8. src/archive/zip/register.go

    // The [io.ReadCloser]'s Close method must be used to release associated resources.
    // The Decompressor itself must be safe to invoke from multiple goroutines
    // simultaneously, but each returned reader will be used only by
    // one goroutine at a time.
    type Decompressor func(r io.Reader) io.ReadCloser
    
    var flateWriterPool sync.Pool
    
    func newFlateWriter(w io.Writer) io.WriteCloser {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  9. istioctl/pkg/util/common.go

    // limitations under the License.
    
    package util
    
    import (
    	"fmt"
    	"io"
    	"strings"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	binversion "istio.io/istio/operator/version"
    )
    
    var NeverMatch = &metav1.LabelSelector{
    	MatchLabels: map[string]string{
    		"istio.io/deactivated": "never-match",
    	},
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  10. internal/rest/client.go

    			req.ContentLength = int64(v.Len())
    			buf := v.Bytes()
    			req.GetBody = func() (io.ReadCloser, error) {
    				r := bytes.NewReader(buf)
    				return io.NopCloser(r), nil
    			}
    		case *bytes.Reader:
    			req.ContentLength = int64(v.Len())
    			snapshot := *v
    			req.GetBody = func() (io.ReadCloser, error) {
    				r := snapshot
    				return io.NopCloser(&r), nil
    			}
    		case *strings.Reader:
    			req.ContentLength = int64(v.Len())
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14K bytes
    - Viewed (0)
Back to top