MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / NewSpecStore

Function NewSpecStore

utils/spec_store.go:19–21  ·  view source on GitHub ↗

NewSpecStore creates a SpecStore from API-fetched specs.

(specs map[string]api.GpuSpecConfig)

Source from the content-addressed store, hash-verified

17
18// NewSpecStore creates a SpecStore from API-fetched specs.
19func NewSpecStore(specs map[string]api.GpuSpecConfig) *SpecStore {
20 return &SpecStore{specs: specs}
21}
22
23// NewSpecStoreWithAvailability creates a SpecStore with optional per-spec availability.
24func NewSpecStoreWithAvailability(specs map[string]api.GpuSpecConfig, availability map[string]string) *SpecStore {

Calls

no outgoing calls