MCPcopy Create free account
hub / github.com/eth-easl/dirigent / createMetadata

Function createMetadata

internal/worker_node/sandbox/firecracker/runtime.go:113–126  ·  view source on GitHub ↗
(in *proto.ServiceInfo, vmcs *VMControlStructure)

Source from the content-addressed store, hash-verified

111}
112
113func createMetadata(in *proto.ServiceInfo, vmcs *VMControlStructure) *managers.Metadata {
114 return &managers.Metadata{
115 ServiceName: in.Name,
116
117 RuntimeMetadata: FirecrackerMetadata{
118 VMCS: vmcs,
119 },
120
121 IP: vmcs.NetworkConfiguration.TapInternalIP,
122 GuestPort: int(in.PortForwarding.GuestPort),
123
124 ExitStatusChannel: make(chan uint32),
125 }
126}
127
128func (fcr *Runtime) CreateSandbox(ctx context.Context, in *proto.ServiceInfo) (*proto.SandboxCreationStatus, error) {
129 start := time.Now()

Callers 1

CreateSandboxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected