cron

package
v0.0.0-...-28b0f66 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2017 License: MIT, Zlib Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrEmptyEndpointArray is an error raised when the external endpoint source array is empty.
	ErrEmptyEndpointArray = dockm.Error("External endpoint source is empty")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	Cron            *cron.Cron
	EndpointService dockm.EndpointService
	// contains filtered or unexported fields
}

Watcher represents a service for managing crons.

func NewWatcher

func NewWatcher(endpointService dockm.EndpointService, syncInterval string) *Watcher

NewWatcher initializes a new service.

func (*Watcher) WatchEndpointFile

func (watcher *Watcher) WatchEndpointFile(endpointFilePath string) error

WatchEndpointFile starts a cron job to synchronize the endpoints from a file

Jump to

Keyboard shortcuts

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