ice

package module
v1.5.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 29 Imported by: 88

README

ice Web Framework

ice is a web framework written in Go (Golang).

Quick start

# assume the following codes in main.go file
$ cat main.go
package main

import "shylinux.com/x/ice"

func main() { print(ice.Run()) }
# init mod
$ go mod init demo
$ go mod tidy
# run main.go and visit http://localhost:9020/ on browser
$ go run main.go

visit http://localhost:9020 on browser

Documentation

Index

Constants

View Source
const (
	INIT = "init"
	QUIT = "quit"
	EXIT = "exit"
)
View Source
const (
	TB = "\t"
	SP = " "
	DF = ":"
	EQ = "="
	AT = "@"
	QS = "?"
	PS = "/"
	PT = "."
	FS = ","
	NL = "\n"

	OK      = "ok"
	TRUE    = "true"
	FALSE   = "false"
	SUCCESS = "success"
	PROCESS = "process"
	FAILURE = "failure"
	WINDOWS = "windows"

	HTTPS = "https"
	HTTP  = "http"
	DEMO  = "demo"
	MAIL  = "mail"
	HELP  = "help"
	INFO  = "info"
	MAIN  = "main"
	AUTO  = "auto"
	LIST  = "list"
	BACK  = "back"

	BASE = "base"
	CORE = "core"
	MISC = "misc"

	SHY    = "shy"
	DEV    = "dev"
	DEV_IP = "dev_ip"
	OPS    = "ops"

	ICE = "ice"
	CAN = "can"
	APP = "app"

	POD = "pod"
	CMD = "cmd"
	ARG = "arg"
	ENV = "env"
	RUN = "run"
	RES = "res"
	ERR = "err"

	STR   = "str"
	STR_R = "str_r"
	INT_R = "int_r"
	INT   = "int"
)
View Source
const (
	CONTEXTS = "contexts"
	INTSHELL = "intshell"
	LEARNING = "learning"
	VOLCANOS = "volcanos"
	TOOLKITS = "toolkits"
	ICEBERGS = "icebergs"
	RELEASE  = "release"
	MATRIX   = "matrix"
	ICONS    = "icons"

	INSTALL = "install"
	REQUIRE = "require"
	PUBLISH = "publish"
	PORTAL  = "portal"
	LOCAL   = "local"
)
View Source
const (
	MOD_DIR       = 0750
	MOD_FILE      = 0640
	MOD_BUFS      = 4096
	MOD_DATE      = kit.MOD_DATE
	MOD_TIME      = kit.MOD_TIME
	MOD_TIMES     = kit.MOD_TIMES
	MOD_TIME_ONLY = "15:04:05"
)
View Source
const (
	SRC = "src"
	ETC = "etc"
	BIN = "bin"
	VAR = "var"
	USR = "usr"

	JSON = "json"
	CSV  = "csv"
	SH   = "sh"
	GO   = "go"
	JS   = "js"
	SVG  = "svg"
	CSS  = "css"
	HTML = "html"

	LIB    = "lib"
	PAGE   = "page"
	PANEL  = "panel"
	PLUGIN = "plugin"

	INDEX_CSS = "index.css"
	CONST_JS  = "const.js"
	PROTO_JS  = "proto.js"
	FRAME_JS  = "frame.js"
	INDEX_SH  = "index.sh"

	PLUGIN_INPUT    = "/plugin/input/"
	PLUGIN_LOCAL    = "/plugin/local/"
	PLUGIN_STORY    = "/plugin/story/"
	PLUGIN_TABLE_JS = "/plugin/table.js"
	PKG_MOD         = "/pkg/mod/"

	ISH_PLUGED   = ".ish/pluged/"
	USR_INSTALL  = "usr/install/"
	USR_REQUIRE  = "usr/require/"
	USR_PUBLISH  = "usr/publish/"
	USR_INTSHELL = "usr/intshell/"
	USR_LEARNING = "usr/learning/"
	USR_VOLCANOS = "usr/volcanos/"
	USR_TOOLKITS = "usr/toolkits/"
	USR_ICEBERGS = "usr/icebergs/"
	USR_RELEASE  = "usr/release/"
	USR_PROGRAM  = "usr/program/"
	USR_GEOAREA  = "usr/geoarea/"
	USR_ICONS    = "usr/icons/"
	USR_LOCAL    = "usr/local/"

	USR_LOCAL_GO       = "usr/local/go/"
	USR_LOCAL_GO_BIN   = "usr/local/go/bin/"
	USR_LOCAL_BIN      = "usr/local/bin/"
	USR_LOCAL_LIB      = "usr/local/lib/"
	USR_LOCAL_WORK     = "usr/local/work/"
	USR_LOCAL_REPOS    = "usr/local/repos/"
	USR_LOCAL_IMAGE    = "usr/local/image/"
	USR_LOCAL_EXPORT   = "usr/local/export/"
	USR_LOCAL_DAEMON   = "usr/local/daemon/"
	VAR_DATA_IMPORTANT = "var/data/.important"
	VAR_LOG_BOOT_LOG   = "var/log/boot.log"
	VAR_LOG_ICE_PORT   = "var/log/ice.port"
	VAR_LOG_ICE_PID    = "var/log/ice.pid"

	VAR_LOG            = "var/log/"
	VAR_TMP            = "var/tmp/"
	VAR_CONF           = "var/conf/"
	VAR_DATA           = "var/data/"
	VAR_FILE           = "var/file/"
	VAR_PROXY          = "var/proxy/"
	VAR_TRASH          = "var/trash/"
	VAR_PORTAL         = "var/portal/"
	BIN_ICE_BIN        = "bin/ice.bin"
	ETC_INIT_SHY       = "etc/init.shy"
	ETC_LOCAL_SHY      = "etc/local.shy"
	ETC_EXIT_SHY       = "etc/exit.shy"
	ETC_MISS_SH        = "etc/miss.sh"
	ETC_PATH           = "etc/path"
	SRC_MAIN_SH        = "src/main.sh"
	SRC_MAIN_SHY       = "src/main.shy"
	SRC_MAIN_HTML      = "src/main.html"
	SRC_MAIN_ICO       = "src/main.ico"
	SRC_MAIN_CSS       = "src/main.css"
	SRC_MAIN_JS        = "src/main.js"
	SRC_MAIN_GO        = "src/main.go"
	SRC_WEBVIEW_GO     = "src/webview.go"
	SRC_VERSION_GO     = "src/version.go"
	SRC_BINPACK_GO     = "src/binpack.go"
	SRC_BINPACK_USR_GO = "src/binpack_usr.go"
	SRC_TEMPLATE       = "src/template/"
	SRC_SCRIPT         = "src/script/"
	USR_SCRIPT         = "usr/script/"
	README_MD          = "README.md"
	MAKEFILE           = "Makefile"
	LICENSE            = "LICENSE"
	GO_MOD             = "go.mod"
	GO_SUM             = "go.sum"
	GO_WORK            = "go.work"
	GO_WORK_SUM        = "go.work.sum"
	ICE_BIN            = "ice.bin"
	CAN_PLUGIN         = "can._plugin"
)
View Source
const (
	MSG_CMDS   = "cmds"
	MSG_FIELDS = "fields"
	MSG_SESSID = "sessid"
	MSG_METHOD = "method"
	MSG_DEBUG  = "debug"

	MSG_DETAIL = "detail"
	MSG_OPTION = "option"
	MSG_APPEND = "append"
	MSG_RESULT = "result"

	MSG_OPTS   = "_option"
	MSG_UPLOAD = "_upload"
	MSG_SOURCE = "_source"
	MSG_TARGET = "_target"
	MSG_HANDLE = "_handle"
	MSG_ACTION = "_action"
	MSG_STATUS = "_status"

	MSG_SPACE  = "_space"
	MSG_INDEX  = "_index"
	MSG_SCRIPT = "_script"
	MSG_OUTPUT = "_output"
	MSG_ARGS   = "_args"

	MSG_PROCESS     = "_process"
	MSG_DISPLAY     = "_display"
	MSG_DISPLAY_CSS = "_display_css"
	MSG_TOOLKIT     = "_toolkit"

	MSG_USERIP   = "user.ip"
	MSG_USERUA   = "user.ua"
	MSG_USERWEB  = "user.web"
	MSG_USERPOD  = "user.pod"
	MSG_USERPOD0 = "user.pod0"
	MSG_USERWEB0 = "user.web0"
	MSG_USERHOST = "user.host"
	MSG_USERADDR = "user.addr"
	MSG_USERDATA = "user.data"
	MSG_USERNICK = "user.nick"
	MSG_USERNAME = "user.name"
	MSG_USERROLE = "user.role"
	MSG_USERZONE = "user.zone"
	MSG_LANGUAGE = "user.lang"
	MSG_AVATAR   = "user.avatar"

	MSG_BG      = "sess.bg"
	MSG_FG      = "sess.fg"
	MSG_COST    = "sess.cost"
	MSG_MODE    = "sess.mode"
	MSG_THEME   = "sess.theme"
	MSG_TITLE   = "sess.title"
	MSG_RIVER   = "sess.river"
	MSG_STORM   = "sess.storm"
	MSG_COUNT   = "sess.count"
	MSG_DAEMON  = "sess.daemon"
	MSG_DAEMON0 = "sess.daemon0"
	MSG_UNSAFE  = "sess.unsafe"
	MSG_ONLINE  = "sess.online"
	MSG_REFERER = "sess.referer"
	MSG_CHECKER = "aaa.checker"
	YAC_MESSAGE = "yac.message"
	YAC_STACK   = "yac.stack"
	SSH_ALIAS   = "ssh.alias"
	SSH_TARGET  = "ssh.target"
	LOG_DISABLE = "log.disable"
	LOG_TRACEID = "log.id"

	MSG_NODETYPE   = "node.type"
	MSG_FILES      = "file.system"
	FROM_SPACE     = "from.space"
	FROM_DAEMON    = "from.daemon"
	TABLE_CHECKBOX = "table.checkbox"
	TOAST_DURATION = "toast.duration"
	DREAM_SIMPLE   = "dream.simple"
	SPACE_NOECHO   = "space.noecho"
	SPACE_TIMEOUT  = "space.timeout"
)
View Source
const (
	RENDER_BUTTON = "_button"
	RENDER_ANCHOR = "_anchor"
	RENDER_QRCODE = "_qrcode"
	RENDER_SCRIPT = "_script"
	RENDER_IMAGES = "_images"
	RENDER_VIDEOS = "_videos"
	RENDER_AUDIOS = "_audios"
	RENDER_IFRAME = "_iframe"

	RENDER_STATUS   = "_status"
	RENDER_REDIRECT = "_redirect"
	RENDER_DOWNLOAD = "_download"
	RENDER_TEMPLATE = "_template"
	RENDER_RESULT   = "_result"
	RENDER_JSON     = "_json"
	RENDER_VOID     = "_void"
	RENDER_RAW      = "_raw"
)
View Source
const (
	PROCESS_COOKIE   = "_cookie"
	PROCESS_SESSION  = "_session"
	PROCESS_LOCATION = "_location"
	PROCESS_REPLACE  = "_replace"
	PROCESS_HISTORY  = "_history"
	PROCESS_CONFIRM  = "_confirm"
	PROCESS_REFRESH  = "_refresh"
	PROCESS_REWRITE  = "_rewrite"
	PROCESS_DISPLAY  = "_display"

	PROCESS_FIELD = "_field"
	PROCESS_FLOAT = "_float"
	PROCESS_INNER = "_inner"
	PROCESS_AGAIN = "_again"
	PROCESS_HOLD  = "_hold"
	PROCESS_BACK  = "_back"
	PROCESS_RICH  = "_rich"
	PROCESS_GROW  = "_grow"
	PROCESS_OPEN  = "_open"
	PROCESS_CLOSE = "_close"

	PROCESS_ARG   = "_arg"
	FIELD_PREFIX  = "_prefix"
	FIELDS_DETAIL = "detail"
)
View Source
const (
	CTX_FOLLOW = "follow"

	CTX_BEGIN = "begin"
	CTX_START = "start"
	CTX_SERVE = "serve"
	CTX_CLOSE = "close"

	CTX_INIT  = "_init"
	CTX_EXIT  = "_exit"
	CTX_OPEN  = "_open"
	CTX_TITLE = "_title"
	CTX_TRANS = "_trans"
	CTX_ICONS = "_icons"
)
View Source
const (
	LOG_CMDS  = "cmds"
	LOG_AUTH  = "auth"
	LOG_COST  = "cost"
	LOG_INFO  = "info"
	LOG_WARN  = "warn"
	LOG_ERROR = "error"
	LOG_DEBUG = "debug"
)
View Source
const (
	ErrWarn = "warn: "

	ErrNotLogin = "not login: "
	ErrNotRight = "not right: "
	ErrNotAllow = "not allow: "
	ErrNotFound = "not found: "
	ErrNotValid = "not valid: "
	ErrNotStart = "not start: "

	ErrNotFoundIndex = "not found index: "
	ErrNotFoundSpide = "not found spide: "
	ErrNotFoundSpace = "not found space: "
	ErrAlreadyExists = "already exists: "
	ErrNotImplement  = "not implement: "
	ErrTooDeepCount  = "too deep count: "
)
View Source
const (
	COMMAND = "command"
	ACTION  = "action"
	STYLE   = "style"
	INDEX   = "index"
)
View Source
const (
	SEARCH = "search"
	INPUTS = "inputs"
	CREATE = "create"
	SELECT = "select"
	IMPORT = "import"
	EXPORT = "export"

	KEY   = "key"
	VALUE = "value"
	FIELD = "field"
	EXTRA = "extra"
	META  = "meta"
	TIME  = "time"
	HASH  = "hash"
	TYPE  = "type"
	NAME  = "name"
	TEXT  = "text"
	LINK  = "link"
)
View Source
const (
	SERVE = "serve"
	SPACE = "space"

	TITLE = "title"
	THEME = "theme"
)
View Source
const (
	EVENT   = "event"
	ROUTINE = "routine"
)
View Source
const (
	SIZE   = "size"
	SOURCE = "source"
	SCRIPT = "script"
)
View Source
const (
	FOREVER = "forever"
	SYSTEM  = "system"
	START   = "start"
)
View Source
const (
	CTX = "ctx"
	MDB = "mdb"
	WEB = "web"
	AAA = "aaa"
	LEX = "lex"
	YAC = "yac"
	SSH = "ssh"
	GDB = "gdb"
	TCP = "tcp"
	NFS = "nfs"
	CLI = "cli"
	LOG = "log"
)
View Source
const (
	LOG_TRACE  = "log_trace"
	TCP_DOMAIN = "tcp_domain"
)
View Source
const (
	DEBUG = "debug"
)

