schema

package
v6.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionAttributesModified = 1
	ActionCreated            = 2
	ActionDeleted            = 4
	ActionUpdated            = 8
	ActionMoved              = 16
	ActionConfigChanged      = 32
)
View Source
const (
	SourceScan     = 0
	SourceFSNotify = 1
)
View Source
const (
	TypeUnknown = 0
	TypeFile    = 1
	TypeDir     = 2
	TypeSymlink = 3
)

Variables

View Source
var EnumNamesAction = map[int]string{
	ActionAttributesModified: "AttributesModified",
	ActionCreated:            "Created",
	ActionDeleted:            "Deleted",
	ActionUpdated:            "Updated",
	ActionMoved:              "Moved",
	ActionConfigChanged:      "ConfigChanged",
}
View Source
var EnumNamesSource = map[int]string{
	SourceScan:     "Scan",
	SourceFSNotify: "FSNotify",
}
View Source
var EnumNamesType = map[int]string{
	TypeUnknown: "Unknown",
	TypeFile:    "File",
	TypeDir:     "Dir",
	TypeSymlink: "Symlink",
}

Functions

func EventAddAction

func EventAddAction(builder *flatbuffers.Builder, action byte)

func EventAddHashes

func EventAddHashes(builder *flatbuffers.Builder, hashes flatbuffers.UOffsetT)

func EventAddInfo

func EventAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT)

func EventAddSource

func EventAddSource(builder *flatbuffers.Builder, source byte)

func EventAddTargetPath

func EventAddTargetPath(builder *flatbuffers.Builder, targetPath flatbuffers.UOffsetT)

func EventAddTimestampNs

func EventAddTimestampNs(builder *flatbuffers.Builder, timestampNs int64)

func EventEnd

func EventEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func EventStart

func EventStart(builder *flatbuffers.Builder)

func HashAddBlake2b256

func HashAddBlake2b256(builder *flatbuffers.Builder, blake2b256 flatbuffers.UOffsetT)

func HashAddBlake2b384

func HashAddBlake2b384(builder *flatbuffers.Builder, blake2b384 flatbuffers.UOffsetT)

func HashAddBlake2b512

func HashAddBlake2b512(builder *flatbuffers.Builder, blake2b512 flatbuffers.UOffsetT)

func HashAddMd5

func HashAddMd5(builder *flatbuffers.Builder, md5 flatbuffers.UOffsetT)

func HashAddSha1

func HashAddSha1(builder *flatbuffers.Builder, sha1 flatbuffers.UOffsetT)

func HashAddSha224

func HashAddSha224(builder *flatbuffers.Builder, sha224 flatbuffers.UOffsetT)

func HashAddSha256

func HashAddSha256(builder *flatbuffers.Builder, sha256 flatbuffers.UOffsetT)

func HashAddSha3224

func HashAddSha3224(builder *flatbuffers.Builder, sha3224 flatbuffers.UOffsetT)

func HashAddSha3256

func HashAddSha3256(builder *flatbuffers.Builder, sha3256 flatbuffers.UOffsetT)

func HashAddSha3384

func HashAddSha3384(builder *flatbuffers.Builder, sha3384 flatbuffers.UOffsetT)

func HashAddSha3512

func HashAddSha3512(builder *flatbuffers.Builder, sha3512 flatbuffers.UOffsetT)

func HashAddSha384

func HashAddSha384(builder *flatbuffers.Builder, sha384 flatbuffers.UOffsetT)

func HashAddSha512

func HashAddSha512(builder *flatbuffers.Builder, sha512 flatbuffers.UOffsetT)

func HashAddSha512224

func HashAddSha512224(builder *flatbuffers.Builder, sha512224 flatbuffers.UOffsetT)

func HashAddSha512256

func HashAddSha512256(builder *flatbuffers.Builder, sha512256 flatbuffers.UOffsetT)

func HashEnd

func HashEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func HashStart

func HashStart(builder *flatbuffers.Builder)

func HashStartBlake2b256Vector

func HashStartBlake2b256Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartBlake2b384Vector

func HashStartBlake2b384Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartBlake2b512Vector

func HashStartBlake2b512Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartMd5Vector

func HashStartMd5Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha1Vector

func HashStartSha1Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha224Vector

func HashStartSha224Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha256Vector

func HashStartSha256Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha3224Vector

func HashStartSha3224Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha3256Vector

func HashStartSha3256Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha3384Vector

func HashStartSha3384Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha3512Vector

func HashStartSha3512Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha384Vector

func HashStartSha384Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha512224Vector

func HashStartSha512224Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha512256Vector

func HashStartSha512256Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func HashStartSha512Vector

func HashStartSha512Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func MetadataAddCtimeNs

func MetadataAddCtimeNs(builder *flatbuffers.Builder, ctimeNs int64)

func MetadataAddGid

func MetadataAddGid(builder *flatbuffers.Builder, gid uint32)

func MetadataAddInode

func MetadataAddInode(builder *flatbuffers.Builder, inode uint64)

func MetadataAddMode

func MetadataAddMode(builder *flatbuffers.Builder, mode uint32)

func MetadataAddMtimeNs

func MetadataAddMtimeNs(builder *flatbuffers.Builder, mtimeNs int64)

func MetadataAddSid

func MetadataAddSid(builder *flatbuffers.Builder, sid flatbuffers.UOffsetT)

func MetadataAddSize

func MetadataAddSize(builder *flatbuffers.Builder, size uint64)

func MetadataAddType

func MetadataAddType(builder *flatbuffers.Builder, type_ byte)

func MetadataAddUid

func MetadataAddUid(builder *flatbuffers.Builder, uid uint32)

func MetadataEnd

func MetadataEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func MetadataStart

func MetadataStart(builder *flatbuffers.Builder)

