MCPcopy Index your code
hub / github.com/moby/swarmkit / Network

Struct Network

api/objects.pb.go:454–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452var xxx_messageInfo_NetworkAttachment proto.InternalMessageInfo
453
454type Network struct {
455 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
456 Meta Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"`
457 Spec NetworkSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"`
458 // Driver specific operational state provided by the network driver.
459 DriverState *Driver `protobuf:"bytes,4,opt,name=driver_state,json=driverState,proto3" json:"driver_state,omitempty"`
460 // Runtime state of IPAM options. This may not reflect the
461 // ipam options from NetworkSpec.
462 IPAM *IPAMOptions `protobuf:"bytes,5,opt,name=ipam,proto3" json:"ipam,omitempty"`
463 // PendingDelete indicates that this network's deletion has been requested.
464 // Services, as well as all service-level resources, can only be deleted
465 // after all the service's containers have properly shut down
466 // when a user requests a deletion, we just flip this flag
467 // the deallocator will take it from there
468 // PendingDelete indicates that this network's deletion has been requested.
469 // Services, as well as all service-level resources, can only be deleted
470 // after all of the service's containers have properly shut down.
471 // When a user requests a deletion of this network, we just flip this flag
472 // the deallocator will take it from there - it will start monitoring
473 // the services that still use this service, and proceed to delete
474 // this network when all of these services are gone
475 PendingDelete bool `protobuf:"varint,6,opt,name=pending_delete,json=pendingDelete,proto3" json:"pending_delete,omitempty"`
476 // Extra encodes application-specific information about the live state
477 // of the network. The syntax and semantics of the value are dictated by
478 // the network allocator implementation.
479 Extra *types.Any `protobuf:"bytes,7,opt,name=extra,proto3" json:"extra,omitempty"`
480}
481
482func (m *Network) Reset() { *m = Network{} }
483func (*Network) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected