pid

package
v0.0.0-...-b9ea02f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerPidGetter

type ContainerPidGetter struct {
	Depot         Depot
	PidFileReader PidFileReader
}

func (*ContainerPidGetter) GetPeaPid

func (f *ContainerPidGetter) GetPeaPid(logger lager.Logger, containerHandle, peaID string) (int, error)

func (*ContainerPidGetter) GetPid

func (f *ContainerPidGetter) GetPid(logger lager.Logger, containerHandle string) (int, error)

type Depot

type Depot interface {
	Lookup(lager.Logger, string) (string, error)
}

type FileReader

type FileReader struct {
	Clock         clock.Clock
	Timeout       time.Duration
	SleepInterval time.Duration
}

func (*FileReader) Pid

func (p *FileReader) Pid(pidFilePath string) (int, error)

type PidFileReader

type PidFileReader interface {
	Pid(pidFilePath string) (int, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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