Variables

View Source
var Info = &ice.Info
View Source
var Pulse = ice.Pulse

Functions

func ChatCmd added in v1.1.5

func ChatCmd(obj Any, arg ...Any) string

func ChatCtxCmd added in v1.1.5

func ChatCtxCmd(obj Any, arg ...Any) string

func ChatModCmd added in v1.1.5

func ChatModCmd(obj Any, arg ...Any) string

func Cmd

func Cmd(key string, obj Any, arg ...Any) string

func CodeCmd

func CodeCmd(obj Any, arg ...Any) string

func CodeCtxCmd

func CodeCtxCmd(obj Any, arg ...Any) string

func CodeModCmd

func CodeModCmd(obj Any, arg ...Any) string

func CodeModCtxCmd added in v1.5.22

func CodeModCtxCmd(obj Any, arg ...Any) string

func GetTypeKey added in v0.8.6

func GetTypeKey(obj Any) string

func MallCtxCmd added in v1.5.14

func MallCtxCmd(obj Any, arg ...Any) string

func Run

func Run(arg ...string) string

func Runs added in v1.5.17

func Runs(cb func(), arg ...string) string

func SetTypeKey added in v1.5.5

func SetTypeKey(obj Any, key string)

func TeamCtxCmd added in v1.5.14

