- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 1,425 for Func (0.04 sec)
-
istioctl/pkg/checkinject/checkinject.go
istioctl x check-inject -n test -l app=helloworld,version=v1 `, Args: func(cmd *cobra.Command, args []string) error { if len(args) == 0 && labelPairs == "" || len(args) > 1 { cmd.Println(cmd.UsageString()) return fmt.Errorf("check-inject requires only [<resource-type>/]<resource-name>[.<namespace>], or specify labels flag") } return nil }, RunE: func(cmd *cobra.Command, args []string) error {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0) -
cmd/bucket-replication-metrics.go
sma: newSMA(50), } } func (rx *XferStats) String() string { return fmt.Sprintf("curr=%f avg=%f, peak=%f", rx.curr(), rx.Avg, rx.Peak) } func (rx *XferStats) curr() float64 { if rx.measure == nil { return 0.0 } return rx.measure.getExpMovingAvgBytesPerSecond() } func (rx *XferStats) merge(o XferStats) XferStats { curr := calcAvg(rx.curr(), o.curr(), rx.N, o.N) peak := rx.Peak
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 14.2K bytes - Viewed (0) -
internal/event/target/kafka.go
quitCh chan struct{} } // ID - returns target ID. func (target *KafkaTarget) ID() event.TargetID { return target.id } // Name - returns the Name of the target. func (target *KafkaTarget) Name() string { return target.ID().String() } // Store returns any underlying store if set. func (target *KafkaTarget) Store() event.TargetStore { return target.store }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 13.6K bytes - Viewed (0) -
internal/event/target/postgresql.go
quitCh chan struct{} } // ID - returns target ID. func (target *PostgreSQLTarget) ID() event.TargetID { return target.id } // Name - returns the Name of the target. func (target *PostgreSQLTarget) Name() string { return target.ID().String() } // Store returns any underlying store if set. func (target *PostgreSQLTarget) Store() event.TargetStore { return target.store }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/global-heal.go
jt, _ := workers.New(int(numHealers)) healEntryDone := func(name string) healEntryResult { return healEntryResult{ entryDone: true, name: name, } } healEntrySuccess := func(sz uint64) healEntryResult { return healEntryResult{ bytes: sz, success: true, } } healEntryFailure := func(sz uint64) healEntryResult { return healEntryResult{ bytes: sz,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 16.3K bytes - Viewed (0) -
src/archive/zip/writer_test.go
b.ResetTimer() b.RunParallel(func(pb *testing.PB) { var buf bytes.Buffer for pb.Next() { runOnce(&buf) } }) } func writeTestsToFS(tests []WriteTest) fs.FS { fsys := fstest.MapFS{} for _, wt := range tests { fsys[wt.Name] = &fstest.MapFile{ Data: wt.Data, Mode: wt.Mode, } } return fsys } func TestWriterAddFS(t *testing.T) {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 14.4K bytes - Viewed (0) -
cmd/metacache_gen_test.go
t.Fatal(err) } if len(left) > 0 { t.Errorf("%d bytes left over after Skip(): %q", len(left), left) } } func BenchmarkMarshalMsgmetacache(b *testing.B) { v := metacache{} b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgmetacache(b *testing.B) { v := metacache{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0])
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 2.3K bytes - Viewed (0) -
tensorflow/c/c_api_function.cc
description, status); } const char* TF_FunctionName(TF_Function* func) { return func->record->fdef().signature().name().c_str(); } void TF_GraphCopyFunction(TF_Graph* g, const TF_Function* func, const TF_Function* grad, TF_Status* status) { if (func == nullptr) { status->status = InvalidArgument( "'func' argument to TF_GraphCopyFunction cannot be null"); return; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 13.7K bytes - Viewed (0) -
cni/pkg/nodeagent/netns_linux.go
) type NetnsWrapper struct { innerNetns netns.NetNS inode uint64 } func (n *NetnsWrapper) Inode() uint64 { return n.inode } func (n *NetnsWrapper) Close() error { return n.innerNetns.Close() } func (n *NetnsWrapper) Fd() uintptr { return n.innerNetns.Fd() } func inodeForFd(n NetnsFd) (uint64, error) { stats := &unix.Stat_t{} err := unix.Fstat(int(n.Fd()), stats)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jan 31 10:05:36 UTC 2024 - 2.7K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/util.go
} // Name sets the name field on a secretItemBuilder func (s *secretItemBuilder) Name(name string) SecretItemBuilder { s.name = name return s } // Data sets the data field on a secretItemBuilder func (s *secretItemBuilder) Data(data string) SecretItemBuilder { s.data = data return s } // Source sets the source field on a secretItemBuilder func (s *secretItemBuilder) Source(source string) SecretItemBuilder {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 28 19:52:53 UTC 2024 - 8.5K bytes - Viewed (0)