Documentation
¶
Index ¶
- Variables
- type Case
- type Field
- type Fields
- type GPathPath
- type Generator
- type Generators
- type Query
- type RelationalOp
- type TAllof
- type TAnyof
- type TClockSource
- type TDirname
- type TEmpty
- type TExists
- type TFalse
- type TFileType
- type TIDirname
- type TIMatch
- type TIName
- type TIPCRE
- type TMatch
- type TMatchFlags
- type TMatchType
- type TName
- type TNot
- type TPCRE
- type TSince
- type TSize
- type TSuffix
- type TTrue
- type Term
Constants ¶
This section is empty.
Variables ¶
var EmptyT = TEmpty{}
var ExistsT = TExists{}
var FalseT = TFalse{}
var TrueT = TTrue{}
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field string
const ( FName Field = "name" FExists Field = "exists" FCclock Field = "cclock" FOclock Field = "oclock" FCtime Field = "ctime" FCtimeMs Field = "ctime_ms" FCtimeUs Field = "ctime_us" FCtimeNs Field = "ctime_ns" FCtimeF Field = "ctime_f" FMtime Field = "mtime" FMtimeMs Field = "mtime_ms" FMtimeUs Field = "mtime_us" FMtimeNs Field = "mtime_ns" FMtimeF Field = "mtime_f" FSize Field = "size" FMode Field = "mode" FUid Field = "uid" FGid Field = "gid" FIno Field = "ino" FDev Field = "dev" FNlink Field = "nlink" FNew Field = "new" FType Field = "type" FSymlinkTarget Field = "symlink_target" FContentSha1hex Field = "content.sha1hex" )
type GPathPath ¶
See https://facebook.github.io/watchman/docs/file-query#path-generator
func (GPathPath) MarshalJSON ¶
type Generator ¶
type Generator string
See https://facebook.github.io/watchman/docs/file-query#generators
const ( // See https://facebook.github.io/watchman/docs/file-query#since-generator GSince Generator = "string" // See https://facebook.github.io/watchman/docs/file-query#suffix-generator GSuffix Generator = "suffix" // See https://facebook.github.io/watchman/docs/file-query#glob-generator GGlob Generator = "glob" // See https://facebook.github.io/watchman/docs/file-query#path-generator GPath Generator = "path" )
type Generators ¶
type Query ¶
type Query struct {
Generators Generators
Expression Term
Fields Fields
DedupResults bool
RelativeRoot string
SyncTimeout int
LockTimeout int
Case Case
}
func (Query) MarshalJSON ¶
type RelationalOp ¶
type RelationalOp int
see https://facebook.github.io/watchman/docs/expr/size
const ( RelLt RelationalOp = iota RelLe RelEq RelNe RelGt RelGe )
func (RelationalOp) MarshalJSON ¶
func (op RelationalOp) MarshalJSON() ([]byte, error)
type TAllof ¶
type TAllof []Term
see https://facebook.github.io/watchman/docs/expr/allof
func (TAllof) MarshalJSON ¶
type TAnyof ¶
type TAnyof []Term
see https://facebook.github.io/watchman/docs/expr/anyof
func (TAnyof) MarshalJSON ¶
type TClockSource ¶
type TClockSource int
see https://facebook.github.io/watchman/docs/expr/since
const ( OClock TClockSource = iota CClock CTime MTime )
type TDirname ¶
type TDirname struct {
Name string
Op RelationalOp
Depth int
}
see https://facebook.github.io/watchman/docs/expr/dirname
func (TDirname) MarshalJSON ¶
type TEmpty ¶
type TEmpty struct{}
see https://facebook.github.io/watchman/docs/expr/empty
func (TEmpty) MarshalJSON ¶
type TExists ¶
type TExists struct{}
see https://facebook.github.io/watchman/docs/expr/exists
func (TExists) MarshalJSON ¶
type TFalse ¶
type TFalse struct{}
see https://facebook.github.io/watchman/docs/expr/false
func (TFalse) MarshalJSON ¶
type TFileType ¶
type TFileType string
see https://facebook.github.io/watchman/docs/expr/type
func (TFileType) MarshalJSON ¶
type TIDirname ¶
type TIDirname struct {
Name string
Op RelationalOp
Depth int
}
see https://facebook.github.io/watchman/docs/expr/dirname
func (TIDirname) MarshalJSON ¶
type TIMatch ¶
type TIMatch struct {
Glob string
MatchType TMatchType
Flags TMatchFlags
}
see https://facebook.github.io/watchman/docs/expr/match
func (TIMatch) MarshalJSON ¶
type TIName ¶
type TIName struct {
Names []string
MatchType TMatchType
}
see https://facebook.github.io/watchman/docs/expr/name
func (TIName) MarshalJSON ¶
type TIPCRE ¶
type TIPCRE struct {
Regexp string
MatchType TMatchType
}
see https://facebook.github.io/watchman/docs/expr/pcre
func (TIPCRE) MarshalJSON ¶
type TMatch ¶
type TMatch struct {
Glob string
MatchType TMatchType
Flags TMatchFlags
}
see https://facebook.github.io/watchman/docs/expr/match
func (TMatch) MarshalJSON ¶
type TMatchFlags ¶
type TMatchFlags int
const ( MatchIncludeDotFiles TMatchFlags = 1 << iota MatchNoEscape )
type TMatchType ¶
type TMatchType int
see https://facebook.github.io/watchman/docs/expr/match
const ( MatchBaseName TMatchType = iota MatchWholeName )
func (TMatchType) MarshalJSON ¶
func (t TMatchType) MarshalJSON() ([]byte, error)
type TName ¶
type TName struct {
Names []string
MatchType TMatchType
}
see https://facebook.github.io/watchman/docs/expr/name
func (TName) MarshalJSON ¶
type TPCRE ¶
type TPCRE struct {
Regexp string
MatchType TMatchType
}
see https://facebook.github.io/watchman/docs/expr/pcre
func (TPCRE) MarshalJSON ¶
type TSince ¶
type TSince struct {
Timestamp any
Source TClockSource
}
see https://facebook.github.io/watchman/docs/expr/since
func (TSince) MarshalJSON ¶
type TSize ¶
type TSize struct {
Op RelationalOp
Size int
}
see https://facebook.github.io/watchman/docs/expr/size
func (TSize) MarshalJSON ¶
type TSuffix ¶
type TSuffix []string
see https://facebook.github.io/watchman/docs/expr/suffix
func (TSuffix) MarshalJSON ¶
type TTrue ¶
type TTrue struct{}
see https://facebook.github.io/watchman/docs/expr/true