MCPcopy
hub / github.com/cloudfoundry/cli / NewProcessInstance

Function NewProcessInstance

actor/v7action/process_instance.go:15–21  ·  view source on GitHub ↗
(index int64, state constant.ProcessInstanceState, uptime time.Duration)

Source from the content-addressed store, hash-verified

13type ProcessInstance ccv3.ProcessInstance
14
15func NewProcessInstance(index int64, state constant.ProcessInstanceState, uptime time.Duration) ProcessInstance {
16 return ProcessInstance(ccv3.ProcessInstance{
17 Index: index,
18 State: state,
19 Uptime: uptime,
20 })
21}
22
23// Running will return true if the instance is running.
24func (instance ProcessInstance) Running() bool {

Callers 1

Calls 1

ProcessInstanceTypeAlias · 0.70

Tested by

no test coverage detected