Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Finds (0.13 sec)

  1. finisher_api.go

    			return tx.Session(&Session{SkipHooks: true}).Clauses(clause.OnConflict{UpdateAll: true}).Create(value)
    		}
    
    		return updateTx
    	}
    
    	return
    }
    
    // First finds the first record ordered by primary key, matching given conditions conds
    func (db *DB) First(dest interface{}, conds ...interface{}) (tx *DB) {
    	tx = db.Limit(1).Order(clause.OrderByColumn{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  2. misc/linkcheck/linkcheck.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The linkcheck command finds missing links in the godoc website.
    // It crawls a URL recursively and notes URLs and URL fragments
    // that it's seen and prints a report of missing links at the end.
    package main
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"net/http"
    	"os"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  3. internal/s3select/sql/stringfuncs.go

    		default:
    			s = append(s, r)
    		}
    
    	}
    	if hasLeadingPercent {
    		return strings.HasSuffix(text, string(s)), nil
    	}
    	return string(s) == text, nil
    }
    
    // matcher - Finds `pat` in `text`, and returns the part remainder of
    // `text`, after the match. If leadingPercent is false, `pat` must be
    // the prefix of `text`, otherwise it must be a substring.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  4. cni/pkg/repair/netns.go

    		return nil, err
    	}
    
    	if len(routes) == 0 {
    		return nil, fmt.Errorf("no routes found for %s", ip)
    	}
    
    	linkIndex := routes[0].LinkIndex
    	return netlink.LinkByIndex(linkIndex)
    }
    
    // getPodNetNs finds the network namespace for a given pod. There is not a great way to do this. Network namespaces live
    // under the procfs, /proc/<pid>/ns/net. In majority of cases, this is not used directly, but is rather bind mounted to
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. tests/preload_test.go

    	}
    	AssertEqual(t, find2, value2)
    
    	var finds []Value
    	err = DB.Joins("Nested.Join").Joins("Nested").Preload("Nested.Preloads").Find(&finds).Error
    	if err != nil {
    		t.Errorf("failed to find value, got err: %v", err)
    	}
    	AssertEqual(t, len(finds), 2)
    	AssertEqual(t, finds[0], value1)
    	AssertEqual(t, finds[1], value2)
    }
    
    func TestMergeNestedPreloadWithNestedJoin(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  6. istioctl/pkg/metrics/metrics.go

    		Short: "Prints the metrics for the specified workload(s) when running in Kubernetes.",
    		Long: `
    Prints the metrics for the specified service(s) when running in Kubernetes.
    
    This command finds a Prometheus pod running in the specified istio system
    namespace. It then executes a series of queries per requested workload to
    find the following top-level workload metrics: total requests per second,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    }
    
    // deleteFile deletes a file or a directory if its empty unless recursive
    // is set to true. If the target is successfully deleted, it will recursively
    // move up the tree, deleting empty parent directories until it finds one
    // with files in it. Returns nil for a non-empty directory even when
    // recursive is set to false.
    func (s *xlStorage) deleteFile(basePath, deletePath string, recursive, immediate bool) error {
    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. internal/config/identity/ldap/ldap.go

    		if baseDN.Parsed.AncestorOf(pdn) {
    			return validatedDN, true, nil
    		}
    	}
    
    	// Not under any configured base DN so return false.
    	return validatedDN, false, nil
    }
    
    // Bind - binds to ldap, searches LDAP and returns the distinguished name of the
    // user and the list of groups.
    func (l *Config) Bind(username, password string) (string, []string, error) {
    	conn, err := l.LDAP.Connect()
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  9. callbacks/preload.go

    	}
    	for _, relations := range embeddedRelations.EmbeddedRelations {
    		names = append(names, embeddedValues(relations)...)
    	}
    	return names
    }
    
    // preloadEntryPoint enters layer by layer. It will call real preload if it finds the right entry point.
    // If the current relationship is embedded or joined, current query will be ignored.
    //
    //nolint:cyclop
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  10. src/archive/tar/reader.go

    	// data that describes the next file. These meta data "files" should not
    	// normally be visible to the outside. As such, this loop iterates through
    	// one or more "header files" until it finds a "normal file".
    	format := FormatUSTAR | FormatPAX | FormatGNU
    	for {
    		// Discard the remainder of the file and any padding.
    		if err := discard(tr.r, tr.curr.physicalRemaining()); err != nil {
    			return nil, err
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top