Documentation
¶
Overview ¶
Package substrate connects Obot's instance controller to Substrate v0.3.0.
Index ¶
- Constants
- func Ref(instance *v1.AgentInstance) *pb.ObjectRef
- func ValidateWorkerScheduling(selector map[string]string, tolerations []corev1.Toleration) error
- type Client
- func (c *Client) CollectOrphans(ctx context.Context, instances []v1.AgentInstance, ...) error
- func (c *Client) DeleteExecution(ctx context.Context, ref *pb.ObjectRef) error
- func (c *Client) EnsureClaude(ctx context.Context, instance *v1.AgentInstance, secrets map[string]string, ...) (*pb.Actor, error)
- func (c *Client) ReconcileWorkerPools(ctx context.Context, environments []types.ClaudeEnvironment, ...) error
- type Config
Constants ¶
View Source
const (
Finalizer = "obot.obot.ai/substrate-agent"
)
Variables ¶
This section is empty.
Functions ¶
func ValidateWorkerScheduling ¶
func ValidateWorkerScheduling(selector map[string]string, tolerations []corev1.Toleration) error
Types ¶
type Client ¶
type Client struct {
Kube kclient.Client
Control pb.ControlClient
Config Config
}
func (*Client) CollectOrphans ¶
func (c *Client) CollectOrphans(ctx context.Context, instances []v1.AgentInstance, deleteExecution func(context.Context, *pb.ObjectRef) error) error
CollectOrphans recovers resources left behind after interrupted provisioning or database loss. Only Obot execution templates are considered; golden actors are collected by Substrate when their owning template is deleted.
func (*Client) DeleteExecution ¶
func (*Client) EnsureClaude ¶
func (*Client) ReconcileWorkerPools ¶
func (c *Client) ReconcileWorkerPools(ctx context.Context, environments []types.ClaudeEnvironment, inUse map[string]bool, mutate func(context.Context, string, *types.ClaudeEnvironment, func(context.Context) error) error) error
Worker pools belong to environments; each environment has an independent capacity budget, shared by all its matching profiles and sessions.
Click to show internal directories.
Click to hide internal directories.