nurse

package
v0.0.0-...-21f9509 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MaxExecutionTime = 60 * time.Minute

Variables

This section is empty.

Functions

func AvoidOOM

func AvoidOOM(ctx context.Context, memoryLimit int) error

func AwaitDocker

func AwaitDocker(ctx context.Context) error

func Cleanup

func Cleanup(ctx context.Context, dindMemoryLimit int, dockerPath string, upperDiskUsageLimit, lowerDiskUsageLimit int)

func CollectGargabe

func CollectGargabe(ctx context.Context, dockerPath string, upperDiskUsageLimit, lowerDiskUsageLimit int) error

func MemoryOfPID

func MemoryOfPID(ctx context.Context, pid int) (int, error)

func PIDofDinD

func PIDofDinD(ctx context.Context) (int, error)

func RestartDockerd

func RestartDockerd(ctx context.Context) error

func Setup

func Setup(ctx context.Context, buildkitdToml string) error

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service runs the wedding server.

func NewService

func NewService(targetURL *url.URL, dindMemoryLimit, parallelRequestLimit int, dockerPath string, upperDiskUsageLimit, lowerDiskUsageLimit int) *Service

NewService creates a new service server and initiates the routes.

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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