- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for SetInfo (0.11 sec)
-
internal/disk/stat_openbsd.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import ( "errors" "fmt" "syscall" ) // 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 - 1.8K bytes - Viewed (0) -
platforms/software/platform-base/src/main/java/org/gradle/platform/base/component/internal/DefaultComponentSpec.java
} } finally { NEXT_COMPONENT_INFO.set(null); } } protected static ComponentInfo getInfo() { return NEXT_COMPONENT_INFO.get(); } public DefaultComponentSpec() { this(getInfo()); } public DefaultComponentSpec(ComponentInfo info) { super(validate(info).componentIdentifier, info.publicType); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 2.9K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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, ®isterapi.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) -
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)