Documentation ¶
Index ¶
- Constants
- Variables
- func Append(m *ice.Message, p string, cb ice.Any)
- func AppendFile(m optionMessage, p string) (io.ReadWriteCloser, string, error)
- func Close(m optionMessage, p ice.Any)
- func Copy(m *ice.Message, w io.Writer, r io.Reader, cb ice.Any)
- func CopyFile(m *ice.Message, to, from string, cb func([]byte, int) []byte)
- func CopyStream(m *ice.Message, to io.WriteCloser, from io.ReadCloser, cache, total int, ...)
- func Create(m *ice.Message, p string, cb ice.Any)
- func CreateFile(m optionMessage, p string) (io.WriteCloser, string, error)
- func Dir(m *ice.Message, field string) *ice.Message
- func DirDeepAll(m *ice.Message, root, dir string, cb func(ice.Maps), arg ...string) *ice.Message
- func DirList(m *ice.Message, arg ...string) bool
- func Document(m *ice.Message, p string, arg ...ice.Any) string
- func Exists(m optionMessage, p string, cb ...func(string)) bool
- func ExistsFile(m optionMessage, p string) bool
- func IsSourceFile(m *ice.Message, ext string) bool
- func Link(m optionMessage, oldname string, newname string) error
- func MkdirAll(m optionMessage, p string) string
- func NewReadCloser(r io.Reader) io.ReadCloser
- func NewWriteCloser(w func([]byte) (int, error), c func() error) io.WriteCloser
- func Open(m *ice.Message, p string, cb ice.Any)
- func OpenFile(m *ice.Message, p string) (io.ReadCloser, error)
- func OptionFiles(m optionMessage, f ...file.File) file.File
- func OptionLoad(m *ice.Message, p string) *ice.Message
- func Pipe(m *ice.Message, cb ice.Any) io.WriteCloser
- func Prefix(arg ...string) string
- func ReadAll(m *ice.Message, r io.Reader) []byte
- func ReadDir(m optionMessage, p string) ([]os.FileInfo, error)
- func ReadFile(m *ice.Message, p string) (b []byte, e error)
- func Relative(m *ice.Message, p string) string
- func Remove(m optionMessage, p string) error
- func RemoveAll(m optionMessage, p string) error
- func Rename(m optionMessage, oldname string, newname string) error
- func Rewrite(m *ice.Message, p string, cb func(string) string)
- func Save(m *ice.Message, w io.Writer, s string, cb ice.Any)
- func Show(m *ice.Message, file string) bool
- func SplitPath(m *ice.Message, p string) []string
- func StatFile(m optionMessage, p string) (os.FileInfo, error)
- func Symlink(m optionMessage, oldname string, newname string) error
- func TarExport(m *ice.Message, path string, file ...string)
- func Template(m *ice.Message, p string, data ...ice.Any) string
- func Trash(m *ice.Message, p string, arg ...string) *ice.Message
- func WriteFile(m optionMessage, p string, b []byte) error
Constants ¶
View Source
const ( CAT_CONTENT = "cat_content" CONFIGURE = "configure" STDIO = "stdio" TAGS = "tags" MODULE = "module" SOURCE = "source" TARGET = "target" BINARY = "binary" SCRIPT = "script" REPOS = "repos" REMOTE = "remote" ORIGIN = "origin" BRANCH = "branch" MASTER = "master" VERSION = "version" )
View Source
const ( HTML = ice.HTML CSS = ice.CSS SVG = ice.SVG JS = ice.JS GO = ice.GO SH = ice.SH SHY = ice.SHY CSV = ice.CSV JSON = ice.JSON PROTO = "proto" YAML = "yaml" CONF = "conf" XML = "xml" YML = "yml" TXT = "txt" MD = "md" PY = "py" PNG = "png" JPG = "jpg" MP4 = "mp4" MOV = "mov" PDF = "pdf" DF = ice.DF PS = ice.PS PT = ice.PT )
View Source
const ( PWD = "./" SRC = "src/" BIN = "bin/" VAR = "var/" USR = "usr/" USR_PORTAL = ice.USR_PORTAL USR_PUBLISH = ice.USR_PUBLISH USR_ICEBERGS = ice.USR_ICEBERGS USR_LOCAL_WORK = ice.USR_LOCAL_WORK SRC_DOCUMENT = ice.SRC_DOCUMENT SRC_TEMPLATE = ice.SRC_TEMPLATE REQUIRE = "/require/" VOLCANOS = "/volcanos/" INTSHELL = "/intshell/" PATHNAME = "pathname" FILENAME = "filename" USR_ICONS_ICEBERGS = "usr/icons/icebergs.jpg" TYPE_ALL = "all" TYPE_BIN = "bin" TYPE_CAT = "cat" TYPE_DIR = "dir" TYPE_BOTH = "both" 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,path,size,link,action" DIR_CLI_FIELDS = "path,size,time" ROOT = "root" TREE = "tree" FULL = "full" PATH = "path" FILE = "file" NAME = "name" SIZE = "size" LINE = "line" )
View Source
const ( CONTENT = "content" OFFSET = "offset" ALIAS = "alias" FROM = "from" TO = "to" )
View Source
const ( XZ = "xz" GZ = "gz" TGZ = "tgz" )
View Source
const CAT = "cat"
View Source
const COPY = "copy"
View Source
const DEFS = "defs"
View Source
const DIR = "dir"
View Source
const DOCUMENT = "document"
View Source
const FIND = "find"
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 (
OPENS = "opens"
)
View Source
const PACK = "pack"
View Source
const PUSH = "push"
View Source
const SAVE = "save"
View Source
const TAR = "tar"
View Source
const TEMPLATE = "template"
View Source
const TRASH = "trash"
View Source
const ZIP = "zip"
Variables ¶
View Source
var DiskFile = file.NewDiskFile()
View Source
var DocumentPath = func(m *ice.Message, arg ...string) string { if p := path.Join(ice.SRC_DOCUMENT, m.PrefixKey(), path.Join(arg...)); Exists(m, p) { return p } else { return p } }
View Source
var DocumentText = func(m *ice.Message, p string) string { return m.Cmdx(CAT, DocumentPath(m, path.Base(p))) }
View Source
var PackFile = file.NewPackFile()
Functions ¶
func AppendFile ¶ added in v1.2.9
func AppendFile(m optionMessage, p string) (io.ReadWriteCloser, string, error)
func CopyFile ¶ added in v1.3.0
func CopyStream ¶ added in v1.5.5
func CopyStream(m *ice.Message, to io.WriteCloser, from io.ReadCloser, cache, total int, cb ice.Any)
func CreateFile ¶ added in v1.2.9
func CreateFile(m optionMessage, p string) (io.WriteCloser, string, error)
func DirDeepAll ¶ added in v1.4.3
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.