Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCgroupIDMapUnsupported = errors.New("cgroup change subscription failed (fanotify not available)")
ErrCgroupIDMapUnsupported is returned when cgroup id map is not available
Functions ¶
This section is empty.
Types ¶
type ChangeNotification ¶ added in v2.5.0
ChangeNotification is the notification returned by cgroup monitor when a subscribed cgroup has been added or removed
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor resolves cgroup ids into their respective paths
func NewMonitor ¶
NewMonitor returns a new cgroup monitor for a given path
func (*Monitor) SubscribeCgroupChange ¶ added in v2.5.0
func (m *Monitor) SubscribeCgroupChange(ch chan<- ChangeNotification) error
SubscribeCgroupChange receives cgroup change notifications. This requires kernel with fanotify support for cgroup
Click to show internal directories.
Click to hide internal directories.