pm

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(opts ...option)

func DiagsSources added in v0.4.0

func DiagsSources() diags.SourceProvider

func PMStatus

func PMStatus(cmd *cobra.Command, args []string) error

func PMStatusDetail

func PMStatusDetail(ctx context.Context, client api.API, names ...string) error

func PMStatusTable

func PMStatusTable(ctx context.Context, client api.API) error

func PMTerminate

func PMTerminate(cmd *cobra.Command, _ []string) error

func PrettyChildStatus

func PrettyChildStatus(s *api.ChildWithStatus, out io.Writer)

func WithTask

func WithTask(interval, timeout time.Duration, run func(ctx context.Context)) option

WithTask adds a periodic background task to the pm daemon.

The task will run at the specified interval. If a run overruns the interval, the missed tick(s) will be skipped so that it doesn't run continuously.

If the timeout is greater than zero, the context passed to the task will be canceled after the timeout, otherwise it will inherit the pm daemon's context that is canceled when the daemon is asked to shut down.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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