Documentation
¶
Index ¶
- func BuildHeartbeat(nodeID string, sequence int64, state nodestate.State, ...) protocol.NodeHeartbeatPayload
- func ReadStatus(dataDir string) (*control.Status, error)
- func Run(ctx context.Context, opts Options) error
- func StatusPath(dataDir string) string
- type Agent
- type CatalogRuntimeStatusProvider
- type ExistingRuntimeProvider
- type LocalRuntimeProvider
- type Options
- type RuntimeStatus
- type RuntimeStatusProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHeartbeat ¶
func StatusPath ¶
Types ¶
type CatalogRuntimeStatusProvider ¶
type CatalogRuntimeStatusProvider struct {
CatalogDir string
}
func (CatalogRuntimeStatusProvider) Prepare ¶
func (p CatalogRuntimeStatusProvider) Prepare(_ context.Context, modelID string) (RuntimeStatus, error)
type ExistingRuntimeProvider ¶
func (ExistingRuntimeProvider) Prepare ¶
func (p ExistingRuntimeProvider) Prepare(ctx context.Context, modelID string) (RuntimeStatus, error)
type LocalRuntimeProvider ¶
type LocalRuntimeProvider struct {
CatalogDir string
DataDir string
RuntimeRoot string
ModelCacheDir string
ModelQuotaBytes int64
RuntimePublicKey ed25519.PublicKey
RuntimeEnv []string
HTTPClient *http.Client
StartupTimeout time.Duration
ShutdownTimeout time.Duration
HealthInterval time.Duration
// contains filtered or unexported fields
}
func (*LocalRuntimeProvider) Close ¶
func (p *LocalRuntimeProvider) Close(ctx context.Context) error
func (*LocalRuntimeProvider) Prepare ¶
func (p *LocalRuntimeProvider) Prepare(ctx context.Context, modelID string) (RuntimeStatus, error)
type Options ¶
type Options struct {
DataDir string
CatalogDir string
CoordinatorURL string
ModelID string
AccessToken string
NodeID string
AgentVersion string
HeartbeatInterval time.Duration
HTTPClient *http.Client
Validator *protocol.Validator
Telemetry telemetry.Provider
Runtime RuntimeStatusProvider
Backoff session.Backoff
Now func() time.Time
Output io.Writer
PrivateKey ed25519.PrivateKey
ScheduleFrom string
ScheduleUntil string
ScheduleLocation *time.Location
MaxTempC int
HardTempC int
ThermalHysteresis int
PauseIdleTimeout time.Duration
ThermalPoll time.Duration
}
type RuntimeStatus ¶
type RuntimeStatusProvider ¶
type RuntimeStatusProvider interface {
Prepare(ctx context.Context, modelID string) (RuntimeStatus, error)
}
Click to show internal directories.
Click to hide internal directories.