- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 496 for index (0.04 sec)
-
pkg/kube/krt/index.go
import ( "sync" "istio.io/istio/pkg/ptr" "istio.io/istio/pkg/util/sets" ) // Index maintains a simple index over an informer type Index[I any, K comparable] struct { mu sync.RWMutex objects map[K]sets.Set[Key[I]] c Collection[I] extract func(o I) []K } // Lookup finds all objects matching a given key func (i *Index[I, K]) Lookup(k K) []I { i.mu.RLock() defer i.mu.RUnlock() var res []I
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 04:53:45 UTC 2024 - 2.8K bytes - Viewed (0) -
schema/index.go
}) indexes[index.Name] = idx } } } for _, index := range indexes { if index.Class == "UNIQUE" && len(index.Fields) == 1 { index.Fields[0].Field.UniqueIndex = index.Name } } return indexes } func (schema *Schema) LookIndex(name string) *Index { if schema != nil { indexes := schema.ParseIndexes() for _, index := range indexes { if index.Name == name { return &index
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sun Feb 04 07:49:19 UTC 2024 - 3.7K bytes - Viewed (0) -
migrator/index.go
import "database/sql" // Index implements gorm.Index interface type Index struct { TableName string NameValue string ColumnList []string PrimaryKeyValue sql.NullBool UniqueValue sql.NullBool OptionValue string } // Table return the table name of the index. func (idx Index) Table() string { return idx.TableName } // Name return the name of the index. func (idx Index) Name() string {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Apr 11 02:32:46 UTC 2023 - 1023 bytes - Viewed (0) -
pilot/pkg/serviceregistry/util/workloadinstances/index.go
"istio.io/istio/pkg/util/sets" ) // Index reprensents an index over workload instances from workload entries. // // Indexes are thread-safe. type Index interface { // Insert adds/updates given workload instance to the index. // // Returns previous value in the index, or nil otherwise. Insert(*model.WorkloadInstance) *model.WorkloadInstance // Delete removes given workload instance from the index. //
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 16 05:45:36 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/kube/kclient/index.go
"istio.io/istio/pkg/kube/controllers" "istio.io/istio/pkg/util/sets" ) // Index maintains a simple index over an informer type Index[K comparable, O controllers.ComparableObject] struct { mu sync.RWMutex objects map[K]sets.Set[types.NamespacedName] client Informer[O] } // Lookup finds all objects matching a given key func (i *Index[K, O]) Lookup(k K) []O { i.mu.RLock() defer i.mu.RUnlock() res := make([]O, 0)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 04 03:49:30 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/index.go
// PVs are indexed by their access modes to allow easier searching. Each // index is the string representation of a set of access modes. There is a // finite number of possible sets and PVs will only be indexed in one of // them (whichever index matches the PV's modes). // // A request for resources will always specify its desired access modes.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 6.5K bytes - Viewed (0) -
schema/index_test.go
Name7 string `gorm:"index:type"` Name8 string `gorm:"index:,length:10;index:,collate:utf8"` // Composite Index: Flattened structure. Data0A string `gorm:"index:,composite:comp_id0"` Data0B string `gorm:"index:,composite:comp_id0"` // Composite Index: Nested structure. Data1A string `gorm:"index:,composite:comp_id1"` CompIdxLevel1C // Composite Index: Unique and priority.
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Sun Feb 04 07:49:19 UTC 2024 - 8K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/interface.go
package route // An InterfaceMessage represents an interface message. type InterfaceMessage struct { Version int // message version Type int // message type Flags int // interface flags Index int // interface index Name string // interface name Addrs []Addr // addresses extOff int // offset of header extension raw []byte // raw message }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/internal/src/xpos.go
// For positions with different bases, ordering is by base index. func (p XPos) Before(q XPos) bool { n, m := p.index, q.index return n < m || n == m && p.lico < q.lico } // SameFile reports whether p and q are positions in the same file. func (p XPos) SameFile(q XPos) bool { return p.index == q.index } // SameFileAndLine reports whether p and q are positions on the same line in the same file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 4.9K bytes - Viewed (0) -
src/index/suffixarray/suffixarray.go
} // lookupAll returns a slice into the matching region of the index. // The runtime is O(log(N)*len(s)). func (x *Index) lookupAll(s []byte) ints { // find matching suffix index range [i:j] // find the first index where s would be the prefix i := sort.Search(x.sa.len(), func(i int) bool { return bytes.Compare(x.at(i), s) >= 0 }) // starting at i, find the first index at which s is not a prefix
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.5K bytes - Viewed (0)