Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 71 for isopen (0.15 sec)

  1. internal/kms/single-key.go

    			APICode:        "KMS.InternalException",
    			Err:            fmt.Errorf("invalid nonce size %d", n),
    		}
    	}
    
    	associatedData, _ := context.MarshalText()
    	plaintext, err := aead.Open(nil, encryptedKey.Nonce, encryptedKey.Bytes, associatedData)
    	if err != nil {
    		return nil, Error{
    			HTTPStatusCode: http.StatusBadRequest,
    			APICode:        "KMS.InternalException",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  2. internal/event/target/mqtt.go

    	if args.QueueDir != "" {
    		queueDir := filepath.Join(args.QueueDir, storePrefix+"-mqtt-"+id)
    		queueStore = store.NewQueueStore[event.Event](queueDir, args.QueueLimit, event.StoreExtension)
    		if err := queueStore.Open(); err != nil {
    			return nil, fmt.Errorf("unable to initialize the queue store of MQTT `%s`: %w", id, err)
    		}
    	}
    
    	target := &MQTTTarget{
    		id:         event.TargetID{ID: id, Name: "mqtt"},
    		args:       args,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  3. cmd/common-main.go

    		color.TurnOff()
    	}
    
    	if runtime.GOOS == "windows" {
    		if mousetrap.StartedByExplorer() {
    			fmt.Printf("Don't double-click %s\n", os.Args[0])
    			fmt.Println("You need to open cmd.exe/PowerShell and run it from the command line")
    			fmt.Println("Refer to the docs here on how to run it as a Windows Service https://github.com/minio/minio-service/tree/master/windows")
    			fmt.Println("Press the Enter Key to Exit")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  4. internal/event/target/amqp.go

    	if args.QueueDir != "" {
    		queueDir := filepath.Join(args.QueueDir, storePrefix+"-amqp-"+id)
    		queueStore = store.NewQueueStore[event.Event](queueDir, args.QueueLimit, event.StoreExtension)
    		if err := queueStore.Open(); err != nil {
    			return nil, fmt.Errorf("unable to initialize the queue store of AMQP `%s`: %w", id, err)
    		}
    	}
    
    	target := &AMQPTarget{
    		id:         event.TargetID{ID: id, Name: "amqp"},
    		args:       args,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 10K bytes
    - Viewed (0)
  5. internal/logger/target/kafka/kafka.go

    	var queueStore store.Store[interface{}]
    	queueDir := filepath.Join(h.kconfig.QueueDir, h.Name())
    	queueStore = store.NewQueueStore[interface{}](queueDir, uint64(h.kconfig.QueueSize), kafkaLoggerExtension)
    	if err = queueStore.Open(); err != nil {
    		return fmt.Errorf("unable to initialize the queue store of %s webhook: %w", h.Name(), err)
    	}
    	ctx, cancel := context.WithCancel(ctx)
    	h.store = queueStore
    	h.storeCtxCancel = cancel
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.1K bytes
    - Viewed (1)
  6. istioctl/pkg/workload/workload.go

    func unstructureIstioType(spec any) (map[string]any, error) {
    	b, err := yaml.Marshal(spec)
    	if err != nil {
    		return nil, err
    	}
    	iSpec := map[string]any{}
    	err = yaml.Unmarshal(b, &iSpec)
    	if err != nil {
    		return nil, err
    	}
    	return iSpec, nil
    }
    
    func convertToUnsignedInt32Map(s []string) map[string]uint32 {
    	out := make(map[string]uint32, len(s))
    	for _, l := range s {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    		return nil, time.Time{}, err
    	}
    	defer f.Close()
    	stat, err := f.Stat()
    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	if stat.IsDir() {
    		return nil, time.Time{}, &os.PathError{
    			Op:   "open",
    			Path: itemPath,
    			Err:  syscall.EISDIR,
    		}
    	}
    	buf, err := readXLMetaNoData(f, stat.Size())
    	if err != nil {
    		return nil, stat.ModTime().UTC(), fmt.Errorf("%w -> %s", err, itemPath)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. cmd/tier-journal.go

    	// Rotate active journal to perform pending deletes.
    	return os.Rename(jPath, jroPath)
    }
    
    // Open opens a new active journal. Note: calling Open on an opened journal is a
    // no-op.
    func (jd *tierDiskJournal) Open() error {
    	jd.Lock()
    	defer jd.Unlock()
    	if jd.file != nil { // already open
    		return nil
    	}
    
    	var err error
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  9. internal/ioutil/read_file.go

    	"io"
    	"io/fs"
    	"os"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    var (
    	// OpenFileDirectIO allows overriding default function.
    	OpenFileDirectIO = disk.OpenFileDirectIO
    	// OsOpen allows overriding default function.
    	OsOpen = os.Open
    	// OsOpenFile allows overriding default function.
    	OsOpenFile = os.OpenFile
    )
    
    // ReadFileWithFileInfo reads the named file and returns the contents.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/swig/testdata/stdio/main.go

    	"os"
    )
    
    func F() int { return int(C.F()) }
    
    func main() {
    	if x := int(C.F()); x != 1 {
    		fatal("x = %d, want 1", x)
    	}
    
    	// Open this file itself and verify that the first few characters are
    	// as expected.
    	f := Fopen("main.go", "r")
    	if f.Swigcptr() == 0 {
    		fatal("fopen failed")
    	}
    	if Fgetc(f) != '/' || Fgetc(f) != '/' || Fgetc(f) != ' ' || Fgetc(f) != 'C' {
    		fatal("read unexpected characters")
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 975 bytes
    - Viewed (0)
Back to top