Documentation ¶
Index ¶
- Variables
- func Apply(ctx context.Context, b Branch, src StoreTriple, fn func(*Snap) (*Snap, error)) error
- func CheckName(name string) error
- func CleanupVolume(ctx context.Context, vol Volume) error
- func History(ctx context.Context, b Branch, vcop *gotvc.Operator, ...) error
- func IsExists(err error) bool
- func IsNotExist(err error) bool
- func IsValidName(name string) bool
- func SetHead(ctx context.Context, b Branch, src StoreTriple, snap Snap) error
- func SyncVolumes(ctx context.Context, dst, src Volume, force bool) error
- func TestSpace(t *testing.T, newSpace func(t testing.TB) Space)
- type Annotations
- type Branch
- type CryptoSpace
- func (r *CryptoSpace) Create(ctx context.Context, name string, params Params) (*Branch, error)
- func (r *CryptoSpace) Delete(ctx context.Context, name string) error
- func (r *CryptoSpace) ForEach(ctx context.Context, fn func(string) error) error
- func (r *CryptoSpace) Get(ctx context.Context, name string) (*Branch, error)
- type Layer
- type MemSpace
- func (r *MemSpace) Create(ctx context.Context, name string, params Params) (*Branch, error)
- func (r *MemSpace) Delete(ctx context.Context, name string) error
- func (r *MemSpace) ForEach(ctx context.Context, fn func(string) error) error
- func (r *MemSpace) Get(ctx context.Context, name string) (*Branch, error)
- type Params
- type Snap
- type Space
- type StoreTriple
- type Volume
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotExist = errors.New("branch does not exist") ErrExists = errors.New("a branch already exists by that name") )
Functions ¶
func IsNotExist ¶
func IsValidName ¶
Types ¶
type Annotations ¶
type Branch ¶
type Branch struct { Volume Volume Annotations Annotations CreatedAt tai64.TAI64 Salt []byte }
Branch is a Volume plus additional metadata
type CryptoSpace ¶
type CryptoSpace struct {
// contains filtered or unexported fields
}
type MemSpace ¶
type MemSpace struct {
// contains filtered or unexported fields
}
type Space ¶
type Space interface { Get(ctx context.Context, name string) (*Branch, error) Create(ctx context.Context, name string, params Params) (*Branch, error) Delete(ctx context.Context, name string) error ForEach(ctx context.Context, fn func(string) error) error }
A Space holds named branches.
func NewCryptoSpace ¶
func NewMultiSpace ¶
type StoreTriple ¶
StoreTriple is an instance of the 3 stores needed to store a Got Snapshot
type Volume ¶
Volume is a Cell and a set of stores
func (Volume) StoreTriple ¶
func (v Volume) StoreTriple() StoreTriple
Click to show internal directories.
Click to hide internal directories.