Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 865 for errC (0.02 sec)

  1. internal/event/errors.go

    type ErrUnknownRegion struct {
    	Region string
    }
    
    func (err ErrUnknownRegion) Error() string {
    	return fmt.Sprintf("unknown region '%v'", err.Region)
    }
    
    // ErrARNNotFound - ARN not found error.
    type ErrARNNotFound struct {
    	ARN ARN
    }
    
    func (err ErrARNNotFound) Error() string {
    	return fmt.Sprintf("ARN '%v' not found", err.ARN)
    }
    
    // ErrInvalidARN - invalid ARN error.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  2. internal/ioutil/read_file.go

    // A successful call returns err == nil, not err == EOF.
    // Because ReadFile reads the whole file, it does not treat an EOF from Read
    // as an error to be reported.
    func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) {
    	f, err := OsOpenFile(name, readMode, 0o666)
    	if err != nil {
    		return nil, nil, err
    	}
    	defer f.Close()
    
    	st, err := f.Stat()
    	if err != nil {
    		return nil, nil, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 09 18:17:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. internal/event/config_test.go

    </QueueConfiguration>`)
    	queue3 := &Queue{}
    	if err := xml.Unmarshal(data, queue3); err != nil {
    		panic(err)
    	}
    
    	targetList1 := NewTargetList(context.Background())
    
    	targetList2 := NewTargetList(context.Background())
    	if err := targetList2.Add(&ExampleTarget{TargetID{"1", "webhook"}, false, false}); err != nil {
    		panic(err)
    	}
    
    	testCases := []struct {
    		queue      *Queue
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 29K bytes
    - Viewed (0)
  4. cmd/warm-backend-azure.go

    	switch serviceCode {
    	case "ContainerNotFound", "ContainerBeingDeleted":
    		err = BucketNotFound{Bucket: bucket}
    	case "ContainerAlreadyExists":
    		err = BucketExists{Bucket: bucket}
    	case "InvalidResourceName":
    		err = BucketNameInvalid{Bucket: bucket}
    	case "RequestBodyTooLarge":
    		err = PartTooBig{}
    	case "InvalidMetadata":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. internal/http/dial_dnscache.go

    		host, port, err := net.SplitHostPort(addr)
    		if err != nil {
    			return nil, err
    		}
    
    		if net.ParseIP(host) != nil {
    			// For IP only setups there is no need for DNS lookups.
    			return baseDialCtx(ctx, "tcp", addr)
    		}
    
    		ips, err := lookupHost(ctx, host)
    		if err != nil {
    			return nil, err
    		}
    
    		for _, ip := range ips {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 03 19:30:51 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. tests/embedded_struct_test.go

    	}
    
    	DB.Migrator().DropTable(&HNPost{})
    	if err := DB.Migrator().AutoMigrate(&HNPost{}); err != nil {
    		t.Fatalf("failed to auto migrate, got error: %v", err)
    	}
    
    	DB.Create(&HNPost{BasePost: &BasePost{Title: "embedded_pointer_type"}})
    
    	var hnPost HNPost
    	if err := DB.First(&hnPost, "title = ?", "embedded_pointer_type").Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. cmd/admin-handlers_test.go

    func initTestErasureObjLayer(ctx context.Context) (ObjectLayer, []string, error) {
    	erasureDirs, err := getRandomDisks(16)
    	if err != nil {
    		return nil, nil, err
    	}
    	endpoints := mustGetPoolEndpoints(0, erasureDirs...)
    	globalPolicySys = NewPolicySys()
    	objLayer, err := newErasureServerPools(ctx, endpoints)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	// Make objLayer available to all internal services via globalObjectAPI.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. internal/config/identity/openid/openid.go

    	pCfg, ok := r.arnProviderCfgsMap[arnVal]
    	if ok {
    		user, err := pCfg.provider.LookupUser(userid)
    		if err != nil && err != provider.ErrAccessTokenExpired {
    			return user, err
    		}
    		if err == provider.ErrAccessTokenExpired {
    			if err = pCfg.provider.LoginWithClientID(pCfg.ClientID, pCfg.ClientSecret); err != nil {
    				return user, err
    			}
    			user, err = pCfg.provider.LookupUser(userid)
    		}
    		return user, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. internal/grid/types.go

    		}
    	}
    	for zb0002 > 0 {
    		var za0001 string
    		var za0002 string
    		zb0002--
    		za0001, bts, err = msgp.ReadStringBytes(bts)
    		if err != nil {
    			err = msgp.WrapError(err, "Values")
    			return
    		}
    		za0002, bts, err = msgp.ReadStringBytes(bts)
    		if err != nil {
    			err = msgp.WrapError(err, "Values", za0001)
    			return
    		}
    		dst[za0001] = za0002
    	}
    	*m = dst
    	return bts, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. internal/ioutil/wait_pipe.go

    func (w *PipeWriter) CloseWithError(err error) error {
    	err = w.PipeWriter.CloseWithError(err)
    	w.once.Do(func() {
    		w.done()
    	})
    	return err
    }
    
    // PipeReader is similar to io.PipeReader with wait group
    type PipeReader struct {
    	*io.PipeReader
    	wait func()
    }
    
    // CloseWithError close with supplied error the reader end
    func (r *PipeReader) CloseWithError(err error) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 27 14:55:36 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top