docker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package docker is a thin SDK adapter for the dedicated, colocated Runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Operations

func Operations() providercontract.Operations

Operations is this adapter's complete authored resource contract.

func Policy

func Policy() sandbox.DeploymentPolicy

func ValidateResources

func ValidateResources(r sandbox.Resources) error

func ValidateSpecification

func ValidateSpecification(s sandbox.DeploymentSpec) error

Types

type Config

type Config struct {
	InstallationID, Image, Network, Seccomp string
	ExtraHosts                              []string
	NestedSandbox                           bool
	Resources                               *sandbox.Resources
}

Config is trusted operator configuration, never public Session input. The immutable image contains the qualified native profile and all Runtime binaries. Seccomp is JSON content, not a path on the Docker host. Network must provide trusted daemon/model connectivity; native tool network policy is in the image.

type Provider

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

func New

func New(c *client.Client, config Config) (*Provider, error)

func (*Provider) Create

func (p *Provider) Create(ctx context.Context, b sandbox.Bootstrap) (sandbox.Info, error)

func (*Provider) DeleteSnapshot

func (*Provider) DiscoverSelection

func (p *Provider) DiscoverSelection(context.Context, sandbox.Selection) (sandbox.Selection, error)

func (*Provider) GetInfo

func (p *Provider) GetInfo(ctx context.Context, r sandbox.Reference) (sandbox.Info, error)

func (*Provider) Initial

func (*Provider) Kill

func (p *Provider) Kill(ctx context.Context, r sandbox.Reference) error

Kill is idempotent only for absence, not for errors or foreign ownership. It checks all resources before removing any and confirms removal of named volumes.

func (*Provider) KillCompute

func (*Provider) ObservationProviderType

func (*Provider) ObservationProviderType() string

func (*Provider) Observe

func (p *Provider) Observe(ctx context.Context, target runtimeobs.Target) (runtimeobs.Sample, error)

Observe is read-only. Inspect verifies allocation ownership before Docker statistics are requested; it never renews or changes the container.

func (*Provider) ObserveBatch

func (*Provider) ProviderOperations

func (*Provider) ProviderOperations() providercontract.Operations

func (*Provider) Renew

func (p *Provider) Renew(ctx context.Context, r sandbox.Reference) (sandbox.Info, error)

Renew observes Docker state. Docker has no lease; service-owned expiry must be managed durably by Core. Never synthesize an expiry or revive a stopped Runtime.

func (*Provider) ResolveObservationSource

func (p *Provider) ResolveObservationSource(context.Context) (runtimeobs.Source, error)

func (*Provider) Resume

func (*Provider) RunCommand

func (p *Provider) RunCommand(ctx context.Context, r sandbox.Reference, command sandbox.Command) (sandbox.CommandResult, error)

RunCommand is for trusted initialization only. Closing an exec attachment does not kill its process. On any uncertain outcome, the caller must reclaim the allocation with Kill instead of admitting native work or replaying the command.

func (*Provider) Suspend

func (*Provider) VerifyCredential

func (p *Provider) VerifyCredential(context.Context, []sandbox.Reference) error

Jump to

Keyboard shortcuts

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