MCPcopy
hub / github.com/cortexlabs/cortex / getDeploymentBytes

Function getDeploymentBytes

cli/cmd/deploy.go:139–150  ·  view source on GitHub ↗
(configPath string)

Source from the content-addressed store, hash-verified

137}
138
139func getDeploymentBytes(configPath string) (map[string][]byte, error) {
140 configBytes, err := files.ReadFileBytes(configPath)
141 if err != nil {
142 return nil, err
143 }
144
145 uploadBytes := map[string][]byte{
146 "config": configBytes,
147 }
148
149 return uploadBytes, nil
150}
151
152func mergeResultMessages(results []schema.DeployResult) string {
153 var okMessages []string

Callers 1

deploy.goFile · 0.85

Calls 1

ReadFileBytesFunction · 0.92

Tested by

no test coverage detected