Types

type Event

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

func GetRootAsEvent

func GetRootAsEvent(buf []byte, offset flatbuffers.UOffsetT) *Event

func (*Event) Action

func (rcv *Event) Action() byte

func (*Event) Hashes

func (rcv *Event) Hashes(obj *Hash) *Hash

func (*Event) Info

func (rcv *Event) Info(obj *Metadata) *Metadata

func (*Event) Init

func (rcv *Event) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Event) MutateAction

func (rcv *Event) MutateAction(n byte) bool

func (*Event) MutateSource

func (rcv *Event) MutateSource(n byte) bool

func (*Event) MutateTimestampNs

func (rcv *Event) MutateTimestampNs(n int64) bool

func (*Event) Source

func (rcv *Event) Source() byte

func (*Event) Table

func (rcv *Event) Table() flatbuffers.Table

func (*Event) TargetPath

func (rcv *Event) TargetPath() []byte

func (*Event) TimestampNs

func (rcv *Event) TimestampNs() int64

type Hash

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

func GetRootAsHash

func GetRootAsHash(buf []byte, offset flatbuffers.UOffsetT) *Hash

func (*Hash) Blake2b256

func (rcv *Hash) Blake2b256(j int) int8

func (*Hash) Blake2b256Length

func (rcv *Hash) Blake2b256Length() int

func (*Hash) Blake2b384

func (rcv *Hash) Blake2b384(j int) int8

func (*Hash) Blake2b384Length

func (rcv *Hash) Blake2b384Length() int

func (*Hash) Blake2b512

func (rcv *Hash) Blake2b512(j int) int8

func (*Hash) Blake2b512Length

func (rcv *Hash) Blake2b512Length() int

func (*Hash) Init

func (rcv *Hash) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Hash) Md5

func (rcv *Hash) Md5(j int) int8

func (*Hash) Md5Length

func (rcv *Hash) Md5Length() int

func (*Hash) Sha1

func (rcv *Hash) Sha1(j int) int8

func (*Hash) Sha1Length

func (rcv *Hash) Sha1Length() int

func (*Hash) Sha224

func (rcv *Hash) Sha224(j int) int8

func (*Hash) Sha224Length

func (rcv *Hash) Sha224Length() int

func (*Hash) Sha256

func (rcv *Hash) Sha256(j int) int8

func (*Hash) Sha256Length

func (rcv *Hash) Sha256Length() int

func (*Hash) Sha3224

func (rcv *Hash) Sha3224(j int) int8

func (*Hash) Sha3224Length

func (rcv *Hash) Sha3224Length() int

func (*Hash) Sha3256

func (rcv *Hash) Sha3256(j int) int8

func (*Hash) Sha3256Length

func (rcv *Hash) Sha3256Length() int

func (*Hash) Sha3384

func (rcv *Hash) Sha3384(j int) int8

func (*Hash) Sha3384Length

func (rcv *Hash) Sha3384Length() int

func (*Hash) Sha3512

func (rcv *Hash) Sha3512(j int) int8

func (*Hash) Sha3512Length

func (rcv *Hash) Sha3512Length() int

func (*Hash) Sha384

func (rcv *Hash) Sha384(j int) int8

func (*Hash) Sha384Length

func (rcv *Hash) Sha384Length() int

func (*Hash) Sha512

func (rcv *Hash) Sha512(j int) int8

func (*Hash) Sha512224

func (rcv *Hash) Sha512224(j int) int8

func (*Hash) Sha512224Length

func (rcv *Hash) Sha512224Length() int

func (*Hash) Sha512256

func (rcv *Hash) Sha512256(j int) int8

func (*Hash) Sha512256Length

func (rcv *Hash) Sha512256Length() int

func (*Hash) Sha512Length

func (rcv *Hash) Sha512Length() int

func (*Hash) Table

func (rcv *Hash) Table() flatbuffers.Table

type Metadata

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

func GetRootAsMetadata

func GetRootAsMetadata(buf []byte, offset flatbuffers.UOffsetT) *Metadata

func (*Metadata) CtimeNs

func (rcv *Metadata) CtimeNs() int64

func (*Metadata) Gid

func (rcv *Metadata) Gid() uint32

func (*Metadata) Init

func (rcv *Metadata) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Metadata) Inode

func (rcv *Metadata) Inode() uint64

func (*Metadata) Mode

func (rcv *Metadata) Mode() uint32

func (*Metadata) MtimeNs

func (rcv *Metadata) MtimeNs() int64

func (*Metadata) MutateCtimeNs

func (rcv *Metadata) MutateCtimeNs(n int64) bool

func (*Metadata) MutateGid

func (rcv *Metadata) MutateGid(n uint32) bool

func (*Metadata) MutateInode

func (rcv *Metadata) MutateInode(n uint64) bool

func (*Metadata) MutateMode

func (rcv *Metadata) MutateMode(n uint32) bool

func (*Metadata) MutateMtimeNs

func (rcv *Metadata) MutateMtimeNs(n int64) bool

func (*Metadata) MutateSize

func (rcv *Metadata) MutateSize(n uint64) bool

func (*Metadata) MutateType

func (rcv *Metadata) MutateType(n byte) bool

func (*Metadata) MutateUid

func (rcv *Metadata) MutateUid(n uint32) bool

func (*Metadata) Sid

func (rcv *Metadata) Sid() []byte

func (*Metadata) Size

func (rcv *Metadata) Size() uint64

func (*Metadata) Table

func (rcv *Metadata) Table() flatbuffers.Table

func (*Metadata) Type

func (rcv *Metadata) Type() byte

func (*Metadata) Uid

func (rcv *Metadata) Uid() uint32

Jump to

Keyboard shortcuts

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