Resource is a top-level object with externally defined content and indexing. SwarmKit can serve as a store for these objects without understanding their meanings.
| 673 | // SwarmKit can serve as a store for these objects without understanding their |
| 674 | // meanings. |
| 675 | type Resource struct { |
| 676 | ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 677 | Meta Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"` |
| 678 | Annotations Annotations `protobuf:"bytes,3,opt,name=annotations,proto3" json:"annotations"` |
| 679 | // Kind identifies this class of object. It is essentially a namespace |
| 680 | // to keep IDs or indices from colliding between unrelated Resource |
| 681 | // objects. This must correspond to the name of an Extension. |
| 682 | Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` |
| 683 | // Payload bytes. This data is not interpreted in any way by SwarmKit. |
| 684 | // By convention, it should be a marshalled protocol buffers message. |
| 685 | Payload *types.Any `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` |
| 686 | } |
| 687 | |
| 688 | func (m *Resource) Reset() { *m = Resource{} } |
| 689 | func (*Resource) ProtoMessage() {} |
nothing calls this directly
no outgoing calls
no test coverage detected