Documentation ¶
Index ¶
- func Equal(m1, m2 metaapi.ObjectMeta) bool
- type Object
- type ObjectMeta
- func (m ObjectMeta) After(meta ObjectMeta) bool
- func (m ObjectMeta) AsObject() ObjectMeta
- func (m ObjectMeta) AsTombstone() ObjectMeta
- func (m ObjectMeta) Before(meta ObjectMeta) bool
- func (m ObjectMeta) Equal(meta ObjectMeta) bool
- func (m ObjectMeta) Meta() ObjectMeta
- func (m ObjectMeta) Proto() metaapi.ObjectMeta
- type Revision
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal(m1, m2 metaapi.ObjectMeta) bool
Types ¶
type Object ¶
type Object interface { // Meta returns the object metadata Meta() ObjectMeta }
Object is an interface for objects
type ObjectMeta ¶
ObjectMeta contains metadata about an object
func FromProto ¶
func FromProto(meta metaapi.ObjectMeta) ObjectMeta
FromProto creates new object metadata from the given proto metadata
func NewRevision ¶
func NewRevision(revision Revision) ObjectMeta
NewRevision creates a new object metadata with the given revision
func NewTimestamped ¶
func NewTimestamped(timestamp time.Timestamp) ObjectMeta
NewTimestamped creates a new object metadata with the given timestamp
func (ObjectMeta) After ¶
func (m ObjectMeta) After(meta ObjectMeta) bool
func (ObjectMeta) AsObject ¶
func (m ObjectMeta) AsObject() ObjectMeta
AsObject returns the metadata as a non-tombstone
func (ObjectMeta) AsTombstone ¶
func (m ObjectMeta) AsTombstone() ObjectMeta
AsTombstone returns the metadata as a tombstone
func (ObjectMeta) Before ¶
func (m ObjectMeta) Before(meta ObjectMeta) bool
func (ObjectMeta) Equal ¶
func (m ObjectMeta) Equal(meta ObjectMeta) bool
func (ObjectMeta) Proto ¶
func (m ObjectMeta) Proto() metaapi.ObjectMeta
Proto returns the metadata in Protobuf format
Click to show internal directories.
Click to hide internal directories.