MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / GetOperation

Function GetOperation

testutil/test_results.go:115–127  ·  view source on GitHub ↗
(processID, spaceID string, mtaID string, namespace string, processType string, state string, acquiredLock bool)

Source from the content-addressed store, hash-verified

113}
114
115func GetOperation(processID, spaceID string, mtaID string, namespace string, processType string, state string, acquiredLock bool) *models.Operation {
116 return &models.Operation{
117 ProcessID: processID,
118 ProcessType: processType,
119 StartedAt: "2016-03-04T14:23:24.521Z[Etc/UTC]",
120 SpaceID: spaceID,
121 User: "admin",
122 State: models.State(state),
123 AcquiredLock: acquiredLock,
124 MtaID: mtaID,
125 Namespace: namespace,
126 }
127}
128
129func GetMta(id, version string, namespace string, modules []*models.Module, services []string) *models.Mta {
130 return &models.Mta{

Calls 1

StateTypeAlias · 0.92

Tested by

no test coverage detected