Documentation
¶
Overview ¶
Package instance tracks the state of running klausctl container instances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerName ¶
ContainerName returns the container name for a given instance name.
Types ¶
type Instance ¶
type Instance struct {
// Name is the instance name (default: "default").
Name string `json:"name"`
// ContainerID is the container ID returned by the runtime.
ContainerID string `json:"containerID"`
// Runtime is the container runtime used ("docker" or "podman").
Runtime string `json:"runtime"`
// Personality is the OCI reference of the resolved personality (empty when none).
Personality string `json:"personality,omitempty"`
// Image is the container image reference.
Image string `json:"image"`
// Port is the host port mapped to the MCP endpoint.
Port int `json:"port"`
// Workspace is the host workspace directory.
Workspace string `json:"workspace"`
// StartedAt is when the container was started.
StartedAt time.Time `json:"startedAt"`
}
Instance holds the state of a running klausctl container.
func (*Instance) ContainerName ¶
ContainerName returns the container name used by the runtime.
Click to show internal directories.
Click to hide internal directories.