procnotify

package
v0.0.0-...-d8e83ae Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name       string   `json:"name"`
	Argv       []string `json:"argv"`
	StableName bool     `json:"stable_name"`
}

type Notifier

type Notifier struct {
	Debug bool
	// contains filtered or unexported fields
}

func NewNotifier

func NewNotifier(targets []Config, pr *podfind.PodResolver, sinkPath string) *Notifier

func (*Notifier) Dump

func (notif *Notifier) Dump(w io.Writer) error

func (*Notifier) HasTargets

func (notif *Notifier) HasTargets() bool

func (*Notifier) IsCurrent

func (notif *Notifier) IsCurrent() bool

func (*Notifier) Loop

func (notif *Notifier) Loop(hostname string, interval time.Duration, autoTrack bool)

func (*Notifier) MatchArgv

func (notif *Notifier) MatchArgv(argv []string) (procfind.Entry, bool)

func (*Notifier) Once

func (notif *Notifier) Once(hostname string)

func (*Notifier) Scan

func (notif *Notifier) Scan() error

func (*Notifier) Update

func (notif *Notifier) Update(hostname string, interval int)

type Proc

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

type Target

type Target struct {
	Config
	Pids []procfind.Pid
}

func (*Target) AddPid

func (t *Target) AddPid(p procfind.Pid)

type TargetConfigs

type TargetConfigs struct {
	Configs []Config
}

Jump to

Keyboard shortcuts

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