Documentation ¶
Overview ¶
Package data contains TreeHub data object and their methods
Index ¶
Constants ¶
View Source
const ErrorDataSerializationObjectID = apperrors.ErrorDataSerialization + ":ObjectID"
ErrorDataSerializationObjectID is error of data.ObjectID serialization
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit string
Commit is OTSTree commit object
func NewCommitFromBytes ¶
NewCommitFromBytes validate content and create Commit object
type CommitManifest ¶
CommitManifest is OSTree commit manifest
type DeltaID ¶
type DeltaID string
DeltaID is OSTree delta
func (DeltaID) ToObjectID ¶
ToObjectID transforms DeltaID to ObjectID
type Namespace ¶
type Namespace string
Namespace is object namespace
func NewNamespace ¶
NewNamespace creates namespace with random uuid
type Object ¶
type Object struct { Namespace Namespace ID ObjectID ByteSize int64 Status ObjectStatus }
Object OSTree object definition
type ObjectID ¶
type ObjectID string
ObjectID is OSTree object identifier
func NewObjectID ¶
NewObjectID create new ObjectID if str is valid
type ObjectStatus ¶
type ObjectStatus int
ObjectStatus is enumeration of possible object states
const ( // Uploaded means data.Object was successfully uploaded to server Uploaded ObjectStatus = iota // ServerUploading means data.Object was created, but content not fully uploaded to the server ServerUploading )
Click to show internal directories.
Click to hide internal directories.