Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for Messages (0.09 sec)

  1. 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)
  2. pkg/config/analysis/msg/messages.yaml

    # Please keep entries ordered by code.
    # NOTE: The range 0000-0100 is reserved for internal and/or future use.
    messages:
      - name: "InternalError"
        code: IST0001
        level: Error
        description: "There was an internal error in the toolchain. This is almost always a bug in the implementation."
        template: "Internal error: %v"
        args:
          - name: detail
            type: string
    
      - name: "Deprecated"
        code: IST0002
        level: Warning
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 22 10:13:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. pkg/config/analysis/msg/messages.gen.go

    	}
    }
    
    // NewInternalError returns a new diag.Message based on InternalError.
    func NewInternalError(r *resource.Instance, detail string) diag.Message {
    	return diag.NewMessage(
    		InternalError,
    		r,
    		detail,
    	)
    }
    
    // NewDeprecated returns a new diag.Message based on Deprecated.
    func NewDeprecated(r *resource.Instance, detail string) diag.Message {
    	return diag.NewMessage(
    		Deprecated,
    		r,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 22 10:13:03 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top