Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Branch ¶
type Branch struct { // ID of the branch. It is internal, used for identifying branches during sync. ID ID `json:"id"` // Name of the branch. Name string `json:"name"` // Tip is the last snapshot on the branch Tip *snapshot.Snapshot `json:"tip"` // HasChild is true if the tip has child(ren) HasChild bool `json:"has_child"` }
Branch defines a branch object
type ID ¶
type ID string
ID is the opaque, globally unique identifier of a branch.
func NewRandomID ¶
func NewRandomID() ID
NewRandomID generates a new unused snapshot identifier at random.
type Query ¶
type Query struct { // Query by ID ID ID `json:"id"` Name string `json:"name"` VolSetID volumeset.ID `json:"volset_id"` // Pagination .. Offset int `json:"offset"` Limit int `json:"limit"` Search string `json:"search"` }
Query ..
type SortableBranchesByTipDepth ¶
type SortableBranchesByTipDepth []*Branch
SortableBranchesByTipDepth is a helper for sorting branches by their tip's depth
func (SortableBranchesByTipDepth) Len ¶
func (b SortableBranchesByTipDepth) Len() int
func (SortableBranchesByTipDepth) Less ¶
func (b SortableBranchesByTipDepth) Less(i, j int) bool
func (SortableBranchesByTipDepth) Swap ¶
func (b SortableBranchesByTipDepth) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.