Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 202 for Value (0.12 sec)

  1. chainable_api.go

    //	// if user's primary key is non-blank, will use it as condition, then will only update that user's name to `hello`
    //	db.Model(&user).Update("name", "hello")
    func (db *DB) Model(value interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.Model = value
    	return
    }
    
    // Clauses Add clauses
    //
    // This supports both standard clauses (clause.OrderBy, clause.Limit, clause.Where) and more
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
  2. internal/grid/handlers.go

    		return r == &o
    	}
    	return false
    }
    
    // IsRemoteErr returns the value if the error is a RemoteErr.
    func IsRemoteErr(err error) *RemoteErr {
    	var r RemoteErr
    	if errors.As(err, &r) {
    		return &r
    	}
    	return nil
    }
    
    type (
    	// SingleHandlerFn is handlers for one to one requests.
    	// A non-nil error value will be returned as RemoteErr(msg) to client.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  3. internal/crypto/key.go

    }
    
    // SealETag seals the etag using the object key.
    // It does not encrypt empty ETags because such ETags indicate
    // that the S3 client hasn't sent an ETag = MD5(object) and
    // the backend can pick an ETag value.
    func (key ObjectKey) SealETag(etag []byte) []byte {
    	if len(etag) == 0 { // don't encrypt empty ETag - only if client sent ETag = MD5(object)
    		return etag
    	}
    	var buffer bytes.Buffer
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/server.go

    	Stop()
    }
    
    type Server struct {
    	ctx        context.Context
    	kubeClient kube.Client
    
    	handlers  K8sHandlers
    	dataplane MeshDataplane
    
    	isReady *atomic.Value
    
    	cniServerStopFunc func()
    }
    
    func NewServer(ctx context.Context, ready *atomic.Value, pluginSocket string, args AmbientArgs) (*Server, error) {
    	client, err := buildKubeClient(args.KubeConfig)
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    			t.Fatal(failTestStr(anonTestStr, "error response bucket name differs from expected value"))
    		}
    
    		if actualError.Key != objectName {
    			t.Fatal(failTestStr(anonTestStr, "error response object name differs from expected value"))
    		}
    	}
    
    	// test for unknown auth case.
    	anonReq.Body = readerTwo
    	// Setting the `Authorization` header to a random value so that the signature falls into unknown auth case.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  6. tests/callbacks_test.go

    	}
    
    	return fmt.Sprint(got) == fmt.Sprint(fnames), fmt.Sprintf("expects %v, got %v", fnames, got)
    }
    
    func getFuncName(fc interface{}) string {
    	reflectValue, ok := fc.(reflect.Value)
    	if !ok {
    		reflectValue = reflect.ValueOf(fc)
    	}
    
    	fnames := strings.Split(runtime.FuncForPC(reflectValue.Pointer()).Name(), ".")
    	return fnames[len(fnames)-1]
    }
    
    func c1(*gorm.DB) {}
    func c2(*gorm.DB) {}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. cmd/api-response.go

    type Metadata struct {
    	Items []struct {
    		Key   string
    		Value string
    	}
    }
    
    // Set add items, duplicate items get replaced.
    func (s *Metadata) Set(k, v string) {
    	for i, item := range s.Items {
    		if item.Key == k {
    			s.Items[i] = struct {
    				Key   string
    				Value string
    			}{
    				Key:   k,
    				Value: v,
    			}
    			return
    		}
    	}
    	s.Items = append(s.Items, struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  8. cmd/admin-heal-ops.go

    func (h *healSequence) getScannedItemsMap() map[madmin.HealItemType]int64 {
    	h.mutex.RLock()
    	defer h.mutex.RUnlock()
    
    	// Make a copy before returning the value
    	retMap := make(map[madmin.HealItemType]int64, len(h.scannedItemsMap))
    	for k, v := range h.scannedItemsMap {
    		retMap[k] = v
    	}
    
    	return retMap
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  9. cmd/etcd.go

    		return nil, etcdErrToErr(err, client.Endpoints())
    	}
    	if resp.Count == 0 {
    		return nil, errConfigNotFound
    	}
    	for _, ev := range resp.Kvs {
    		if string(ev.Key) == key {
    			return ev.Value, nil
    		}
    	}
    	return nil, errConfigNotFound
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. cmd/server-rlimit.go

    )
    
    func oldLinux() bool {
    	currentKernel, err := kernel.CurrentVersion()
    	if err != nil {
    		// Could not probe the kernel version
    		return false
    	}
    
    	if currentKernel == 0 {
    		// We could not get any valid value return false
    		return false
    	}
    
    	// legacy linux indicator for printing warnings
    	// about older Linux kernels and Go runtime.
    	return currentKernel < kernel.Version(4, 0, 0)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top