Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for gotSock (0.2 sec)

  1. pkg/kubelet/stats/provider_test.go

    	cadvisorapiv2 "github.com/google/cadvisor/info/v2"
    	fuzz "github.com/google/gofuzz"
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    	"go.uber.org/mock/gomock"
    
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	statsapi "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    	cadvisortest "k8s.io/kubernetes/pkg/kubelet/cadvisor/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    limitations under the License.
    */
    
    package stats
    
    import (
    	"context"
    	"runtime"
    	"testing"
    
    	cadvisorapiv2 "github.com/google/cadvisor/info/v2"
    	"github.com/stretchr/testify/assert"
    	"go.uber.org/mock/gomock"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  3. pkg/kubelet/pleg/generic_test.go

    package pleg
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"reflect"
    	"sort"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/stretchr/testify/assert"
    	"go.uber.org/mock/gomock"
    
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/component-base/metrics/testutil"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    	containertest "k8s.io/kubernetes/pkg/kubelet/container/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  4. pkg/kubelet/apis/podresources/server_v1_test.go

    limitations under the License.
    */
    
    package podresources
    
    import (
    	"context"
    	"fmt"
    	"reflect"
    	"sort"
    	"testing"
    
    	"go.uber.org/mock/gomock"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  5. pkg/kubelet/metrics/collectors/resource_metrics_test.go

    limitations under the License.
    */
    
    package collectors
    
    import (
    	"context"
    	"fmt"
    	"strings"
    	"testing"
    	"time"
    
    	"go.uber.org/mock/gomock"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/component-base/metrics/testutil"
    	statsapi "k8s.io/kubelet/pkg/apis/stats/v1alpha1"
    	summaryprovidertest "k8s.io/kubernetes/pkg/kubelet/server/stats/testing"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  6. cmd/erasure-multipart.go

    	if opts.CheckPrecondFn != nil {
    		if !opts.NoLock {
    			ns := er.NewNSLock(bucket, object)
    			lkctx, err := ns.GetLock(ctx, globalOperationTimeout)
    			if err != nil {
    				return nil, err
    			}
    			ctx = lkctx.Context()
    			defer ns.Unlock(lkctx)
    			opts.NoLock = true
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  7. cmd/metacache-entries_test.go

    				if i > 0 {
    					rng.Shuffle(len(tt.m), func(i, j int) {
    						tt.m[i], tt.m[j] = tt.m[j], tt.m[i]
    					})
    				}
    				gotSelected, gotOk := tt.m.resolve(&tt.r)
    				if gotOk != tt.wantOk {
    					t.Errorf("resolve() gotOk = %v, want %v", gotOk, tt.wantOk)
    				}
    				if gotSelected != nil {
    					gotSelected.cached = nil
    					gotSelected.reusable = false
    				}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 31.6K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_gc_test.go

    limitations under the License.
    */
    
    package kuberuntime
    
    import (
    	"context"
    	"os"
    	"path/filepath"
    	"testing"
    	"time"
    
    	"github.com/stretchr/testify/assert"
    	"go.uber.org/mock/gomock"
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/types"
    	runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  9. internal/dsync/drwmutex.go

    	Timeout       time.Duration
    	RetryInterval time.Duration
    }
    
    // GetLock tries to get a write lock on dm before the timeout elapses.
    //
    // If the lock is already in use, the calling go routine
    // blocks until either the mutex becomes available and return success or
    // more time has passed than the timeout value and return false.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-rebalance.go

    			z.rebalMeta.PoolStats = append(z.rebalMeta.PoolStats, &rebalanceStats{})
    			ok = true
    		}
    	}
    	if ok {
    		lock := z.serverPools[0].NewNSLock(minioMetaBucket, rebalMetaName)
    		lkCtx, err := lock.GetLock(ctx, globalOperationTimeout)
    		if err != nil {
    			rebalanceLogIf(ctx, fmt.Errorf("failed to acquire write lock on %s/%s: %w", minioMetaBucket, rebalMetaName, err))
    			return err
    		}
    		defer lock.Unlock(lkCtx)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
Back to top