watcher

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package container defines types for sub-container events and also defines an interface for container operation handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerEvent

type ContainerEvent struct {
	// The type of event that occurred.
	EventType ContainerEventType

	// The full container name of the container where the event occurred.
	Name string

	// The watcher that detected this change event
	WatchSource ContainerWatchSource
}

ContainerEvent represents a

type ContainerEventType

type ContainerEventType int

SubcontainerEventType indicates an addition or deletion event.

const (
	ContainerAdd ContainerEventType = iota
	ContainerDelete
)

type ContainerWatchSource

type ContainerWatchSource int
const (
	Raw ContainerWatchSource = iota
	Rkt
)

type ContainerWatcher

type ContainerWatcher interface {
	// Registers a channel to listen for events affecting subcontainers (recursively).
	Start(events chan ContainerEvent) error

	// Stops watching for subcontainer changes.
	Stop() error
}

Directories

Path Synopsis
Package container defines types for sub-container events and also defines an interface for container operation handlers.
Package container defines types for sub-container events and also defines an interface for container operation handlers.
Package rkt implements the watcher interface for rkt
Package rkt implements the watcher interface for rkt

Jump to

Keyboard shortcuts

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