func TeamCtxCmd(obj Any, arg ...Any) string

func WikiCtxCmd added in v1.1.5

func WikiCtxCmd(obj Any, arg ...Any) string

Types

type Any added in v1.0.0

type Any = ice.Any

type Code

type Code struct {
	// contains filtered or unexported fields
}

func (Code) Args added in v1.3.14

func (s Code) Args(m *Message, arg ...string) (args []string)

func (Code) Build

func (s Code) Build(m *Message, arg ...Any)

func (Code) CatScript added in v0.9.9

func (s Code) CatScript(m *Message)

func (Code) Clone added in v1.3.14

func (s Code) Clone(m *Message, arg ...string)

func (Code) Daemon

func (s Code) Daemon(m *Message, dir string, arg ...string)

func (Code) Download

func (s Code) Download(m *Message, arg ...string)

func (Code) Error added in v1.1.5

func (s Code) Error(m *Message, arg ...string)

func (Code) Inputs added in v0.9.9

func (s Code) Inputs(m *Message, arg ...string)

func (Code) Install added in v0.9.9

func (s Code) Install(m *Message, arg ...string)
func (s Code) Link(m *Message, arg ...string) string

func (Code) List

func (s Code) List(m *Message, src string, arg ...string) *Message

func (Code) ListScript added in v0.9.9

