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

Function NewEnvironment

test/fixtures/projects.go:211–216  ·  view source on GitHub ↗
(spaceID string, envID string, name string)

Source from the content-addressed store, hash-verified

209}
210
211func NewEnvironment(spaceID string, envID string, name string) *environments.Environment {
212 result := environments.NewEnvironment(name)
213 result.ID = envID
214 result.SpaceID = spaceID
215 return result
216}
217
218func NewEphemeralEnvironment(spaceID string, envID string, name string, parentEnvironmentID string) *ephemeralenvironments.EphemeralEnvironment {
219 result := ephemeralenvironments.NewEphemeralEnvironment(name, parentEnvironmentID, spaceID)

Calls

no outgoing calls