Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for extractInspectV2 (0.1 sec)

  1. docs/debugging/inspect/decrypt-v2.go

    package main
    
    import (
    	"errors"
    	"fmt"
    	"io"
    	"os"
    
    	"github.com/minio/madmin-go/v3/estream"
    )
    
    type keepFileErr struct {
    	error
    }
    
    func extractInspectV2(pk []byte, r io.Reader, w io.Writer, okMsg string) error {
    	privKey, err := bytesToPrivateKey(pk)
    	if err != nil {
    		return fmt.Errorf("decoding key returned: %w", err)
    	}
    
    	sr, err := estream.NewReader(r)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 11 21:22:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. docs/debugging/inspect/main.go

    	msg := fmt.Sprintf("output written to %s", outputFileName)
    
    	switch {
    	case *keyHex != "":
    		err = extractInspectV1(*keyHex, input, output, msg)
    	case len(privateKey) != 0:
    		err = extractInspectV2(privateKey, input, output, msg)
    	}
    	output.Close()
    	if err != nil {
    
    		var keep keepFileErr
    		if !errors.As(err, &keep) {
    			os.Remove(outputFileName)
    		}
    		fatalErr(err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top