juju: github.com/juju/juju/worker/common/reboot Index | Files

package reboot

import "github.com/juju/juju/worker/common/reboot"

Index

Package Files

monitor.go

type Monitor Uses

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

Monitor leverages juju's transient file mechanism to deliver one-off machine reboot notifications to interested entities.

func NewMonitor Uses

func NewMonitor(transientDir string) *Monitor

NewMonitor returns a reboot monitor instance that stores its internal state into transientDir.

func (*Monitor) PurgeState Uses

func (m *Monitor) PurgeState(tag names.Tag) error

PurgeState deletes any internal state maintained by the monitor for a particular entity.

func (*Monitor) Query Uses

func (m *Monitor) Query(tag names.Tag) (bool, error)

Check for a pending reboot notification for the specified tag. Once the notification is consumed, future calls to Check will always return false.

Package reboot imports 5 packages (graph) and is imported by 5 packages. Updated 2020-07-22. Refresh now. Tools for package owners.