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

Function EmptyDeploymentPreviews

test/fixtures/projects.go:266–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264}
265
266func EmptyDeploymentPreviews() []*deployments.DeploymentPreview {
267 // Define the Form instance
268 formValues := map[string]string{}
269 formElements := []*deployments.Element{}
270 form := deployments.NewFormWithValuesAndElements(formValues, formElements)
271
272 deploymentPreview := &deployments.DeploymentPreview{
273 Form: form,
274 StepsToExecute: []*deployments.DeploymentTemplateStep{},
275 UseGuidedFailureModeByDefault: false,
276 }
277
278 // Serialize the DeploymentPreview instances to JSON
279 deploymentPreviews := []*deployments.DeploymentPreview{deploymentPreview}
280
281 return deploymentPreviews
282}
283
284func NewDeploymentPreviews() []*deployments.DeploymentPreview {
285 newDisplaySettings := &resources.DisplaySettings{}

Callers 1

Calls

no outgoing calls

Tested by 1