pidimpl

package
v0.0.0-...-ef3af43 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package pidimpl writes the current PID to a file, ensuring that the file doesn't exist or doesn't contain a PID for a running process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	PIDfilePath string
}

Params are the input parameters for the component.

func NewParams

func NewParams(pidfilePath string) Params

NewParams returns a new Params with the given values.

type Provides

type Provides struct {
	Comp pid.Component
}

Provides defines the output of the pid component.

func NewComponent

func NewComponent(reqs Requires) (Provides, error)

NewComponent creates a new pid component.

type Requires

type Requires struct {
	Lc     compdef.Lifecycle
	Log    log.Component
	Params Params
}

Requires defines the dependencies for the pid component.

Jump to

Keyboard shortcuts

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