- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 66 for Messages (0.11 sec)
-
pkg/config/analysis/msg/messages.go
// limitations under the License. package msg // Create static initializers file //go:generate go run generate.main.go messages.yaml messages.gen.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 28 16:55:31 UTC 2023 - 762 bytes - Viewed (0) -
pkg/config/analysis/local/context.go
func (i *istiodContext) Report(c config.GroupVersionKind, m diag.Message) { msgs := i.messages[i.currentAnalyzer] if msgs == nil { msgs = &diag.Messages{} i.messages[i.currentAnalyzer] = msgs } msgs.Add(m) } func (i *istiodContext) SetAnalyzer(analyzerName string) { i.currentAnalyzer = analyzerName } func (i *istiodContext) GetMessages(analyzerNames ...string) diag.Messages { result := diag.Messages{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 6.3K bytes - Viewed (0) -
pkg/config/analysis/diag/messages_test.go
MockResource("B"), "A", ) fifthMsg := NewMessage( NewMessageType(Warning, "B1", "Template: %q"), MockResource("B"), "B", ) msgs := Messages{fifthMsg, fourthMsg, thirdMsg, secondMsg, firstMsg} expectedMsgs := Messages{firstMsg, secondMsg, thirdMsg, fourthMsg, fifthMsg} msgs.Sort() g.Expect(msgs).To(Equal(expectedMsgs)) } func TestMessages_SortWithNilOrigin(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/config/analysis/incluster/controller.go
}) } oldmsgs := map[string]diag.Messages{} pushFn := func(combinedKinds sets.Set[config.GroupVersionKind]) { res, err := c.analyzer.ReAnalyzeSubset(combinedKinds, stop) if err != nil { log.Errorf("In-cluster analysis has failed: %s", err) return } // reorganize messages to map index := map[status.Resource]diag.Messages{} for _, m := range res.Messages {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 4.7K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter.go
func printYAML(ms diag.Messages) (string, error) { yamlOutput, err := yaml.Marshal(ms) return string(yamlOutput), err } // Formatting options for Message var ( colorPrefixes = map[diag.Level]string{ diag.Info: "", // no special color for info messages diag.Warning: "\033[33m", // yellow diag.Error: "\033[1;31m", // bold red } )
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jul 11 02:41:45 UTC 2023 - 3.1K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter_test.go
) msgs := diag.Messages{firstMsg, secondMsg} output, _ := Print(msgs, YAMLFormat, false) expectedOutput := `- code: B1 documentationUrl: ` + url.ConfigAnalysis + `/b1/ level: Error message: 'Explosion accident: the bubble is too big' origin: SoapBubble - code: C1 documentationUrl: ` + url.ConfigAnalysis + `/c1/ level: Warning message: 'Collapse danger: the castle is too old'
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/config/analysis/README.md
if !c.Exists(collections.Gateway, resource.NewName(r.Metadata.FullName.Namespace, gwName)) { // Messages are defined in galley/pkg/config/analysis/msg/messages.yaml // From there, code is generated for each message type, including a constructor function // that you can use to create a new validation message of each type. msg := msg.NewReferencedResourceNotFound(r, "gateway", gwName)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 9.4K bytes - Viewed (0) -
pkg/log/uds_test.go
json.Unmarshal([]byte(srv.messages[0]), &got[0]) json.Unmarshal([]byte(srv.messages[1]), &got[1]) if !reflect.DeepEqual(got, want) { t.Errorf("received log messages, got %v want %v", got, want) } } { t.Log("test sending log with specified time") // Clean up all the mssages, and log again. Check that buffer is cleaned up properly. srv.messages = make([]string, 0)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 01:05:12 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/config/analysis/msg/generate.main.go
type messages struct { Messages []message `json:"messages"` } type message struct { Name string `json:"name"` Code string `json:"code"` Level string `json:"level"` Description string `json:"description"` Template string `json:"template"` Url string `json:"url"` Args []arg `json:"args"` } type arg struct { Name string `json:"name"` Type string `json:"type"`
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 28 16:55:31 UTC 2023 - 4K bytes - Viewed (0) -
pkg/config/analysis/local/local.go
meshConfigMapName = "istio" meshNetworksMapKey = "meshNetworks" ) // AnalysisResult represents the returnable results of an analysis execution type AnalysisResult struct { Messages diag.Messages MappedMessages map[string]diag.Messages SkippedAnalyzers []string ExecutedAnalyzers []string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 28 20:21:54 UTC 2023 - 984 bytes - Viewed (0)