lib9p

Go 9P library.
Log | Files | Refs | LICENSE

fs.go (921B)


      1 package testdata
      2 
      3 import (
      4 	"io/fs"
      5 )
      6 
      7 var FileTree = []struct {
      8 	Path           string
      9 	Mode           fs.FileMode
     10 	Uid, Gid, Muid string
     11 	Content        string
     12 }{
     13 	{".", fs.ModeDir | 0755, "glenda", "glenda", "glenda", ""},
     14 	{"a", 0644, "glenda", "glenda", "glenda", "a\n"},
     15 	{"b", 0600, "ken", "ken", "ken", "b\n"},
     16 	{"c", 0644, "glenda", "glenda", "glenda", ""},
     17 	{"d", fs.ModeDir | 0770, "glenda", "bell", "glenda", ""},
     18 	{"dir", fs.ModeDir | 0755, "rob", "rob", "rob", ""},
     19 	{"dir/file", 0666, "brian", "brian", "dennis", "hogehoge\n"},
     20 }
     21 
     22 var Groups = []struct {
     23 	Name    string
     24 	Leader  string
     25 	Members []string
     26 }{
     27 	{"glenda", "glenda", []string{"glenda"}},
     28 	{"ken", "ken", []string{"ken"}},
     29 	{"brian", "brian", []string{"brian"}},
     30 	{"rob", "rob", []string{"rob"}},
     31 	{"bell", "glenda", []string{"glenda", "ken", "dennis", "brian", "rob"}},
     32 	{"kessoku", "ijichi", []string{"ijichi", "yamada", "gotoh", "kita"}},
     33 }