Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for MESSAGES (0.23 sec)

  1. istioctl/pkg/util/formatting/formatter.go

    )
    
    func init() {
    	for _, key := range MsgOutputFormatKeys {
    		MsgOutputFormats[key] = true
    	}
    }
    
    // Print output messages in the specified format with color options
    func Print(ms diag.Messages, format string, colorize bool) (string, error) {
    	switch format {
    	case LogFormat:
    		return printLog(ms, colorize), nil
    	case JSONFormat:
    		return printJSON(ms)
    	case YAMLFormat:
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. istioctl/pkg/util/formatting/formatter_test.go

    		"the bubble is too big",
    	)
    	secondMsg := diag.NewMessage(
    		diag.NewMessageType(diag.Warning, "C1", "Collapse danger: %v"),
    		diag.MockResource("GrandCastle"),
    		"the castle is too old",
    	)
    
    	msgs := diag.Messages{firstMsg, secondMsg}
    	output, _ := Print(msgs, LogFormat, false)
    
    	g.Expect(output).To(Equal(
    		"Error [B1] (SoapBubble) Explosion accident: the bubble is too big\n" +
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  3. istioctl/pkg/util/proto/messageslice.go

    	"google.golang.org/protobuf/proto"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // MessageSlice allows us to marshal slices of protobuf messages like clusters/listeners/routes/endpoints correctly
    type MessageSlice []proto.Message
    
    // MarshalJSON handles marshaling of slices of proto messages
    func (pSlice MessageSlice) MarshalJSON() ([]byte, error) {
    	buffer := bytes.NewBufferString("[")
    	sliceLength := len(pSlice)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 19 21:53:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  4. cni/pkg/log/uds.go

    		return
    	}
    	messages := make([]cniLog, 0, len(cniLogs))
    	for _, l := range cniLogs {
    		var msg cniLog
    		if err := json.Unmarshal([]byte(l), &msg); err != nil {
    			log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err)
    			continue
    		}
    		msg.Msg = strings.TrimSpace(msg.Msg)
    		messages = append(messages, msg)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  5. common-protos/k8s.io/api/admission/v1beta1/generated.proto

      // the admission webhook to add additional context to the audit log for this request.
      // +optional
      map<string, string> auditAnnotations = 6;
    
      // warnings is a list of warning messages to return to the requesting API client.
      // Warning messages describe a problem the client making the API request should correct or be aware of.
      // Limit warnings to 120 characters if possible.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/compare/comparator.go

    		return err
    	}
    	if err := c.ListenerDiff(); err != nil {
    		return err
    	}
    	return c.RouteDiff()
    }
    
    // nonstrictResolver is an AnyResolver that ignores unknown proto messages
    type nonstrictResolver struct{}
    
    var envoyResolver nonstrictResolver
    
    func (m *nonstrictResolver) Resolve(typeURL string) (legacyproto.Message, error) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 3.7K bytes
    - Viewed (1)
  7. common-protos/k8s.io/api/events/v1/generated.proto

    option go_package = "k8s.io/api/events/v1";
    
    // Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
    // Events have a limited retention time and triggers and messages may evolve
    // with time.  Event consumers should not rely on the timing of an event
    // with a given Reason reflecting a consistent underlying trigger, or the
    // continued existence of events with that Reason.  Events should be
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  8. istioctl/pkg/tag/tag.go

    		return err
    	}
    	sa.AddRunningKubeSourceWithRevision(k, revision, false)
    	res, err := sa.Analyze(make(chan struct{}))
    	if err != nil {
    		return err
    	}
    	relevantMessages := diag.Messages{}
    	for _, msg := range res.Messages.FilterOutLowerThan(diag.Error) {
    		if msg.Resource.Metadata.FullName.Name == resource.LocalName(name) {
    			relevantMessages = append(relevantMessages, msg)
    		}
    	}
    	if len(relevantMessages) > 0 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  9. istioctl/pkg/analyze/analyze.go

    						fmt.Fprintln(cmd.ErrOrStderr(), "\t", a)
    					}
    				}
    				fmt.Fprintln(cmd.ErrOrStderr())
    			}
    
    			// Get messages for output
    			outputMessages := result.Messages.SetDocRef("istioctl-analyze").FilterOutLowerThan(outputThreshold.Level)
    
    			// Print all the messages to stdout in the specified format
    			output, err := formatting.Print(outputMessages, msgOutputFormat, colorize)
    			if err != nil {
    				return err
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/ztunnelserver_test.go

    	if err != nil {
    		panic(err)
    	}
    
    	receivedoob := oob[:oobn]
    	msgs, err := unix.ParseSocketControlMessage(receivedoob)
    	if err != nil {
    		panic(err)
    	}
    
    	// we should get 0 or 1 oob messages
    	if len(msgs) != 0 {
    		assert.Equal(t, len(msgs), 1)
    	}
    
    	var fdss []int
    	for _, msg := range msgs {
    		fds, err := unix.ParseUnixRights(&msg)
    		if err != nil {
    			panic(err)
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
Back to top