func (s Code) ListScript(m *Message)

func (Code) Module added in v1.1.5

func (s Code) Module(m *Message, dir string, template string)

func (Code) Open added in v0.9.9

func (s Code) Open(m *Message, arg ...string)

func (Code) Order

func (s Code) Order(m *Message, arg ...string)

func (Code) Path

func (s Code) Path(m *Message, url string, arg ...string) string
func (s Code) PushLink(m *Message) *Message

func (Code) RunScript added in v0.9.9

func (s Code) RunScript(m *Message)

func (Code) Source added in v0.4.8

func (s Code) Source(m *Message, src string, arg ...string)

func (Code) Start

func (s Code) Start(m *Message, src, bin string, arg ...Any)

func (Code) Stop added in v0.9.9

func (s Code) Stop(m *Message, arg ...string)

func (Code) Stream

func (s Code) Stream(m *Message, dir string, arg ...string)

func (Code) System

func (s Code) System(m *Message, dir string, arg ...string) *Message

func (Code) Trash added in v0.7.1

func (s Code) Trash(m *Message, arg ...string)

func (Code) Vimer added in v1.1.5

func (s Code) Vimer(m *Message, path, file, line string, arg ...string)

func (Code) Xterm added in v1.0.8

func (s Code) Xterm(m *Message, title string, args ice.Any, arg ...string)

