surveillance

package
v0.0.0-...-c745092 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeDetection

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

func NewChangeDetection

func NewChangeDetection(cfg *configuration.Configuration) (*ChangeDetection, error)

func (*ChangeDetection) Start

func (c *ChangeDetection) Start()

func (*ChangeDetection) Stop

func (c *ChangeDetection) Stop()

func (*ChangeDetection) Subscribe

func (c *ChangeDetection) Subscribe(sub chan bool)

type Control

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

func NewControl

func NewControl(env *Environment, n *Notification) *Control

func (*Control) Run

func (c *Control) Run()

func (*Control) Stop

func (c *Control) Stop()

type Detection

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

func NewDetection

func NewDetection(env *Environment, n *Notification) (*Detection, error)

func (*Detection) Run

func (d *Detection) Run() error

type Environment

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

func NewEnvironment

func NewEnvironment(cfg *configuration.Configuration) (*Environment, error)

func (*Environment) Run

func (s *Environment) Run() error

func (*Environment) Teardown

func (s *Environment) Teardown()

type Filter

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

func NewFilter

func NewFilter(cfg *configuration.Configuration) *Filter

func (*Filter) IsBuildDir

func (f *Filter) IsBuildDir(path string) (bool, error)

func (*Filter) IsExcludedDir

func (f *Filter) IsExcludedDir(path string) (bool, error)

func (*Filter) IsExcludedFile

func (f *Filter) IsExcludedFile(path string) (bool, error)

func (*Filter) IsHiddenDir

func (f *Filter) IsHiddenDir(path string) bool

func (*Filter) IsIgnoredDir

func (f *Filter) IsIgnoredDir(path string) (bool, error)

func (*Filter) IsIgnoredExt

func (f *Filter) IsIgnoredExt(path string) bool

func (*Filter) IsIgnoredFile

func (f *Filter) IsIgnoredFile(path string) (bool, error)

func (*Filter) IsIncludedDir

func (f *Filter) IsIncludedDir(dir string) (bool, error)

func (*Filter) IsLogDir

func (f *Filter) IsLogDir(path string) (bool, error)

type Notification

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

func NewNotification

func NewNotification() *Notification

func NewSubscriberNotification

func NewSubscriberNotification(sub chan bool) *Notification

func (*Notification) ChangeDetected

func (n *Notification) ChangeDetected() chan bool

func (*Notification) NotfiyChange

func (n *Notification) NotfiyChange()

func (*Notification) NotifyNoChange

func (n *Notification) NotifyNoChange()

Jump to

Keyboard shortcuts

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