Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for execFunc (0.13 sec)

  1. pkg/kubelet/server/server_test.go

    	return nil, nil
    }
    
    func (fk *fakeKubelet) ListPodSandboxMetrics(ctx context.Context) ([]*runtimeapi.PodSandboxMetrics, error) {
    	return nil, nil
    }
    
    type fakeRuntime struct {
    	execFunc        func(string, []string, io.Reader, io.WriteCloser, io.WriteCloser, bool, <-chan remotecommand.TerminalSize) error
    	attachFunc      func(string, io.Reader, io.WriteCloser, io.WriteCloser, bool, <-chan remotecommand.TerminalSize) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. src/text/template/template.go

    	// We use two maps, one for parsing and one for execution.
    	// This separation makes the API cleaner since it doesn't
    	// expose reflection to the client.
    	muFuncs    sync.RWMutex // protects parseFuncs and execFuncs
    	parseFuncs FuncMap
    	execFuncs  map[string]reflect.Value
    }
    
    // Template is the representation of a parsed template. The *parse.Tree
    // field is exported only for use by [html/template] and should be treated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/instrumented_services.go

    	recordError(operation, err)
    	return err
    }
    
    func (in instrumentedRuntimeService) ExecSync(ctx context.Context, containerID string, cmd []string, timeout time.Duration) ([]byte, []byte, error) {
    	const operation = "exec_sync"
    	defer recordOperation(operation, time.Now())
    
    	stdout, stderr, err := in.service.ExecSync(ctx, containerID, cmd, timeout)
    	recordError(operation, err)
    	return stdout, stderr, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. src/text/template/funcs.go

    func findFunction(name string, tmpl *Template) (v reflect.Value, isBuiltin, ok bool) {
    	if tmpl != nil && tmpl.common != nil {
    		tmpl.muFuncs.RLock()
    		defer tmpl.muFuncs.RUnlock()
    		if fn := tmpl.execFuncs[name]; fn.IsValid() {
    			return fn, false, true
    		}
    	}
    	if fn := builtinFuncs()[name]; fn.IsValid() {
    		return fn, true, true
    	}
    	return reflect.Value{}, false, false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_container.go

    func (m *kubeGenericRuntimeManager) RunInContainer(ctx context.Context, id kubecontainer.ContainerID, cmd []string, timeout time.Duration) ([]byte, error) {
    	stdout, stderr, err := m.runtimeService.ExecSync(ctx, id.ID, cmd, timeout)
    	// NOTE(tallclair): This does not correctly interleave stdout & stderr, but should be sufficient
    	// for logging purposes. A combined output option will need to be added to the ExecSyncRequest
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
Back to top