Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 414 for fakePC (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    // Sleep returns after the given duration has passed.
    // Sleep must only be invoked in a goroutine that is counted
    // in the Fake's associated GoRoutineCounter.
    // Unlike the base FakeClock's Sleep, this method does not itself advance the clock
    // but rather leaves that up to other actors (e.g., Run).
    func (fec *Fake) Sleep(duration time.Duration) {
    	doneCh := make(chan struct{})
    	fec.EventAfterDuration(func(time.Time) {
    		fec.clientWG.Add(1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  2. pkg/kube/multicluster/fake.go

    // limitations under the License.
    
    package multicluster
    
    import (
    	"istio.io/istio/pkg/cluster"
    	"istio.io/istio/pkg/kube"
    )
    
    type Fake struct {
    	handlers []handler
    }
    
    func (f *Fake) registerHandler(h handler) {
    	f.handlers = append(f.handlers, h)
    }
    
    func (f *Fake) Add(id cluster.ID, client kube.Client, stop chan struct{}) {
    	for _, handler := range f.handlers {
    		handler.clusterAdded(&Cluster{
    			ID:            id,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. pkg/kubelet/container/testing/os.go

    // Hostname is a fake call that returns nil.
    func (f *FakeOS) Hostname() (name string, err error) {
    	return f.HostName, nil
    }
    
    // Chtimes is a fake call that returns nil.
    func (*FakeOS) Chtimes(path string, atime time.Time, mtime time.Time) error {
    	return nil
    }
    
    // Pipe is a fake call that returns nil.
    func (*FakeOS) Pipe() (r *os.File, w *os.File, err error) {
    	return nil, nil, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 13:37:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. pilot/test/xds/fake.go

    		objects = append(objects, o)
    	}
    	return objects, nil
    }
    
    // DisableAuthorizationForSecret makes the authorization check always pass. Should be used only for tests.
    func DisableAuthorizationForSecret(fake *fake.Clientset) {
    	fake.Fake.PrependReactor("create", "subjectaccessreviews", func(action k8stesting.Action) (bool, runtime.Object, error) {
    		return true, &authorizationv1.SubjectAccessReview{
    			Status: authorizationv1.SubjectAccessReviewStatus{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. security/pkg/server/ca/server_test.go

    			authenticators: nil,
    			code:           codes.Unauthenticated,
    			ca:             &mockca.FakeCA{},
    		},
    		"Unauthenticated request": {
    			authenticators: []security.Authenticator{&mockAuthenticator{
    				errMsg: "Not authorized",
    			}},
    			code: codes.Unauthenticated,
    			ca:   &mockca.FakeCA{},
    		},
    		"CA not ready": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/ipset/testing/fake.go

    	Version string
    	// The key of Sets map is the ip set name
    	Sets map[string]*ipset.IPSet
    	// The key of Entries map is the ip set name where the entries exists
    	Entries map[string]sets.String
    }
    
    // NewFake create a new fake ipset interface - it initialize the FakeIPSet.
    func NewFake(version string) *FakeIPSet {
    	return &FakeIPSet{
    		Version: version,
    		Sets:    make(map[string]*ipset.IPSet),
    		Entries: make(map[string]sets.String),
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/net_test.go

    		},
    		Spec: corev1.PodSpec{ServiceAccountName: "sa"},
    	}
    
    	// this is usually called after add. so manually add the pod uid for now
    	fakens := newFakeNs(123)
    	closed := fakens.closed
    	workload := WorkloadInfo{
    		Workload: podToWorkload(pod),
    		Netns:    fakens,
    	}
    	fixture.podNsMap.UpsertPodCacheWithNetns(string(pod.UID), workload)
    	err := netServer.RemovePodFromMesh(ctx, pod)
    	assert.NoError(t, err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/gotoolchain_path.txt

    # The full test of toolchain version selection is in gotoolchain.txt.
    
    [short] skip
    
    env TESTGO_VERSION=go1.21pre3
    
    # Compile a fake toolchain to put in the path under various names.
    env GOTOOLCHAIN=
    mkdir $WORK/bin
    go build -o $WORK/bin/go1.50.0$GOEXE ./fakego.go  # adds .exe extension implicitly on Windows
    
    [!GOOS:plan9] env PATH=$WORK/bin
    [GOOS:plan9] env path=$WORK/bin
    
    go version
    stdout go1.21pre3
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 06 22:21:42 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. pkg/proxy/ipvs/util/testing/fake.go

    }
    
    // UpdateVirtualServer is a fake implementation, it updates the VirtualServer in the cache store.
    func (f *FakeIPVS) UpdateVirtualServer(serv *utilipvs.VirtualServer) error {
    	if serv == nil {
    		return fmt.Errorf("failed to update service, service can't be nil")
    	}
    	key := toServiceKey(serv)
    	f.Services[key] = serv
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/fake.go

    John Howard <******@****.***> 1716498423 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top