Documentation ¶
Index ¶
- Constants
- Variables
- func AppendFile(m Message, p string) (io.ReadWriteCloser, string, error)
- func CatFile(m *ice.Message, p string) string
- func CloseFile(m Message, p ice.Any)
- func CopyFile(m *ice.Message, to io.WriteCloser, from io.ReadCloser, bufs, total int, ...)
- func CreateFile(m Message, p string) (io.WriteCloser, string, error)
- func Dir(m *ice.Message, sort string) *ice.Message
- func DirDeepAll(m *ice.Message, root, dir string, cb func(ice.Maps), arg ...string) *ice.Message
- func ExistsFile(m Message, p string) bool
- func IsSourceFile(m *ice.Message, ext string) bool
- func Link(m Message, oldname string, newname string) error
- func MkdirAll(m Message, p string) error
- func NewCloser(c func() error) io.WriteCloser
- func NewReadCloser(r io.Reader) io.ReadCloser
- func NewWriteCloser(w func([]byte) (int, error), c func() error) io.WriteCloser
- func OpenFile(m Message, p string) (io.ReadCloser, error)
- func OptionFiles(m Message, f ...file.File) file.File
- func OptionLoad(m *ice.Message, file string) *ice.Message
- func ReadAll(m *ice.Message, r io.Reader) []byte
- func ReadDir(m Message, p string) ([]os.FileInfo, error)
- func ReadFile(m Message, p string) ([]byte, error)
- func Remove(m Message, p string) error
- func RemoveAll(m Message, p string) error
- func Rename(m Message, oldname string, newname string) error
- func StatFile(m Message, p string) (os.FileInfo, error)
- func Symlink(m Message, oldname string, newname string) error
- func TarExport(m *ice.Message, path string, file ...string)
- func Trash(m *ice.Message, p string) *ice.Message
- func WriteFile(m Message, p string, b []byte) error
- type Message
Constants ¶
View Source
const ( CAT_CONTENT = "cat_content" STDIO = "stdio" MODULE = "module" SOURCE = "source" SCRIPT = "script" BINARY = "binary" TARGET = "target" TAGS = "tags" TEMPLATE = "template" VERSION = "version" MASTER = "master" BRANCH = "branch" REMOTE = "remote" ORIGIN = "origin" REPOS = "repos" )
View Source
const ( SVG = ice.SVG HTML = ice.HTML CSS = ice.CSS JS = ice.JS GO = ice.GO SH = ice.SH SHY = ice.SHY CSV = ice.CSV JSON = ice.JSON PY = "py" MD = "md" TXT = "txt" XML = "xml" YML = "yml" ZML = "zml" IML = "iml" PNG = "png" JPG = "jpg" MP4 = "mp4" PDF = "pdf" PWD = "./" PS = ice.PS PT = ice.PT )
View Source
const ( TYPE_ALL = "all" TYPE_CAT = "cat" TYPE_DIR = "dir" TYPE_BOTH = "both" )
View Source
const ( DIR_ROOT = "dir_root" DIR_TYPE = "dir_type" DIR_DEEP = "dir_deep" DIR_REG = "dir_reg" DIR_DEF_FIELDS = "time,path,size,action" DIR_WEB_FIELDS = "time,size,path,link,action" DIR_CLI_FIELDS = "path,size,time" )
View Source
const ( ROOT = "root" TREE = "tree" FULL = "full" PATH = "path" FILE = "file" NAME = "name" SIZE = "size" LINE = "line" )
View Source
const ( CONTENT = "content" ALIAS = "alias" )
View Source
const CAT = "cat"
View Source
const COPY = "copy"
View Source
const DEFS = "defs"
View Source
const DIR = "dir"
View Source
const (
FROM = "from"
)
View Source
const GREP = "grep"
View Source
const HEX = "hex"
View Source
const LINK = "link"
View Source
const LOAD = "load"
View Source
const NFS = "nfs"
View Source
const PACK = "pack"
View Source
const PUSH = "push"
View Source
const SAVE = "save"
View Source
const TAR = "tar"
View Source
const TRASH = "trash"
Variables ¶
View Source
var DiskFile = file.NewDiskFile()
View Source
var PackFile = file.NewPackFile()
Functions ¶
func AppendFile ¶ added in v1.2.9
func CopyFile ¶ added in v1.3.0
func CopyFile(m *ice.Message, to io.WriteCloser, from io.ReadCloser, bufs, total int, cb ice.Any)
func CreateFile ¶ added in v1.2.9
func DirDeepAll ¶ added in v1.4.3
func NewCloser ¶ added in v1.3.0
func NewCloser(c func() error) io.WriteCloser
func NewReadCloser ¶ added in v0.5.6
func NewReadCloser(r io.Reader) io.ReadCloser
func NewWriteCloser ¶ added in v1.2.9
Types ¶
Click to show internal directories.
Click to hide internal directories.