Documentation
¶
Overview ¶
Package containerapi reconciles runtime objects using exact ownership labels. A failed inspection is never evidence that an object is absent.
Index ¶
- Constants
- func CheckSelection(ctx context.Context, r Runtime, s Selection) error
- func Identity(ctx context.Context, runtime string) (string, error)
- func IdentityAt(ctx context.Context, runtime string, ref *network.Reference) (string, error)
- func Inspect(ctx context.Context, owner Owner) (id string, exists bool, err error)
- func Output(ctx context.Context, runtime string, args ...string) ([]byte, error)
- func OutputAt(ctx context.Context, runtime string, ref *network.Reference, args ...string) ([]byte, error)
- func Remove(ctx context.Context, owner Owner) error
- func ValidateImage(image Image) error
- type Attachment
- type CreateRequest
- type ExecRequest
- type ExecStatus
- type Image
- type Mount
- type Object
- type Owner
- type Runtime
- type Selection
- type Streams
Constants ¶
View Source
const DockerSDK = "docker-api-v1"
View Source
const PodmanCLI = "podman-cli-v1"
Variables ¶
This section is empty.
Functions ¶
func IdentityAt ¶
func ValidateImage ¶
Types ¶
type Attachment ¶
Attachment must be acquired before Start. Copy drains the separated output streams and sends stdin EOF. Close interrupts blocked copies on cancellation.
type CreateRequest ¶
type ExecRequest ¶
type ExecStatus ¶
type Runtime ¶
type Runtime interface {
Close() error
Identity(context.Context) (string, error)
ResolveImage(context.Context, string) (Image, error)
Create(context.Context, CreateRequest) (string, error)
Attach(context.Context, string) (Attachment, error)
Start(context.Context, string) error
Wait(context.Context, string) (int, error)
ExecCreate(context.Context, string, ExecRequest) (string, error)
ExecAttach(context.Context, string) (Attachment, error)
ExecInspect(context.Context, string) (ExecStatus, error)
Inspect(context.Context, string) (Object, bool, error)
Remove(context.Context, string) error
}
type Selection ¶
type Selection struct {
Transport string `json:"transport"`
Endpoint string `json:"endpoint,omitempty"`
Identity string `json:"identity"`
Executable string `json:"executable,omitempty"`
Environment []string `json:"environment,omitempty"`
}
Selection is retained with an invocation. Reopening never consults the current Docker context or environment. Daemon identity is checked before every launch and cleanup; a transport failure cannot prove absence.
Click to show internal directories.
Click to hide internal directories.