Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for Seventy (0.2 sec)

  1. tests/migrate_test.go

    	}
    	err = DB.Table("events").AutoMigrate(&Event2{})
    	if err != nil {
    		t.Errorf("AutoMigrate err:%v", err)
    	}
    
    	DB.Table("events").Save(&Event2{})
    	DB.Table("events").Save(&Event2{})
    	DB.Table("events").Save(&Event2{})
    
    	events := make([]*Event, 0)
    	DB.Table("events").Find(&events)
    
    	AssertEqual(t, 3, len(events))
    	for _, v := range events {
    		AssertEqual(t, v.ID, v.UID)
    	}
    }
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. cmd/globals.go

    	"github.com/minio/minio/internal/config/subnet"
    	xhttp "github.com/minio/minio/internal/http"
    	etcd "go.etcd.io/etcd/client/v3"
    
    	levent "github.com/minio/minio/internal/config/lambda/event"
    	"github.com/minio/minio/internal/event"
    	"github.com/minio/minio/internal/pubsub"
    	"github.com/minio/pkg/v2/certs"
    	"github.com/minio/pkg/v2/env"
    	xnet "github.com/minio/pkg/v2/net"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  3. cmd/metrics-v3-cluster-notification.go

    package cmd
    
    import (
    	"context"
    )
    
    const (
    	notificationCurrentSendInProgress = "current_send_in_progress"
    	notificationEventsErrorsTotal     = "events_errors_total"
    	notificationEventsSentTotal       = "events_sent_total"
    	notificationEventsSkippedTotal    = "events_skipped_total"
    )
    
    var (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:10:35 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. cni/pkg/util/pluginutil.go

    	return &Watcher{
    		watcher: watcher,
    		Events:  fileModified,
    		Errors:  errChan,
    	}, nil
    }
    
    func watchFiles(watcher *fsnotify.Watcher, fileModified chan struct{}, errChan chan error) {
    	for {
    		select {
    		case event, ok := <-watcher.Events:
    			if !ok {
    				return
    			}
    			if event.Op&(fsnotify.Create|fsnotify.Write|fsnotify.Remove) != 0 {
    				log.Infof("file modified: %v", event.Name)
    				fileModified <- struct{}{}
    			}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. cni/pkg/plugin/cnieventclient.go

    			},
    		},
    		Timeout: 1000 * time.Millisecond,
    	}
    	eventC := CNIEventClient{
    		client: c,
    		url:    "http://unix" + path,
    	}
    	return eventC
    }
    
    func PushCNIEvent(cniClient CNIEventClient, event *skel.CmdArgs, prevResIps []*cniv1.IPConfig, podName, podNamespace string) error {
    	if event == nil {
    		return fmt.Errorf("unable to push CNI event, CmdArgs event was nil")
    	}
    
    	var ncconfigs []nodeagent.IPConfig
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. cni/pkg/plugin/cnieventclient_test.go

    	"istio.io/istio/cni/pkg/nodeagent"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func fakeCNIEventClient(address string) CNIEventClient {
    	c := http.DefaultClient
    
    	eventC := CNIEventClient{
    		client: c,
    		url:    address + constants.CNIAddEventPath,
    	}
    	return eventC
    }
    
    var fakeCmdArgs = &skel.CmdArgs{
    	Netns:       "someNetNS",
    	IfName:      "ethBro",
    	ContainerID: "bbb-eee-www",
    }
    
    var (
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/cni-watcher.go

    	return msg, nil
    }
    
    func (s *CniPluginServer) ReconcileCNIAddEvent(ctx context.Context, addCmd CNIPluginAddEvent) error {
    	log := log.WithLabels("cni-event", addCmd)
    
    	log.Debugf("netns: %s", addCmd.Netns)
    
    	// The CNI node plugin should have already checked the pod against the k8s API before forwarding us the event,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  8. internal/event/target/webhook.go

    	}
    	return err
    }
    
    // send - sends an event to the webhook.
    func (target *WebhookTarget) send(eventData event.Event) error {
    	objectName, err := url.QueryUnescape(eventData.S3.Object.Key)
    	if err != nil {
    		return err
    	}
    	key := eventData.S3.Bucket.Name + "/" + objectName
    
    	data, err := json.Marshal(event.Log{EventName: eventData.EventName, Key: key, Records: []event.Event{eventData}})
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 20 22:40:07 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    				Description: MetricDescription{
    					Namespace: minioNamespace,
    					Subsystem: notifySubsystem,
    					Name:      "events_errors_total",
    					Help:      "Events that were failed to be sent to the targets (deprecated, please use 'minio_notify_target_failed_events' instead)",
    					Type:      counterMetric,
    				},
    				Value: float64(nstats.EventsErrorsTotal),
    			})
    			metrics = append(metrics, MetricV2{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  10. cmd/mrf.go

    	if m == nil {
    		return
    	}
    
    	select {
    	case m.opCh <- op:
    	default:
    	}
    }
    
    var healSleeper = newDynamicSleeper(5, time.Second, false)
    
    // healRoutine listens to new disks reconnection events and
    // issues healing requests for queued objects belonging to the
    // corresponding erasure set
    func (m *mrfState) healRoutine(z *erasureServerPools) {
    	for {
    		select {
    		case <-GlobalContext.Done():
    			return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top