Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { ID CommitID // contains filtered or unexported fields }
Commit is a change that permit to know changed
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller store based on saga transaction pattern
func NewController ¶
func NewController() *Controller
NewController new controller to handle versionning dataa
func (*Controller) Commit ¶
func (c *Controller) Commit(data interface{}) (*Release, error)
Release from referent id (tag `vch:reference"`), return empty Release if not exists
type EncryptedFile ¶
type EncryptedFile struct {
// contains filtered or unexported fields
}
EncryptedFile implement io.Writer, io.Reader, io.Closer It allow you to write and store data into encrypted file use privateKey
func NewEcryptedFile ¶
func NewEcryptedFile(filename, privateKey string) (*EncryptedFile, error)
NewEncryptedFile with filename
func (*EncryptedFile) Close ¶
func (e *EncryptedFile) Close() error
Close write the content into a file
type InexistentIDReferentError ¶
type InexistentIDReferentError struct {
// contains filtered or unexported fields
}
When extracting and not found a referent tag name
func (InexistentIDReferentError) Error ¶
func (e InexistentIDReferentError) Error() string
type NoMatchDataTypeError ¶
type NoMatchDataTypeError struct {
// contains filtered or unexported fields
}
NoMatchDataTypeError define when existing release not match given data type
func (NoMatchDataTypeError) Error ¶
func (e NoMatchDataTypeError) Error() string
Error to implement error native type
type Release ¶
Release is a data version committed
func (*Release) LastCommit ¶
Release from referent id (tag `vch:reference"`), return empty Release if not exists
type UnexistingCommitError ¶
type UnexistingCommitError struct {
// contains filtered or unexported fields
}
UnexistingCommitError look for commit from commit id, but doesn't exists
func (UnexistingCommitError) Error ¶
func (e UnexistingCommitError) Error() string
Error to implement error native type
type UnexistingReleaseError ¶
type UnexistingReleaseError struct {
// contains filtered or unexported fields
}
UnexistingCommitError look for commit from commit id, but doesn't exists
func (UnexistingReleaseError) Error ¶
func (e UnexistingReleaseError) Error() string
Error to implement error native type
type WrongPrivateKeyDecryptionError ¶
type WrongPrivateKeyDecryptionError struct {
Filename string
}
WrongPrivateKeyDecryptionError when trying to decrypt with the wrong private key
func (WrongPrivateKeyDecryptionError) Error ¶
func (e WrongPrivateKeyDecryptionError) Error() string
Error to implement error native type