- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 91 for given (0.14 sec)
-
cmd/xl-storage-errors.go
return errors.Is(err, syscall.EIO) } // Check if the given error corresponds to EISDIR (is a directory). func isSysErrIsDir(err error) bool { return errors.Is(err, syscall.EISDIR) } // Check if the given error corresponds to ENOTDIR (is not a directory). func isSysErrNotDir(err error) bool { return errors.Is(err, syscall.ENOTDIR) } // Check if the given error corresponds to the ENAMETOOLONG (name too long).
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Mar 06 16:56:29 GMT 2023 - 3.8K bytes - Viewed (0) -
internal/dsync/locker.go
// NetLocker is dsync compatible locker interface. type NetLocker interface { // Do read lock for given LockArgs. It should return // * a boolean to indicate success/failure of the operation // * an error on failure of lock request operation. RLock(ctx context.Context, args LockArgs) (bool, error) // Do write lock for given LockArgs. It should return // * a boolean to indicate success/failure of the operation
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Jan 18 20:44:38 GMT 2022 - 2.7K bytes - Viewed (0) -
cni/pkg/nodeagent/pod_cache.go
log.Debug("netns inode mismatch, using the new one") } p.addToCacheUnderLock(uid, workload) return workload.Netns } // Update the cache with the given uid and nspath. Return the Netns for the given uid. // If uid is already present, a cached Netns is returned, and the given nspath is ignored. func (p *podNetnsCache) Get(uid string) Netns { // lock current snapshot pod map p.mu.RLock() defer p.mu.RUnlock()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 4.5K bytes - Viewed (0) -
cmd/hasher.go
) // getSHA256Hash returns SHA-256 hash in hex encoding of given data. func getSHA256Hash(data []byte) string { return hex.EncodeToString(getSHA256Sum(data)) } // getSHA256Hash returns SHA-256 sum of given data. func getSHA256Sum(data []byte) []byte { hash := sha256.New() hash.Write(data) return hash.Sum(nil) } // getMD5Sum returns MD5 sum of given data. func getMD5Sum(data []byte) []byte { hash := md5.New()
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri May 27 13:00:19 GMT 2022 - 1.4K bytes - Viewed (0) -
operator/cmd/mesh/operator-common.go
func isControllerInstalled(cs kubernetes.Interface, operatorNamespace string, revision string) (bool, error) { orn := operatorResourceName if revision != "" { orn += "-" + revision } return deploymentExists(cs, operatorNamespace, orn) } // renderOperatorManifest renders a manifest to install the operator with the given input arguments.
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Dec 17 02:25:04 GMT 2022 - 3.8K bytes - Viewed (0) -
internal/http/check_port_linux.go
package http import ( "context" "net" "syscall" "time" ) // CheckPortAvailability - check if given host and port is already in use. // Note: The check method tries to listen on given port and closes it. // It is possible to have a disconnected client in this tiny window of time. func CheckPortAvailability(host, port string, opts TCPOptions) (err error) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 03 21:12:25 GMT 2023 - 1.9K bytes - Viewed (0) -
internal/event/targetidset.go
func (set TargetIDSet) add(targetID TargetID) { set[targetID] = struct{}{} } // Union - returns union with given set as new set. func (set TargetIDSet) Union(sset TargetIDSet) TargetIDSet { nset := set.Clone() for k := range sset { nset.add(k) } return nset } // Difference - returns difference with given set as new set. func (set TargetIDSet) Difference(sset TargetIDSet) TargetIDSet { nset := NewTargetIDSet()
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 1.9K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig_test.go
want *istiodConfigLog }{ { name: "given --reset flag return reset command", args: args{ ctrzClient: ctrzClient, reset: true, outputLogLevel: "", stackTraceLevel: "", outputFormat: "", }, want: &istiodConfigLog{state: &resetState{ client: ctrzClient, }}, }, { name: "given --level flag return outputLogLevel command", args: args{
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 6.2K bytes - Viewed (0) -
cmd/net.go
ipList = set.NewStringSet() for _, ip := range mustGetLocalIPs() { if ip.To4() == nil { ipList.Add(ip.String()) } } return } // getHostIP returns IP address of given host. func getHostIP(host string) (ipList set.StringSet, err error) { addrs, err := globalDNSCache.LookupHost(GlobalContext, host) if err != nil { return ipList, err } ipList = set.NewStringSet()
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Mar 26 15:00:38 GMT 2024 - 9.3K bytes - Viewed (0) -
internal/http/dial_dnscache.go
// function. LookupHost may implement an internal DNS caching implementation, lookupHost // input if nil then net.DefaultResolver.LookupHost is used. // // It dials one by one and returns first connected `net.Conn`. // If it fails to dial all IPs from cache it returns first error. If no baseDialFunc // is given, it sets default dial function. //
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Jul 03 19:30:51 GMT 2023 - 2.6K bytes - Viewed (0)