type Command added in v1.5.17

type Command struct{ *ice.Command }

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

func (Hash) Create

func (s Hash) Create(m *Message, arg ...string) string

func (s Hash) Create(m *Message, arg ...string) string { return mdb.HashCreate(m.Message.Spawn(), arg) }

func (Hash) Exit added in v1.3.18

func (s Hash) Exit(m *Message, arg ...string) *Message

func (Hash) Export added in v0.8.7

func (s Hash) Export(m *Message, arg ...string)

func (Hash) Exports added in v1.3.5

func (s Hash) Exports(m *Message, arg ...string)

func (Hash) ForEach added in v1.4.1

func (s Hash) ForEach(m *Message, key string, cb func(*Message)) *Message

func (Hash) Import added in v0.8.7

func (s Hash) Import(m *Message, arg ...string)

func (Hash) Imports added in v1.3.5

func (s Hash) Imports(m *Message, arg ...string)

func (Hash) Init added in v1.3.14

func (s Hash) Init(m *Message, arg ...string) *Message

func (Hash) Inputs

func (s Hash) Inputs(m *Message, arg ...string) *Message

func (Hash) List

func (s Hash) List(m *Message, arg ...string) *Message

func (Hash) Modify

func (s Hash) Modify(m *Message, arg ...string)

func (Hash) Prunes added in v0.4.8

func (s Hash) Prunes(m *Message, arg ...string)

func (Hash) Remove

func (s Hash) Remove(m *Message, arg ...string)

func (Hash) SubCreate added in v1.5.6

func (s Hash) SubCreate(m *Message, sub string, arg ...string) string

func (Hash) SubList added in v1.5.6

func (s Hash) SubList(m *Message, sub string, arg ...string) *Message

func (Hash) SubModify added in v1.5.6

func (s Hash) SubModify(m *Message, sub string, arg ...string)

func (Hash) SubRemove added in v1.5.6

func (s Hash) SubRemove(m *Message, sub string, arg ...string)

func (Hash) Target added in v1.0.8

func (s Hash) Target(m *Message, key string, cb Any) Any

func (Hash) Vendor added in v1.5.15

func (s Hash) Vendor(m *Message, arg ...string)

type Lang added in v0.7.3

type Lang struct {
	// contains filtered or unexported fields
}

func (Lang) Complete added in v1.3.12

func (s Lang) Complete(m *Message, arg ...string)

func (Lang) Engine added in v0.7.3

func (s Lang) Engine(m *Message, arg ...string)

func (Lang) Init added in v0.7.3

func (s Lang) Init(m *Message, arg ...Any)

func (Lang) List added in v1.1.7

func (s Lang) List(m *Message, arg ...string)

func (Lang) Navigate added in v1.3.12

func (s Lang) Navigate(m *Message, arg ...string)

func (Lang) Plugin added in v0.7.3

func (s Lang) Plugin(m *Message, arg ...string)

func (Lang) Render added in v0.7.3

func (s Lang) Render(m *Message, arg ...string)

func (Lang) Template added in v1.3.12

func (s Lang) Template(m *Message, arg ...string)

type List added in v1.0.8

type List = ice.List

type Map added in v1.0.0

type Map = ice.Map

type Maps added in v1.0.0

type Maps = ice.Maps

type Message

type Message struct {
	*ice.Message
	context.Context
}

func (*Message) Action added in v1.5.5

func (m *Message) Action(arg ...ice.Any) *Message

func (*Message) AddHeaderLogin added in v1.4.6

func (m *Message) AddHeaderLogin(types, name, help, order string, arg ...string)

func (*Message) AddSudoCmd added in v1.5.22

func (m *Message) AddSudoCmd(cmd ...string) *Message

func (*Message) AdminCmd added in v1.4.6

func (m *Message) AdminCmd(cmd ice.Any, arg ...Any) *Message

func (*Message) AdminCmdTokenCreate added in v1.4.8

func (m *Message) AdminCmdTokenCreate(kind, name, text string, arg ...string) *Message

