MCPcopy Create free account
hub / github.com/nhost/nhost / Cloud

Function Cloud

cli/cmd/dev/cloud.go:277–313  ·  view source on GitHub ↗
(
	ctx context.Context,
	ce *clienv.CliEnv,
	appVersion string,
	httpPort uint,
	useTLS bool,
	applySeeds bool,
	ports dockercompose.ExposePorts,
	dashboardVersion string,
	configserverImage string,
	caCertificatesPath string,
	downOnError bool,
	proj *graphql.AppSummaryFragment,
	postgresURL string,
)

Source from the content-addressed store, hash-verified

275}
276
277func Cloud(
278 ctx context.Context,
279 ce *clienv.CliEnv,
280 appVersion string,
281 httpPort uint,
282 useTLS bool,
283 applySeeds bool,
284 ports dockercompose.ExposePorts,
285 dashboardVersion string,
286 configserverImage string,
287 caCertificatesPath string,
288 downOnError bool,
289 proj *graphql.AppSummaryFragment,
290 postgresURL string,
291) error {
292 dc := dockercompose.New(ce.Path.WorkingDir(), ce.Path.DockerCompose(), ce.ProjectName())
293
294 if err := cloud(
295 ctx,
296 ce,
297 appVersion,
298 dc,
299 httpPort,
300 useTLS,
301 applySeeds,
302 ports,
303 dashboardVersion,
304 configserverImage,
305 caCertificatesPath,
306 proj,
307 postgresURL,
308 ); err != nil {
309 return upErr(ce, dc, downOnError, err) //nolint:contextcheck
310 }
311
312 return nil
313}

Callers 1

commandCloudFunction · 0.70

Calls 6

NewFunction · 0.92
cloudFunction · 0.85
upErrFunction · 0.85
WorkingDirMethod · 0.80
DockerComposeMethod · 0.80
ProjectNameMethod · 0.80

Tested by

no test coverage detected