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)
}

go:generate counterfeiter . Depot

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)
}

go:generate counterfeiter . PidFileReader

Directories

Path Synopsis
pidfakes Code generated by counterfeiter.