func (*Message) AdminCmdx added in v1.5.5

func (m *Message) AdminCmdx(cmd string, arg ...Any) string

func (*Message) AllocPort added in v1.4.8

func (m *Message) AllocPort() string

func (*Message) ChatMessageInsert added in v1.4.8

func (m *Message) ChatMessageInsert(zone string, arg ...string)

func (*Message) ChatMessageInsertPlug added in v1.4.8

func (m *Message) ChatMessageInsertPlug(zone, name, text, index, args string, arg ...string)

func (*Message) Cmd added in v0.4.9

func (m *Message) Cmd(arg ...Any) *Message

func (*Message) CmdInputs added in v1.5.5

func (m *Message) CmdInputs(cmd, field, to string) *Message

func (*Message) CmdMap added in v1.5.5

func (m *Message) CmdMap(arg ...Any) map[string]map[string]string

func (*Message) CmdMapTable added in v1.5.5

func (m *Message) CmdMapTable(cmd Any, key string, cb func(ice.Maps, ice.Maps)) *Message

func (*Message) Cmds added in v1.3.1

func (m *Message) Cmds(arg ...Any) *Message

func (*Message) Cmdv added in v1.3.1

func (m *Message) Cmdv(arg ...Any) string

func (*Message) Cmdx added in v0.4.9

func (m *Message) Cmdx(arg ...Any) string

func (*Message) Cmdy added in v0.4.8

func (m *Message) Cmdy(arg ...Any) *Message

func (*Message) Conf added in v0.8.8

func (m *Message) Conf(arg ...Any) string

func (*Message) ConfList added in v1.5.12

func (m *Message) ConfList(arg ...string)

func (*Message) Config added in v1.1.5

func (m *Message) Config(arg ...Any) string

func (*Message) ConfigSimple added in v1.4.4

func (m *Message) ConfigSimple(arg ...Any) (res []string)

func (*Message) Configv added in v1.1.5

func (m *Message) Configv(arg ...Any) Any

func (*Message) Copy added in v1.4.6

func (m *Message) Copy(msg *Message) *Message

func (*Message) Defs added in v1.4.6

func (m *Message) Defs(dir string, file string)

func (*Message) DirDeepAll added in v1.5.22

func (m *Message) DirDeepAll(root, dir string, cb func(ice.Maps), arg ...string) *Message

func (*Message) Display added in v1.1.8

func (m *Message) Display(file string, arg ...Any) *Message

func (*Message) DisplayCSS added in v1.5.21

func (m *Message) DisplayCSS(file string, arg ...Any) *Message

func (*Message) DisplayForm added in v1.4.6

func (m *Message) DisplayForm(arg ...Any)

func (*Message) DisplayInputKeyNameIcon added in v1.5.10

func (m *Message) DisplayInputKeyNameIcon()

func (*Message) DisplayStory added in v1.5.13

func (m *Message) DisplayStory(file string, arg ...ice.Any) *Message

func (*Message) DisplayStoryJSON added in v1.5.12

func (m *Message) DisplayStoryJSON(arg ...ice.Any) *Message

func (*Message) DisplayStoryPie added in v1.5.19

func (m *Message) DisplayStoryPie(arg ...ice.Any) *Message

func (*Message) DisplayStudio added in v1.3.14

func (m *Message) DisplayStudio(cmd ...Any) *Message

func (*Message) DreamList added in v1.4.8

func (m *Message) DreamList() *Message

func (*Message) DreamPath added in v1.5.5

func (m *Message) DreamPath(dream string) (p string)

func (*Message) DreamRepos added in v1.5.5

func (m *Message) DreamRepos(dream string) (p string)

func (*Message) Echo added in v1.5.12

func (m *Message) Echo(str string, arg ...Any) *Message

func (*Message) Event added in v1.5.5

func (m *Message) Event(event string, arg ...ice.Any) *Message

func (*Message) Exists added in v1.4.6

func (m *Message) Exists(dir string) bool

func (*Message) FieldTitle added in v1.5.10

func (m *Message) FieldTitle(title string, arg ...string)

func (*Message) FieldsSetDetail added in v1.5.21

func (m *Message) FieldsSetDetail() *Message

func (*Message) GoToast added in v1.4.6

func (m *Message) GoToast(cb func(toast func(name string, count, total int))) *Message

func (*Message) GoToastTable added in v1.4.7

func (m *Message) GoToastTable(key string, cb func(ice.Maps)) *Message

func (*Message) HostList added in v1.5.12

func (m *Message) HostList() *Message

func (*Message) HostPort added in v1.4.6

func (m *Message) HostPort(host, port string, arg ...string) string

