Documentation ¶
Index ¶
- type BackingProcess
- type BndlLoader
- type CgroupManager
- type ContainerFilter
- type ContainerManager
- type ContainerNotFoundError
- type Execer
- type Mkdirer
- type NerdDeleter
- type PeaHandlesGetter
- type PeaManager
- type PeaProcess
- type PidGetter
- type Process
- type ProcessBuilder
- type ProcessManager
- type ProcessNotFoundError
- type RunContainerPea
- type RunContainerd
- func (r *RunContainerd) Attach(log lager.Logger, sandboxID, processID string, io garden.ProcessIO) (garden.Process, error)
- func (r *RunContainerd) BundleInfo(log lager.Logger, handle string) (string, goci.Bndl, error)
- func (r *RunContainerd) ContainerHandles() ([]string, error)
- func (r *RunContainerd) ContainerPeaHandles(log lager.Logger, sandboxHandle string) ([]string, error)
- func (r *RunContainerd) Create(log lager.Logger, id string, bundle goci.Bndl, pio garden.ProcessIO) error
- func (r *RunContainerd) Delete(log lager.Logger, id string) error
- func (r *RunContainerd) Events(log lager.Logger) (<-chan event.Event, error)
- func (r *RunContainerd) Exec(log lager.Logger, containerID string, gardenProcessSpec garden.ProcessSpec, ...) (garden.Process, error)
- func (r *RunContainerd) RemoveBundle(log lager.Logger, handle string) error
- func (r *RunContainerd) State(log lager.Logger, id string) (rundmc.State, error)
- func (r *RunContainerd) Stats(log lager.Logger, id string) (gardener.StatsContainerMetrics, error)
- func (r *RunContainerd) Stop() error
- type Runtime
- type RuntimeStopper
- type Statser
- type TaskNotFoundError
- type Volumizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackingProcess ¶
type BndlLoader ¶
type BndlLoader struct {
// contains filtered or unexported fields
}
func NewBndlLoader ¶
func NewBndlLoader(containerManager ContainerManager) BndlLoader
type CgroupManager ¶
func NewCgroupManager ¶
func NewCgroupManager(runcRoot, namespace string) CgroupManager
type ContainerFilter ¶
type ContainerManager ¶
type ContainerManager interface { Create(log lager.Logger, containerID string, spec *specs.Spec, containerRootUID, containerRootGID uint32, processIO func() (io.Reader, io.Writer, io.Writer)) error Delete(log lager.Logger, containerID string) error Exec(log lager.Logger, containerID, processID string, spec *specs.Process, processIO func() (io.Reader, io.Writer, io.Writer, bool)) (BackingProcess, error) State(log lager.Logger, containerID string) (int, string, error) GetContainerPID(log lager.Logger, containerID string) (uint32, error) OOMEvents(log lager.Logger) <-chan *apievents.TaskOOM Spec(log lager.Logger, containerID string) (*specs.Spec, error) BundleIDs(filterLabels ...ContainerFilter) ([]string, error) RemoveBundle(lager.Logger, string) error }
type ContainerNotFoundError ¶
type ContainerNotFoundError struct {
Handle string
}
func (ContainerNotFoundError) Error ¶
func (ce ContainerNotFoundError) Error() string
type NerdDeleter ¶
type NerdDeleter struct {
// contains filtered or unexported fields
}
func NewDeleter ¶
func NewDeleter(runtime Runtime) *NerdDeleter
type PeaHandlesGetter ¶
type PeaManager ¶
type PeaProcess ¶
type PeaProcess struct { Process // contains filtered or unexported fields }
func NewPeaProcess ¶
func NewPeaProcess(log lager.Logger, process Process, peaManager PeaManager, volumizer Volumizer) *PeaProcess
func (*PeaProcess) Wait ¶
func (p *PeaProcess) Wait() (int, error)
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func NewProcess(log lager.Logger, nerdProcess BackingProcess, cleanupProcessDirsOnWait bool) *Process
type ProcessBuilder ¶
type ProcessManager ¶
type ProcessManager interface { GetProcess(log lager.Logger, containerID, processID string) (BackingProcess, error) GetTask(log lager.Logger, id string) (BackingProcess, error) }
type ProcessNotFoundError ¶
func (ProcessNotFoundError) Error ¶
func (pe ProcessNotFoundError) Error() string
type RunContainerPea ¶
type RunContainerPea struct {
// contains filtered or unexported fields
}
func NewRunContainerPea ¶
func NewRunContainerPea(peaManager PeaManager, processManager ProcessManager, volumizer Volumizer, cleanupProcessDirsOnWait bool) *RunContainerPea
type RunContainerd ¶
type RunContainerd struct {
// contains filtered or unexported fields
}
func New ¶
func New(containerManager ContainerManager, processManager ProcessManager, processBuilder ProcessBuilder, userLookupper users.UserLookupper, execer Execer, statser Statser, useContainerdForProcesses bool, cgroupManager CgroupManager, mkdirer Mkdirer, peaHandlesGetter PeaHandlesGetter, cleanupProcessDirsOnWait bool, runtimeStopper RuntimeStopper) *RunContainerd
func (*RunContainerd) BundleInfo ¶
func (*RunContainerd) ContainerHandles ¶
func (r *RunContainerd) ContainerHandles() ([]string, error)
func (*RunContainerd) ContainerPeaHandles ¶
func (r *RunContainerd) ContainerPeaHandles(log lager.Logger, sandboxHandle string) ([]string, error)
func (*RunContainerd) Delete ¶
func (r *RunContainerd) Delete(log lager.Logger, id string) error
func (*RunContainerd) Events ¶
func (r *RunContainerd) Events(log lager.Logger) (<-chan event.Event, error)
func (*RunContainerd) Exec ¶
func (r *RunContainerd) Exec(log lager.Logger, containerID string, gardenProcessSpec garden.ProcessSpec, gardenIO garden.ProcessIO) (garden.Process, error)
func (*RunContainerd) RemoveBundle ¶
func (r *RunContainerd) RemoveBundle(log lager.Logger, handle string) error
func (*RunContainerd) State ¶
func (r *RunContainerd) State(log lager.Logger, id string) (rundmc.State, error)
func (*RunContainerd) Stats ¶
func (r *RunContainerd) Stats(log lager.Logger, id string) (gardener.StatsContainerMetrics, error)
func (*RunContainerd) Stop ¶
func (r *RunContainerd) Stop() error
type RuntimeStopper ¶
type RuntimeStopper interface {
Stop() error
}
type Statser ¶
type Statser interface {
Stats(log lager.Logger, id string) (gardener.StatsContainerMetrics, error)
}
type TaskNotFoundError ¶
type TaskNotFoundError struct {
Handle string
}
func (TaskNotFoundError) Error ¶
func (te TaskNotFoundError) Error() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
nerdfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
privcheckerfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.