Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for SetInfo (0.12 sec)

  1. src/syscall/security_windows.go

    		return 0, e
    	}
    	return t, nil
    }
    
    // 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 Sep 12 16:42:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. 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)
  3. internal/disk/stat_linux_32bit.go

    	fsTypeHex := strconv.FormatInt(int64(ftype), 16)
    	fsTypeString, ok := fsType2StringMap[fsTypeHex]
    	if !ok {
    		return "UNKNOWN"
    	}
    	return fsTypeString
    }
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ 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
    - 2.6K bytes
    - Viewed (0)
  4. internal/disk/disk_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk_test
    
    import (
    	"testing"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    func TestFree(t *testing.T) {
    	di, err := disk.GetInfo(t.TempDir(), true)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if di.FSType == "UNKNOWN" {
    		t.Error("Unexpected FSType", di.FSType)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jul 31 22:20:48 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonRegistryContent.java

        public List<DaemonInfo> getInfos() {
            return new LinkedList<DaemonInfo>(infosMap.values());
        }
    
        /**
         * Gets the status for given address. May return null.
         */
        public DaemonInfo getInfo(Address address) {
            return infosMap.get(address);
        }
    
        /**
         * Removes the status
         */
        public void removeInfo(int port) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top