MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / NewSpace

Function NewSpace

test/fixtures/projects.go:27–31  ·  view source on GitHub ↗

This file contains utility functions for creating mock objects used in unit tests. Please try not to put any actual logic in here, that should go in testutil.

(spaceID string, name string)

Source from the content-addressed store, hash-verified

25// Please try not to put any actual logic in here, that should go in testutil.
26
27func NewSpace(spaceID string, name string) *spaces.Space {
28 result := spaces.NewSpace(name)
29 result.ID = spaceID
30 return result
31}
32
33func NewDeploymentProcessForProject(spaceID string, projectID string) *deployments.DeploymentProcess {
34 result := deployments.NewDeploymentProcess(projectID)

Calls

no outgoing calls