managerruntime

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	Run(ctx context.Context) error
	Stop() error
	Status() DaemonStatus
}

type DaemonHub

type DaemonHub interface {
	Register(id DaemonID, daemon Daemon) error
	IsRegistered(id DaemonID) bool
	Unregister(id DaemonID) error
	Get(id DaemonID) (daemon Daemon, registered bool)
	Run(id DaemonID) error
	Stop(id DaemonID) error
}

func NewDaemonHub

func NewDaemonHub(ctx context.Context) DaemonHub

type DaemonID

type DaemonID types.UID

type DaemonStatus

type DaemonStatus interface {
	Running() bool
	RestartCount() int32
	TerminationMessage() string
}

type ManagerRuntime

type ManagerRuntime interface {
	Name() string
	Manager() manager.Manager
	Daemon
}

func NewManagerRuntime

func NewManagerRuntime(name string,
	logger logr.Logger,
	config *rest.Config,
	options *manager.Options,
	initFunc func(mgr manager.Manager) error) (ManagerRuntime, error)

Jump to

Keyboard shortcuts

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