Documentation ¶
Index ¶
- Constants
- Variables
- func AppendFile(m *ice.Message, p string) (io.ReadWriteCloser, string, error)
- func CloseFile(m *ice.Message, p ice.Any)
- func CopyFile(m *ice.Message, to io.WriteCloser, from io.ReadCloser, cb func(int))
- func CreateFile(m *ice.Message, p string) (io.WriteCloser, string, error)
- func Dir(m *ice.Message, sort string) *ice.Message
- func ExistsFile(m *ice.Message, p string) bool
- func Link(m *ice.Message, oldname string, newname string) error
- func MkdirAll(m *ice.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 *ice.Message, p string) (io.ReadCloser, error)
- func OptionFiles(m *ice.Message, f ...file.File) file.File
- func OptionLoad(m *ice.Message, file string) *ice.Message
- func ReadDir(m *ice.Message, p string) ([]os.FileInfo, error)
- func ReadFile(m *ice.Message, p string) ([]byte, error)
- func Remove(m *ice.Message, p string) error
- func RemoveAll(m *ice.Message, p string) error
- func Rename(m *ice.Message, oldname string, newname string) error
- func StatFile(m *ice.Message, p string) (os.FileInfo, error)
- func Symlink(m *ice.Message, oldname string, newname string) error
- func WriteFile(m *ice.Message, p string, b []byte) error
Constants ¶
View Source
const ( CAT_CONTENT = "cat_content" STDIO = "stdio" SOURCE = "source" SCRIPT = "script" BINARY = "binary" TARGET = "target" TAGS = "tags" TEMPLATE = "template" MASTER = "master" BRANCH = "branch" REPOS = "repos" )
View Source
const ( HTML = ice.HTML CSS = ice.CSS JS = ice.JS GO = ice.GO SH = ice.SH SHY = ice.SHY SVG = ice.SVG CSV = ice.CSV JSON = ice.JSON PY = "py" MD = "md" TXT = "txt" IML = "iml" XML = "xml" YML = "yml" ZML = "zml" 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,action,link" 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" FROM = "from" )
View Source
const CAT = "cat"
View Source
const COPY = "copy"
View Source
const DEFS = "defs"
View Source
const DIR = "dir"
View Source
const FIND = "find"
View Source
const GREP = "grep"
View Source
const LINK = "link"
View Source
const PACK = "pack"
View Source
const PUSH = "push"
View Source
const SAVE = "save"
View Source
const TAIL = "tail"
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, cb func(int))
func CreateFile ¶ added in v1.2.9
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.