Documentation ¶
Index ¶
- Variables
- type ByRevision
- type Entry
- func (e *Entry) Delete(msg string) bool
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (e *Entry) Equals(other *Entry) bool
- func (x *Entry) GetName() string
- func (x *Entry) GetRevisions() []*Revision
- func (e *Entry) IsDeleted() bool
- func (e *Entry) Latest() *Revision
- func (e *Entry) Merge(other *Entry) *Entry
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (e *Entry) SortedRevisions() []*Revision
- func (x *Entry) String() string
- type Revision
- func (*Revision) Descriptor() ([]byte, []int)deprecated
- func (r *Revision) Equals(other *Revision) bool
- func (x *Revision) GetCreated() *timestamp.Timestamp
- func (x *Revision) GetFilename() string
- func (x *Revision) GetMessage() string
- func (x *Revision) GetTombstone() bool
- func (r *Revision) ID() string
- func (*Revision) ProtoMessage()
- func (x *Revision) ProtoReflect() protoreflect.Message
- func (x *Revision) Reset()
- func (x *Revision) String() string
- func (r *Revision) Time() time.Time
- type Store
- func (*Store) Descriptor() ([]byte, []int)deprecated
- func (x *Store) GetEntries() map[string]*Entry
- func (x *Store) GetName() string
- func (s *Store) ListBlobs() []string
- func (s *Store) Merge(other *Store) error
- func (*Store) ProtoMessage()
- func (x *Store) ProtoReflect() protoreflect.Message
- func (x *Store) Reset()
- func (x *Store) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_gpb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ByRevision ¶
type ByRevision []*Revision
ByRevision sorts to latest revision to the top, i.e. [0]
func (ByRevision) Len ¶
func (r ByRevision) Len() int
func (ByRevision) Less ¶
func (r ByRevision) Less(i, j int) bool
func (ByRevision) Swap ¶
func (r ByRevision) Swap(i, j int)
type Entry ¶
type Entry struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Revisions []*Revision `protobuf:"bytes,2,rep,name=Revisions,proto3" json:"Revisions,omitempty"` // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetRevisions ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
func (*Entry) SortedRevisions ¶
SortedRevisions returns a list of sorted revisions
type Revision ¶
type Revision struct { Created *timestamp.Timestamp `protobuf:"bytes,1,opt,name=Created,proto3" json:"Created,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` Filename string `protobuf:"bytes,3,opt,name=Filename,proto3" json:"Filename,omitempty"` Tombstone bool `protobuf:"varint,4,opt,name=Tombstone,proto3" json:"Tombstone,omitempty"` // contains filtered or unexported fields }
func (*Revision) Descriptor
deprecated
func (*Revision) GetCreated ¶
func (*Revision) GetFilename ¶
func (*Revision) GetMessage ¶
func (*Revision) GetTombstone ¶
func (*Revision) ID ¶
ID returns the unique ID of this entry TODO: It's not really unique. Need to fix that.
func (*Revision) ProtoMessage ¶
func (*Revision) ProtoMessage()
func (*Revision) ProtoReflect ¶
func (x *Revision) ProtoReflect() protoreflect.Message
type Store ¶
type Store struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Entries map[string]*Entry `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Store) Descriptor
deprecated
func (*Store) GetEntries ¶
func (*Store) ProtoMessage ¶
func (*Store) ProtoMessage()
func (*Store) ProtoReflect ¶
func (x *Store) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.