- Sort Score
- Result 10 results
- Languages All
Results 1161 - 1170 of 1,384 for funcs (0.02 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 } reservedBlocks := uint64(s.F_bfree) - uint64(s.F_bavail)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.8K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns_linux.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import ( "fmt" "io/fs" "syscall" ) func GetInode(fi fs.FileInfo) (uint64, error) { if stat, ok := fi.Sys().(*syscall.Stat_t); ok { return stat.Ino, nil } return 0, fmt.Errorf("unable to get inode")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 814 bytes - Viewed (0) -
internal/crypto/sse_test.go
package crypto import ( "net/http" "testing" ) func TestS3String(t *testing.T) { const Domain = "SSE-S3" if domain := S3.String(); domain != Domain { t.Errorf("S3's string method returns wrong domain: got '%s' - want '%s'", domain, Domain) } } func TestSSECString(t *testing.T) { const Domain = "SSE-C" if domain := SSEC.String(); domain != Domain {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 8.4K bytes - Viewed (0) -
schema/utils_test.go
package schema import ( "reflect" "testing" ) func TestRemoveSettingFromTag(t *testing.T) { tags := map[string]string{ `gorm:"before:value;column:db;after:value" other:"before:value;column:db;after:value"`: `gorm:"before:value;after:value" other:"before:value;column:db;after:value"`, `gorm:"before:value;column:db;" other:"before:value;column:db;after:value"`: `gorm:"before:value;" other:"before:value;column:db;after:value"`,
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Fri Jul 31 10:19:25 UTC 2020 - 1.5K bytes - Viewed (0) -
cni/pkg/nodeagent/netns_linux_test.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import "testing" func TestOpenNetns(t *testing.T) { ns, err := OpenNetns("/proc/self/ns/net") if err != nil { t.Fatalf("unexpected error: %v", err) } // the inode for netns is proc dynamic, so it needs to be higher than
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 976 bytes - Viewed (0) -
internal/config/etcd/etcd_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package etcd import ( "reflect" "testing" ) // TestParseEndpoints - tests parseEndpoints function with valid and invalid inputs. func TestParseEndpoints(t *testing.T) { testCases := []struct { s string endpoints []string secure bool success bool }{ // Invalid inputs
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.1K bytes - Viewed (0) -
internal/mountinfo/mountinfo_windows.go
// this is a dummy function and returns nil for now. func CheckCrossDevice(paths []string) error { return nil } // mountPointCache contains results of IsLikelyMountPoint var mountPointCache sync.Map // IsLikelyMountPoint determines if a directory is a mountpoint. func IsLikelyMountPoint(path string) bool { path = filepath.Dir(path) if v, ok := mountPointCache.Load(path); ok {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 2K bytes - Viewed (0) -
internal/rest/client_test.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 1.9K bytes - Viewed (0) -
internal/config/scanner/scanner.go
// Deprecated Oct 2022 config.KV{ Key: Cycle, Value: "", HiddenIfEmpty: true, }, } // LookupConfig - lookup config and override with valid environment settings if any. func LookupConfig(kvs config.KVS) (cfg Config, err error) { cfg = Config{ ExcessVersions: 100, ExcessFolders: 50000, IdleMode: 0, // Default is on }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.5K bytes - Viewed (0) -
api/next/67813.txt
pkg net/http, type HTTP2Config struct #67813 pkg net/http, type HTTP2Config struct, CountError func(string) #67813 pkg net/http, type HTTP2Config struct, MaxConcurrentStreams int #67813 pkg net/http, type HTTP2Config struct, MaxDecoderHeaderTableSize int #67813 pkg net/http, type HTTP2Config struct, MaxEncoderHeaderTableSize int #67813 pkg net/http, type HTTP2Config struct, MaxReadFrameSize int #67813
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Aug 29 17:38:46 UTC 2024 - 989 bytes - Viewed (0)