Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 161 for fs (0.14 sec)

  1. manifests/manifest.go

    package manifests
    
    import (
    	"embed"
    	"io/fs"
    	"os"
    )
    
    // FS embeds the manifests
    //
    //go:embed all:charts/* profiles/*
    var FS embed.FS
    
    // BuiltinOrDir returns a FS for the provided directory. If no directory is passed, the compiled in
    // FS will be used
    func BuiltinOrDir(dir string) fs.FS {
    	if dir == "" {
    		return FS
    	}
    	return os.DirFS(dir)
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Mar 15 02:30:16 GMT 2023
    - 935 bytes
    - Viewed (0)
  2. src/archive/tar/common.go

    	switch m := fs.FileMode(fi.h.Mode) &^ 07777; m {
    	case c_ISDIR:
    		mode |= fs.ModeDir
    	case c_ISFIFO:
    		mode |= fs.ModeNamedPipe
    	case c_ISLNK:
    		mode |= fs.ModeSymlink
    	case c_ISBLK:
    		mode |= fs.ModeDevice
    	case c_ISCHR:
    		mode |= fs.ModeDevice
    		mode |= fs.ModeCharDevice
    	case c_ISSOCK:
    		mode |= fs.ModeSocket
    	}
    
    	switch fi.h.Typeflag {
    	case TypeSymlink:
    		mode |= fs.ModeSymlink
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  3. cni/pkg/nodeagent/podcgroupns_other.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package nodeagent
    
    import (
    	"fmt"
    	"io/fs"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	return 0, fmt.Errorf("unable to get inode os not supported")
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 781 bytes
    - Viewed (0)
  4. docs_src/generate_clients/tutorial004.js

    import * as fs from 'fs'
    
    async function modifyOpenAPIFile(filePath) {
      try {
        const data = await fs.promises.readFile(filePath)
        const openapiContent = JSON.parse(data)
    
        const paths = openapiContent.paths
        for (const pathKey of Object.keys(paths)) {
          const pathData = paths[pathKey]
          for (const method of Object.keys(pathData)) {
            const operation = pathData[method]
            if (operation.tags && operation.tags.length > 0) {
    JavaScript
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 14 11:40:05 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns.go

    type PodNetnsEntry struct {
    	uid     types.UID
    	netns   fs.File
    	netnsfd uintptr
    	inode   uint64
    }
    
    func (p *PodNetnsProcFinder) processEntry(proc fs.FS, netnsObserved sets.Set[uint64], filter sets.Set[types.UID], entry fs.DirEntry) (*PodNetnsEntry, error) {
    	if !isProcess(entry) {
    		return nil, nil
    	}
    
    	netnsName := path.Join(entry.Name(), "ns", "net")
    	fi, err := fs.Stat(proc, netnsName)
    	if err != nil {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/cni-watcher_test.go

    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		util.GetPodIPsIfPresent(pod),
    		valid.Netns,
    	).Return(nil)
    
    	dpServer := &meshDataplane{
    		kubeClient: client.Kube(),
    		netServer:  fs,
    	}
    
    	handlers := setupHandlers(ctx, client, dpServer, "istio-system")
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Feb 02 08:18:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/archive/tar/tar_test.go

    			ModTime:  time.Unix(1360600852, 0),
    			Typeflag: TypeSymlink,
    		},
    		fm: 0777 | fs.ModeSymlink,
    	}, {
    		// character device node.
    		h: &Header{
    			Name:     "dev/null",
    			Mode:     0666,
    			Size:     0,
    			ModTime:  time.Unix(1360578951, 0),
    			Typeflag: TypeChar,
    		},
    		fm: 0666 | fs.ModeDevice | fs.ModeCharDevice,
    	}, {
    		// block device node.
    		h: &Header{
    			Name:     "dev/sda",
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  8. lib/time/mkzip.go

    // external zip tool is used or the ordering of file names in a directory
    // or the current time.
    package main
    
    import (
    	"archive/zip"
    	"bytes"
    	"flag"
    	"fmt"
    	"hash/crc32"
    	"io/fs"
    	"log"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go run mkzip.go zoneinfo.zip\n")
    	os.Exit(2)
    }
    
    func main() {
    	log.SetPrefix("mkzip: ")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. 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")
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 814 bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java

    class Trans2QueryFSInformationResponse extends SmbComTransactionResponse {
    
        // information levels
        static final int SMB_INFO_ALLOCATION = 1;
        static final int SMB_QUERY_FS_SIZE_INFO = 0x103;
        static final int SMB_FS_FULL_SIZE_INFORMATION = 1007;
    
        class SmbInfoAllocation implements AllocInfo {
            long alloc;                  // Also handles SmbQueryFSSizeInfo
            long free;
            int sectPerAlloc;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.1K bytes
    - Viewed (0)
Back to top