Documentation
¶
Index ¶
- func Configure(opts ...option)
- func DiagsSources() diags.SourceProvider
- func PMStatus(cmd *cobra.Command, args []string) error
- func PMStatusDetail(ctx context.Context, client api.API, names ...string) error
- func PMStatusTable(ctx context.Context, client api.API) error
- func PMTerminate(cmd *cobra.Command, _ []string) error
- func PrettyChildStatus(s *api.ChildWithStatus, out io.Writer)
- func WithTask(interval, timeout time.Duration, run func(ctx context.Context)) option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiagsSources ¶ added in v0.4.0
func DiagsSources() diags.SourceProvider
func PMStatusDetail ¶
func PrettyChildStatus ¶
func PrettyChildStatus(s *api.ChildWithStatus, out io.Writer)
func WithTask ¶
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.
Click to show internal directories.
Click to hide internal directories.