Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "common.commonspace.settings"
Variables ¶
View Source
var ( ErrDeleteSelf = errors.New("cannot delete self") ErrAlreadyDeleted = errors.New("the object is already deleted") ErrObjDoesNotExist = errors.New("the object does not exist") ErrCantDeleteSpace = errors.New("not able to delete space") )
View Source
var (
DoSnapshot = objecttree.DoSnapshot
)
Functions ¶
func VerifyDeleteChange ¶
func VerifyDeleteChange(raw *treechangeproto.RawTreeChangeWithId, identity crypto.PubKey, peerId string) (err error)
Types ¶
type BuildTreeFunc ¶
type BuildTreeFunc func(ctx context.Context, id string, listener updatelistener.UpdateListener) (t synctree.SyncTree, err error)
type Deps ¶
type Deps struct { BuildFunc BuildTreeFunc Account accountservice.Service TreeManager treemanager.TreeManager Store spacestorage.SpaceStorage Configuration nodeconf.NodeConf DelManager deletionmanager.DeletionManager // contains filtered or unexported fields }
type Settings ¶ added in v0.2.0
type Settings interface { DeleteTree(ctx context.Context, id string) (err error) SettingsObject() SettingsObject app.ComponentRunnable }
type SettingsObject ¶
type SettingsObject interface { synctree.SyncTree Init(ctx context.Context) (err error) DeleteObject(id string) (err error) }
func NewSettingsObject ¶
func NewSettingsObject(deps Deps, spaceId string) (obj SettingsObject)
Directories ¶
Path | Synopsis |
---|---|
mock_settingsstate
Package mock_settingsstate is a generated GoMock package.
|
Package mock_settingsstate is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.