MCPcopy Create free account
hub / github.com/cloudbase/garm / extraSpecsFromFile

Function extraSpecsFromFile

cmd/garm-cli/cmd/pool.go:635–641  ·  view source on GitHub ↗
(specsFile string)

Source from the content-addressed store, hash-verified

633}
634
635func extraSpecsFromFile(specsFile string) (json.RawMessage, error) {
636 data, err := os.ReadFile(specsFile)
637 if err != nil {
638 return nil, fmt.Errorf("error opening specs file: %w", err)
639 }
640 return asRawMessage(data)
641}
642
643func asRawMessage(data []byte) (json.RawMessage, error) {
644 // unmarshaling and marshaling again will remove new lines and verify we

Callers 2

scalesets.goFile · 0.85
pool.goFile · 0.85

Calls 1

asRawMessageFunction · 0.85

Tested by

no test coverage detected