fsnotifybee

package
v0.0.0-...-e08ef68 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

README

FSNotify bee

Monitors filesystem paths and sends events when files are created, removed or modified.

Configuration

  • path: Path to monitor (file or directory).

Events

fsevent

  • type: the event type received (CREATE, REMOVE, RENAME, CHMOD).
  • path: filesystem path that triggered the event.

Credits

File manager logo: https://openclipart.org/detail/35329/tango-system-file-manager

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSNotifyBee

type FSNotifyBee struct {
	bees.Bee
}

func (*FSNotifyBee) ReloadOptions

func (mod *FSNotifyBee) ReloadOptions(options bees.BeeOptions)

func (*FSNotifyBee) Run

func (mod *FSNotifyBee) Run(eventChan chan bees.Event)

type FSNotifyBeeFactory

type FSNotifyBeeFactory struct {
	bees.BeeFactory
}

FSNotifyBeeFactory is a factory for FSNotifyBees.

func (*FSNotifyBeeFactory) Description

func (factory *FSNotifyBeeFactory) Description() string

Description returns the description of this Bee.

func (*FSNotifyBeeFactory) Events

func (factory *FSNotifyBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*FSNotifyBeeFactory) ID

func (factory *FSNotifyBeeFactory) ID() string

ID returns the ID of this Bee.

func (*FSNotifyBeeFactory) Image

func (factory *FSNotifyBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*FSNotifyBeeFactory) LogoColor

func (factory *FSNotifyBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*FSNotifyBeeFactory) Name

func (factory *FSNotifyBeeFactory) Name() string

Name returns the name of this Bee.

func (*FSNotifyBeeFactory) New

func (factory *FSNotifyBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*FSNotifyBeeFactory) Options

func (factory *FSNotifyBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Jump to

Keyboard shortcuts

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