Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for updateStats (0.21 sec)

  1. pkg/kubelet/server/stats/testing/mock_summary_provider.go

    func (m *MockSummaryProvider) Get(ctx context.Context, updateStats bool) (*v1alpha1.Summary, error) {
    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "Get", ctx, updateStats)
    	ret0, _ := ret[0].(*v1alpha1.Summary)
    	ret1, _ := ret[1].(error)
    	return ret0, ret1
    }
    
    // Get indicates an expected call of Get.
    func (mr *MockSummaryProviderMockRecorder) Get(ctx, updateStats any) *gomock.Call {
    	mr.mock.ctrl.T.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. pkg/kubelet/server/stats/summary.go

    )
    
    // SummaryProvider provides summaries of the stats from Kubelet.
    type SummaryProvider interface {
    	// Get provides a new Summary with the stats from Kubelet,
    	// and will update some stats if updateStats is true
    	Get(ctx context.Context, updateStats bool) (*statsapi.Summary, error)
    	// GetCPUAndMemoryStats provides a new Summary with the CPU and memory stats from Kubelet,
    	GetCPUAndMemoryStats(ctx context.Context) (*statsapi.Summary, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/provider.go

    // this function doesn't generate filesystem stats.
    func (p *Provider) GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error) {
    	info, err := getCgroupInfo(p.cadvisor, cgroupName, updateStats)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to get cgroup stats for %q: %v", cgroupName, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 13:56:22 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. pkg/kubelet/server/stats/handler.go

    	// with the specified cgroupName.
    	GetCgroupStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, *statsapi.NetworkStats, error)
    	// GetCgroupCPUAndMemoryStats returns the CPU and memory stats of the cgroup with the specified cgroupName.
    	GetCgroupCPUAndMemoryStats(cgroupName string, updateStats bool) (*statsapi.ContainerStats, error)
    
    	// RootFsStats returns the stats of the node root filesystem.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 21:31:38 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. tensorflow/cc/training/queue_runner.cc

      if (coord_ != nullptr) {
        coord_->WaitForStop();
      }
      if (!cancel_op_name_.empty()) {
        UpdateStatus(RealRun(sess, cancel_op_name_, false));
      }
      stopped_ = true;
    }
    
    Status QueueRunner::Join() {
      thread_pool_.reset();
      mutex_lock l(mu_);
      return status_;
    }
    
    void QueueRunner::UpdateStatus(const Status& status) {
      {
        mutex_lock l(mu_);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. pkg/kube/kclient/clienttest/test_helpers.go

    	res, err := t.c.Update(object)
    	if err != nil {
    		t.t.Fatalf("update %v/%v: %v", object.GetNamespace(), object.GetName(), err)
    	}
    	return res
    }
    
    func (t TestWriter[T]) UpdateStatus(object T) T {
    	t.t.Helper()
    	res, err := t.c.UpdateStatus(object)
    	if err != nil {
    		t.t.Fatalf("update status %v/%v: %v", object.GetNamespace(), object.GetName(), err)
    	}
    	return res
    }
    
    func (t TestWriter[T]) CreateOrUpdate(object T) T {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. pkg/controller/storageversionmigrator/storageversionmigrator.go

    		}
    	} else {
    		// we can't migrate a resource that doesn't exist in the GC
    		_, err = svmc.kubeClient.StoragemigrationV1alpha1().
    			StorageVersionMigrations().
    			UpdateStatus(
    				ctx,
    				setStatusConditions(toBeProcessedSVM, svmv1alpha1.MigrationFailed, migrationFailedStatusReason),
    				metav1.UpdateOptions{},
    			)
    		if err != nil {
    			return err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/fake_customresourcedefinition.go

    	if obj == nil {
    		return emptyResult, err
    	}
    	return obj.(*v1beta1.CustomResourceDefinition), err
    }
    
    // UpdateStatus was generated because the type contains a Status member.
    // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. pkg/kube/kclient/interfaces.go

    	Create(object T) (T, error)
    	// Update updates a resource, returning the newly applied resource.
    	Update(object T) (T, error)
    	// UpdateStatus updates a resource's status, returning the newly applied resource.
    	UpdateStatus(object T) (T, error)
    	// Patch patches the resource, returning the newly applied resource.
    	Patch(name, namespace string, pt apitypes.PatchType, data []byte) (T, error)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 05:09:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_customresourcedefinition.go

    	if obj == nil {
    		return emptyResult, err
    	}
    	return obj.(*v1.CustomResourceDefinition), err
    }
    
    // UpdateStatus was generated because the type contains a Status member.
    // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top