Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 250 for recorder (0.15 sec)

  1. pkg/kubelet/container/testing/mockdirentry.go

    type MockDirEntry struct {
    	ctrl     *gomock.Controller
    	recorder *MockDirEntryMockRecorder
    }
    
    // MockDirEntryMockRecorder is the mock recorder for MockDirEntry.
    type MockDirEntryMockRecorder struct {
    	mock *MockDirEntry
    }
    
    // NewMockDirEntry creates a new mock instance.
    func NewMockDirEntry(ctrl *gomock.Controller) *MockDirEntry {
    	mock := &MockDirEntry{ctrl: ctrl}
    	mock.recorder = &MockDirEntryMockRecorder{mock}
    	return mock
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filters/warning.go

    		recorder := &recorder{writer: w}
    		req = req.WithContext(warning.WithWarningRecorder(req.Context(), recorder))
    		handler.ServeHTTP(w, req)
    	})
    }
    
    var (
    	truncateAtTotalRunes = 4 * 1024
    	truncateItemRunes    = 256
    )
    
    type recordedWarning struct {
    	agent string
    	text  string
    }
    
    type recorder struct {
    	// lock guards calls to AddWarning from multiple threads
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 01 16:14:06 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go

    		record.annotations = ac.Event.Annotations
    		record.warnings = recorder.extractWarnings()
    
    		if !a.cacheErrs && record.err != nil {
    			return record, nil
    		}
    
    		switch {
    		case record.ok && a.successTTL > 0:
    			a.cache.set(key, record, a.successTTL)
    		case !record.ok && a.failureTTL > 0:
    			a.cache.set(key, record, a.failureTTL)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/watch/filter.go

    		}
    	}
    }
    
    // Recorder records all events that are sent from the watch until it is closed.
    type Recorder struct {
    	Interface
    
    	lock   sync.Mutex
    	events []Event
    }
    
    var _ Interface = &Recorder{}
    
    // NewRecorder wraps an Interface and records any changes sent across it.
    func NewRecorder(w Interface) *Recorder {
    	r := &Recorder{}
    	r.Interface = Filter(w, r.record)
    	return r
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  5. pkg/kubelet/oom/oom_watcher_linux.go

    // the oom streamer.
    func NewWatcher(recorder record.EventRecorder) (Watcher, error) {
    	// for test purpose
    	_, ok := recorder.(*record.FakeRecorder)
    	if ok {
    		return nil, nil
    	}
    
    	oomStreamer, err := oomparser.New()
    	if err != nil {
    		return nil, err
    	}
    
    	watcher := &realWatcher{
    		recorder:    recorder,
    		oomStreamer: oomStreamer,
    	}
    
    	return watcher, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 23:17:05 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go

    func NewRecordFlags() *RecordFlags {
    	record := false
    
    	return &RecordFlags{
    		Record: &record,
    	}
    }
    
    // Recorder is used to record why a runtime.Object was changed in an annotation.
    type Recorder interface {
    	// Record records why a runtime.Object was changed in an annotation.
    	Record(runtime.Object) error
    	MakeRecordMergePatch(runtime.Object) ([]byte, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. pkg/volume/util/operationexecutor/node_expander.go

    	pvcAlreadyUpdated bool
    }
    
    func newNodeExpander(resizeOp nodeResizeOperationOpts, client clientset.Interface, recorder record.EventRecorder) *NodeExpander {
    	return &NodeExpander{
    		kubeClient:              client,
    		nodeResizeOperationOpts: resizeOp,
    		recorder:                recorder,
    	}
    }
    
    // testResponseData is merely used for doing sanity checks in unit tests
    type testResponseData struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 19:30:35 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/fake_kuberuntime_manager.go

    	ctx := context.Background()
    	recorder := &record.FakeRecorder{}
    	logManager, err := logs.NewContainerLogManager(runtimeService, osInterface, "1", 2, 10, metav1.Duration{Duration: 10 * time.Second})
    	if err != nil {
    		return nil, err
    	}
    	kubeRuntimeManager := &kubeGenericRuntimeManager{
    		recorder:               recorder,
    		cpuCFSQuota:            false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:55:59 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. pkg/kubelet/cadvisor/testing/cadvisor_mock.go

    	ctrl     *gomock.Controller
    	recorder *MockInterfaceMockRecorder
    }
    
    // MockInterfaceMockRecorder is the mock recorder for MockInterface.
    type MockInterfaceMockRecorder struct {
    	mock *MockInterface
    }
    
    // NewMockInterface creates a new mock instance.
    func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
    	mock := &MockInterface{ctrl: ctrl}
    	mock.recorder = &MockInterfaceMockRecorder{mock}
    	return mock
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. pkg/proxy/healthcheck/service_health.go

    	return &server{
    		hostname:      hostname,
    		recorder:      recorder,
    		listener:      listener,
    		httpFactory:   factory,
    		healthzServer: healthzServer,
    		services:      map[types.NamespacedName]*hcInstance{},
    		nodeIPs:       nodeIPs,
    	}
    }
    
    // NewServiceHealthServer allocates a new service healthcheck server manager
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 30 09:25:48 UTC 2023
    - 8.9K bytes
    - Viewed (0)
Back to top