Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootPointer ¶
RootPointer implements zone root pointer.
type Suite ¶
type Suite byte
Suite defines an encryption suite.
const ( // AES256CBCHMACSHA256 defines the AES256-CBC HMAC-SHA256 // encryption suite. AES256CBCHMACSHA256 Suite = 0 )
func (Suite) CipherKeyLen ¶
CipherKeyLen returns the cipher key length.
func (Suite) IDHashKeyLen ¶
IDHashKeyLen returns the ID hash key length.
type Zone ¶
type Zone struct { Name string Persistence persistence.Accessor Head *tree.Snapshot HeadID storage.ID Written uint64 Saved uint64 // contains filtered or unexported fields }
Zone implements an backup zone.
func Create ¶
func Create(persistence persistence.Accessor, name string) (*Zone, error)
Create creates the zone name to the persistence.
func Open ¶
func Open(persistence persistence.Accessor, name string, keys []identity.PrivateKey) (*Zone, error)
Open opens the zone name from the persistence.
func (*Zone) AddIdentity ¶
AddIdentity adds identity key for the zone.
func (*Zone) SetRootPointer ¶
SetRootPointer sets the root pointer of the zone to id.
Click to show internal directories.
Click to hide internal directories.