func (*Message) IsLocalHost added in v1.4.6

func (m *Message) IsLocalHost() bool

func (*Message) IsLocalNet added in v1.4.6

func (m *Message) IsLocalNet() bool

func (*Message) IsSuccess added in v1.5.12

func (m *Message) IsSuccess(arg ...Any) bool

func (*Message) IsTech added in v1.4.6

func (m *Message) IsTech() bool

func (*Message) Lock added in v1.4.6

func (m *Message) Lock(arg ...string) func()

func (*Message) MkdirAll added in v1.4.6

func (m *Message) MkdirAll(p string) string

func (*Message) Opens added in v1.5.17

func (m *Message) Opens(arg ...string) *Message

func (*Message) OptionArgs added in v1.5.22

func (m *Message) OptionArgs(arg ...string) (res []string)

func (*Message) Options added in v1.4.3

func (m *Message) Options(arg ...Any) *Message

func (*Message) PackageCreate added in v1.5.12

func (m *Message) PackageCreate(kind, name, text, icon, link string) *Message

func (*Message) PackageCreateBinary added in v1.5.12

func (m *Message) PackageCreateBinary(name string, arg ...string) *Message

func (*Message) PackageCreateSource added in v1.5.12

func (m *Message) PackageCreateSource(name string, arg ...string) *Message

func (*Message) ProcessField added in v1.4.6

func (m *Message) ProcessField(cmd ice.Any, args ice.Any, arg ...string)

func (*Message) ProcessFloat added in v1.4.8

func (m *Message) ProcessFloat(cmd ice.Any, args ice.Any, arg ...string)

func (*Message) ProcessIframe added in v1.4.6

func (m *Message) ProcessIframe(title, link string, arg ...string)

func (*Message) ProcessJSON added in v1.5.12

func (m *Message) ProcessJSON(title string, res Any, arg ...string)

func (*Message) ProcessPodCmd added in v1.4.8

func (m *Message) ProcessPodCmd(pod, cmd string, args ice.Any, arg ...string)

func (*Message) ProcessXterm added in v1.4.6

func (m *Message) ProcessXterm(title string, args ice.Any, arg ...string) *Message

func (*Message) ProxyDomain added in v1.4.8

func (m *Message) ProxyDomain(name string) string

func (*Message) PublicIP added in v1.5.12

func (m *Message) PublicIP(arg ...string) string

func (*Message) PublicKey added in v1.5.10

func (m *Message) PublicKey(server string) string

func (*Message) PublishInstallScript added in v1.4.8

func (m *Message) PublishInstallScript(dream, nodename, username string, arg ...string) string

func (*Message) PublishScript added in v1.4.8

func (m *Message) PublishScript(cmd string, arg ...string) string

func (*Message) PushAction added in v1.5.5

func (m *Message) PushAction(arg ...Any) *Message

func (*Message) PushCmdStream added in v1.5.12

func (m *Message) PushCmdStream(title string) *Message

func (*Message) PushNoticeGrowXterm added in v1.4.9

func (m *Message) PushNoticeGrowXterm(title string, cmd ...ice.Any)

func (*Message) PushRefresh added in v1.4.6

func (m *Message) PushRefresh(daemon string)

func (*Message) PushStream added in v0.4.9

func (m *Message) PushStream() *Message

func (*Message) RemoveDaemon added in v1.5.4

func (m *Message) RemoveDaemon(port string)

func (*Message) RewriteAppend added in v1.5.6

func (m *Message) RewriteAppend(cb func(value, key string, index int) string) *Message

func (*Message) Search added in v1.5.17

func (m *Message) Search(key string, cb func(string, *Command))

func (*Message) SendEmail added in v1.4.6

func (m *Message) SendEmail(from, to, cc string, arg ...string)

func (*Message) ServeProxyConf added in v1.4.8

func (m *Message) ServeProxyConf(arg ...string)

func (*Message) ServeProxyConfRemove added in v1.4.9

func (m *Message) ServeProxyConfRemove(arg ...string)

func (*Message) ServeProxyPath added in v1.5.4

func (m *Message) ServeProxyPath(name string) string

func (*Message) SetAppend added in v1.5.22

func (m *Message) SetAppend(arg ...string) *Message

func (*Message) SetResult added in v1.5.22

func (m *Message) SetResult(arg ...string) *Message

func (*Message) ShareField added in v1.4.6

func (m *Message) ShareField(cmd string, arg ...Any) *Message

func (*Message) Sleep added in v1.5.5

func (m *Message) Sleep(d Any, arg ...Any) *Message

func (*Message) Spawn

