logstate

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogManager

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

func NewLogManager

func NewLogManager() *LogManager

func (*LogManager) Ensure

func (m *LogManager) Ensure() error

Ensure implements overlord.StateManager.

func (*LogManager) PlanChanged

func (m *LogManager) PlanChanged(pl *plan.Plan)

PlanChanged is called by the service manager when the plan changes. Based on the new plan, we will Stop old gatherers and start new ones.

func (*LogManager) ServiceStarted

func (m *LogManager) ServiceStarted(service *plan.Service, buffer *servicelog.RingBuffer)

ServiceStarted notifies the log manager that the named service has started, and provides a reference to the service's log buffer.

func (*LogManager) Stop

func (m *LogManager) Stop()

Stop implements overlord.StateStopper and stops all log forwarding.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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