- Sort Score
- Result 10 results
- Languages All
Results 591 - 600 of 1,423 for Func (0.02 sec)
-
internal/grid/stream.go
// If any error is returned by the callback, the stream will be canceled. // If the context is canceled, the stream will be canceled. func (s *Stream) Results(next func(b []byte) error) (err error) { done := false defer func() { if s.cancel != nil { s.cancel(err) } if !done { // Drain channel. for range s.responses { } } }() doneCh := s.ctx.Done()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 3.1K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/connections.go
) type ConnectionsFilter struct { Namespace string Direction string Raw bool } func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error { d := c.ztunnelDump workloads := maps.Values(d.WorkloadState) workloads = slices.SortFunc(workloads, func(a, b WorkloadState) int { if r := cmp.Compare(a.Info.Namespace, b.Info.Namespace); r != 0 { return r }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 3.5K bytes - Viewed (0) -
internal/handlers/proxy.go
protoRegex = regexp.MustCompile(`(?i)^(;|,| )+(?:proto=)(https|http)`) ) // GetSourceScheme retrieves the scheme from the X-Forwarded-Proto and RFC7239 // Forwarded headers (in that order). func GetSourceScheme(r *http.Request) string { var scheme string // Retrieve the scheme from X-Forwarded-Proto. if proto := r.Header.Get(xForwardedProto); proto != "" { scheme = strings.ToLower(proto)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Dec 22 00:56:55 UTC 2023 - 5.1K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) { got, err := extractKubernetesVersion(c.version) if c.errMsg != err && c.isValid { t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err) } if got != c.expected { t.Fatalf("wanted %v got %v", c.expected, got) } }) } } func TestIsK8VersionSupported(t *testing.T) { cases := []struct {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 30 21:50:50 UTC 2024 - 6.5K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
const FileParseString = "Some files couldn't be parsed." func (f AnalyzerFoundIssuesError) Error() string { var sb strings.Builder sb.WriteString(fmt.Sprintf("Analyzers found issues when analyzing %s.\n", analyzeTargetAsString())) sb.WriteString(fmt.Sprintf("See %s for more information about causes and resolutions.", url.ConfigAnalysis)) return sb.String() } func (f FileParseError) Error() string { return FileParseString }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 31 06:53:50 UTC 2024 - 17.6K bytes - Viewed (0) -
internal/logger/target/types/targettype_string.go
package types import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[TargetConsole-1] _ = x[TargetHTTP-2] _ = x[TargetKafka-3] } const _TargetType_name = "ConsoleHTTPKafka" var _TargetType_index = [...]uint8{0, 7, 11, 16} func (i TargetType) String() string { i -= 1
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Nov 10 18:20:21 UTC 2022 - 703 bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject_test.go
}, } kubeInject := InjectCommand(cli.NewFakeContext(nil)) for i, c := range cases { t.Run(fmt.Sprintf("case %d %s", i, strings.Join(c.Args, " ")), func(t *testing.T) { testutil.VerifyOutput(t, kubeInject, c) cleanUpKubeInjectTestEnv() }) } } func cleanUpKubeInjectTestEnv() { meshConfigFile = "" injectConfigFile = "" valuesFile = "" inFilename = "" iopFilename = ""
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 3.4K bytes - Viewed (0) -
cmd/metrics-v2.go
} // RegisterRead register the metrics populator function to be used // to populate new values upon cache invalidation. func (g *MetricsGroupV2) RegisterRead(read func(context.Context) []MetricV2) { g.metricsCache = cachevalue.NewFromFunc(g.cacheInterval, cachevalue.Opts{ReturnLastGood: true}, func(ctx context.Context) ([]MetricV2, error) { if g.metricsGroupOpts.dependGlobalObjectAPI { objLayer := newObjectLayerFn()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 131.9K bytes - Viewed (0) -
clause/delete.go
package clause type Delete struct { Modifier string } func (d Delete) Name() string { return "DELETE" } func (d Delete) Build(builder Builder) { builder.WriteString("DELETE") if d.Modifier != "" { builder.WriteByte(' ') builder.WriteString(d.Modifier) } } func (d Delete) MergeClause(clause *Clause) { clause.Name = "" clause.Expression = d
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Mar 09 09:07:00 UTC 2020 - 359 bytes - Viewed (0) -
istioctl/cmd/options.go
// log_rotate_max_size, but these are rarely appropriate for a user-facing CLI so we ignore them } func optionsCommand(rootCmd *cobra.Command) *cobra.Command { retval := &cobra.Command{ Use: "options", Short: "Displays istioctl global options", Args: cobra.ExactArgs(0), } retval.SetHelpFunc(func(c *cobra.Command, args []string) { c.Printf("The following options can be passed to any command:\n")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 1.8K bytes - Viewed (0)