func (m *Message) Spawn(arg ...Any) *Message

func (*Message) SpawnSilent added in v1.4.8

func (m *Message) SpawnSilent() *Message

func (*Message) SpideGet added in v1.5.12

func (m *Message) SpideGet(arg ...Any) Any

func (*Message) SpideList added in v1.5.12

func (m *Message) SpideList() *Message

func (*Message) SpideOrigin added in v1.4.8

func (m *Message) SpideOrigin(dev string) string

func (*Message) SpideReposList added in v1.5.12

func (m *Message) SpideReposList() *Message

func (*Message) SplitIndex added in v1.5.12

func (m *Message) SplitIndex(str string, arg ...string) *Message

func (*Message) StatusTimeCountMems added in v1.4.8

func (m *Message) StatusTimeCountMems(arg ...Any)

func (*Message) StreamPushRefreshConfirm added in v1.4.8

func (m *Message) StreamPushRefreshConfirm(arg ...string)

func (*Message) SystemCmd added in v1.5.10

func (m *Message) SystemCmd(arg ...Any) *Message

func (*Message) SystemCmdx added in v1.5.22

func (m *Message) SystemCmdx(arg ...Any) string

func (*Message) SystemCmdy added in v1.5.22

func (m *Message) SystemCmdy(arg ...Any) *Message

func (*Message) Table added in v1.4.6

func (m *Message) Table(cb Any) *Message

func (*Message) TableStats added in v1.4.8

func (m *Message) TableStats(arg ...string) map[string]int

func (*Message) TeamPlanInsertPlug added in v1.4.8

func (m *Message) TeamPlanInsertPlug(zone string, name, text, index, args string, arg ...string)

func (*Message) Template added in v1.4.1

func (m *Message) Template(p string) string

func (*Message) TemplatePath added in v1.4.8

func (m *Message) TemplatePath(p string) string

func (*Message) ToastFailure added in v1.4.6

func (m *Message) ToastFailure(arg ...ice.Any)

func (*Message) ToastProcess added in v1.4.6

func (m *Message) ToastProcess(arg ...ice.Any) func(...ice.Any)

func (*Message) ToastSuccess added in v1.4.6

func (m *Message) ToastSuccess(arg ...ice.Any)

func (*Message) Toolkit added in v1.5.22

func (m *Message) Toolkit(arg ...Any) *Message

func (*Message) TransIcons added in v1.4.9

func (m *Message) TransIcons(arg ...Any) *Message

func (*Message) TransInput added in v1.3.18

func (m *Message) TransInput(arg ...Any) *Message

func (*Message) TransValue added in v1.4.4

func (m *Message) TransValue(arg ...Any) *Message

func (*Message) Trash added in v1.4.6

func (m *Message) Trash(p string) string

func (*Message) UploadSave added in v1.5.5

func (m *Message) UploadSave(p string) string

func (*Message) UserCreate added in v1.4.8

func (m *Message) UserCreate(role, name, nick string, arg ...string)

func (*Message) UserHost added in v1.4.6

func (m *Message) UserHost() string

func (*Message) UserWeb added in v1.4.6

func (m *Message) UserWeb() *url.URL

func (*Message) WaitEvent added in v1.4.4

func (m *Message) WaitEvent(event string, cb func(m *Message, arg ...string) bool)

type Zone

type Zone struct {
	// contains filtered or unexported fields
}

func (Zone) Create

func (s Zone) Create(m *Message, arg ...string)

func (Zone) Exit added in v1.4.6

func (s Zone) Exit(m *Message, arg ...string) *Message

func (Zone) Exports added in v1.3.5

func (s Zone) Exports(m *Message, arg ...string)

func (Zone) Imports added in v1.3.5

func (s Zone) Imports(m *Message, arg ...string)

func (Zone) Init added in v1.4.6

func (s Zone) Init(m *Message, arg ...string) *Message

func (Zone) Inputs

func (s Zone) Inputs(m *Message, arg ...string)

func (Zone) Insert

func (s Zone) Insert(m *Message, arg ...string)

func (Zone) List

func (s Zone) List(m *Message, arg ...string) *Message

func (Zone) ListAll added in v1.5.29

func (s Zone) ListAll(m *Message, arg ...string) *Message

func (Zone) ListPage added in v1.0.3

func (s Zone) ListPage(m *Message, arg ...string) *Message

func (Zone) Modify

func (s Zone) Modify(m *Message, arg ...string)

func (Zone) Next added in v0.8.8

func (s Zone) Next(m *Message, arg ...string)

func (Zone) Remove

func (s Zone) Remove(m *Message, arg ...string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL