MCPcopy Create free account
hub / github.com/moby/swarmkit / Resource

Struct Resource

api/objects.pb.go:675–686  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

673// SwarmKit can serve as a store for these objects without understanding their
674// meanings.
675type 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
688func (m *Resource) Reset() { *m = Resource{} }
689func (*Resource) ProtoMessage() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected