nfs

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 15 Imported by: 25

Documentation

Index

Constants

View Source
const (
	CAT_CONTENT = "cat_content"
	TEMPLATE    = "template"

	SOURCE = "source"
	BINARY = "binary"
	TARGET = "target"

	MASTER = "master"
	BRANCH = "branch"
	REPOS  = "repos"

	LOAD = "load"
	TAGS = "tags"
)
View Source
const (
	HTML = ice.HTML
	CSS  = ice.CSS
	JS   = ice.JS
	GO   = ice.GO
	SH   = ice.SH
	CSV  = ice.CSV
	JSON = ice.JSON
	TXT  = "txt"
	SHY  = "shy"
	SVG  = "svg"

	PWD = "./"
)
View Source
const (
	PATH = "path"
	FILE = "file"
	LINE = "line"
	SIZE = "size"
)
View Source
const (
	TYPE_ALL  = "all"
	TYPE_CAT  = "cat"
	TYPE_DIR  = "dir"
	TYPE_BOTH = "both"
)
View Source
const (
	DIR_PACK = "dir_pack"
	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 CAT = "cat"
View Source
const (
	CONTENT = "content"
)
View Source
const COPY = "copy"
View Source
const DEFS = "defs"
View Source
const DIR = "dir"
View Source
const FIND = "find"
View Source
const (
	FROM = "from"
)
View Source
const GREP = "grep"
View Source
const LINK = "link"
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 Index = &ice.Context{Name: "nfs", Help: "存储模块"}

Functions

func AddRewrite added in v0.7.9

func AddRewrite(cb interface{})

func Dir

func Dir(m *ice.Message, sort string) *ice.Message

func MkdirAll added in v0.9.9

func MkdirAll(m *ice.Message, p string) error

Types

type ReadCloser added in v0.5.6

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

func NewReadCloser added in v0.5.6

func NewReadCloser(r io.Reader) *ReadCloser

func (*ReadCloser) Close added in v0.5.6

func (r *ReadCloser) Close() error

func (*ReadCloser) Read added in v0.5.6

func (r *ReadCloser) Read(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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