Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 56 for setInfo (0.15 sec)

  1. internal/disk/stat_windows.go

    	GetDiskFreeSpace = kernel32.NewProc("GetDiskFreeSpaceW")
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `C:\`.
    // It returns free space available to the user (including quota limitations)
    //
    // https://msdn.microsoft.com/en-us/library/windows/desktop/aa364937(v=vs.85).aspx
    func GetInfo(path string, _ bool) (info Info, err error) {
    	// Stat to know if the path exists.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/pluginwatcher/example_plugin.go

    }
    
    // GetPluginInfo returns a PluginInfo object
    func GetPluginInfo(plugin *examplePlugin) cache.PluginInfo {
    	return cache.PluginInfo{
    		SocketPath: plugin.endpoint,
    	}
    }
    
    // GetInfo is the RPC invoked by plugin watcher
    func (e *examplePlugin) GetInfo(ctx context.Context, req *registerapi.InfoRequest) (*registerapi.PluginInfo, error) {
    	return &registerapi.PluginInfo{
    		Type:              e.pluginType,
    		Name:              e.pluginName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 10 07:44:16 UTC 2021
    - 5K bytes
    - Viewed (0)
  3. internal/disk/stat_linux.go

    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"syscall"
    
    	"github.com/prometheus/procfs/blockdevice"
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, firstTime bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go

    		case err := <-m.kubeletRestartWatcher.Errors:
    			klog.ErrorS(err, "inotify error")
    		}
    	}
    }
    
    // GetInfo is the RPC which return pluginInfo
    func (m *Stub) GetInfo(ctx context.Context, req *watcherapi.InfoRequest) (*watcherapi.PluginInfo, error) {
    	klog.InfoS("GetInfo")
    	return &watcherapi.PluginInfo{
    		Type:              watcherapi.DevicePlugin,
    		Name:              m.resourceName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 11:19:10 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  5. pkg/kubelet/pluginmanager/operationexecutor/operation_generator.go

    		}
    		defer conn.Close()
    
    		ctx, cancel := context.WithTimeout(context.Background(), time.Second)
    		defer cancel()
    
    		infoResp, err := client.GetInfo(ctx, &registerapi.InfoRequest{})
    		if err != nil {
    			return fmt.Errorf("RegisterPlugin error -- failed to get plugin info using RPC GetInfo at socket %s, err: %v", socketPath, err)
    		}
    
    		handler, ok := pluginHandlers[infoResp.Type]
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:21:15 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/main/java/org/gradle/platform/base/component/BaseComponentSpec.java

        private final MutableModelNode binaries;
        private final MutableModelNode sources;
    
        public BaseComponentSpec() {
            MutableModelNode modelNode = getInfo().modelNode;
            binaries = ModelMaps.addModelMapNode(modelNode, BINARY_SPEC_MODEL_TYPE, "binaries");
            sources = ModelMaps.addModelMapNode(modelNode, LANGUAGE_SOURCE_SET_MODEL_TYPE, "sources");
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/Crypto.java

            if (provider != null) {
                throw new CIFSUnsupportedCryptoException("Provider can't be re-initialized. Provider has already been initialized with "+ provider.getInfo());
            }
            provider = customProvider;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    	return Token(^uintptr(6 - 1))
    }
    
    // Close releases access to access token.
    func (t Token) Close() error {
    	return CloseHandle(Handle(t))
    }
    
    // getInfo retrieves a specified type of information about an access token.
    func (t Token) getInfo(class uint32, initSize int) (unsafe.Pointer, error) {
    	n := uint32(initSize)
    	for {
    		b := make([]byte, n)
    		e := GetTokenInformation(t, class, &b[0], uint32(len(b)), &n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  9. src/syscall/mksysctl_openbsd.pl

    	net
    	#debug				# Special handling required
    	hw
    	#machdep			# Arch specific
    	user
    	ddb
    	#vfs				# Special handling required
    	fs.posix
    	kern.forkstat
    	kern.intrcnt
    	kern.malloc
    	kern.nchstats
    	kern.seminfo
    	kern.shminfo
    	kern.timecounter
    	kern.tty
    	kern.watchdog
    	net.bpf
    	net.ifq
    	net.inet
    	net.inet.ah
    	net.inet.carp
    	net.inet.divert
    	net.inet.esp
    	net.inet.etherip
    	net.inet.gre
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 5K bytes
    - Viewed (0)
  10. src/math/big/floatconv.go

    func (z *Float) Parse(s string, base int) (f *Float, b int, err error) {
    	// scan doesn't handle ±Inf
    	if len(s) == 3 && (s == "Inf" || s == "inf") {
    		f = z.SetInf(false)
    		return
    	}
    	if len(s) == 4 && (s[0] == '+' || s[0] == '-') && (s[1:] == "Inf" || s[1:] == "inf") {
    		f = z.SetInf(s[0] == '-')
    		return
    	}
    
    	r := strings.NewReader(s)
    	if f, b, err = z.scan(r, base); err != nil {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top