MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / Instance

Struct Instance

daemon/model/instance.go:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24type Instance struct {
25 InstanceID string `json:"instance_id"`
26 Name string `json:"name"`
27 Type string `json:"type"`
28 Image string `json:"image"`
29 Extra map[string]string `json:"extra"`
30 DeviceInfo map[string]DeviceRequireInfo `json:"device_need"`
31 Resource ResourceLimit `json:"resource"`
32 NodeIndex int `json:"node_index"`
33 Connections map[string]ConnectionInfo `json:"connections"`
34 Start bool `json:"start"`
35}
36
37func (i *Instance) IsCreated() bool {
38 _, err := utils.DockerClient.ContainerInspect(context.Background(), fmt.Sprintf(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected