docker

package
v0.0.0-...-fb2e872 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps the official Docker SDK client.

func NewClient

func NewClient() *Client

NewClient initializes and returns a verified Docker client. It performs a connection check (Ping) upon initialization. If the Docker daemon is unreachable, the function panics to prevent the service from starting in a broken state (Fail-Fast).

func (*Client) Run

func (c *Client) Run(ctx context.Context, code string, language string) (string, error)

Run executes the provided code within an ephemeral Docker container. It enforces resource limits (memory) and context cancellation.

Jump to

Keyboard shortcuts

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