Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrInvalidBlobName = errors.New("invalid blob name")
)
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶ added in v0.0.7
type AuthInfo struct {
// contains filtered or unexported fields
}
AuthInfo is an opaque data that is necessary to perform update of an existing blob.
Currently used only for dynamic links, auth info contains all the necessary information to update the content of the blob. The representation is specific to the blob type
func AuthInfoFromBytes ¶ added in v0.0.7
type BlobIV ¶ added in v0.0.7
type BlobIV struct {
// contains filtered or unexported fields
}
IV
func BlobIVFromBytes ¶ added in v0.0.7
type BlobKey ¶ added in v0.0.7
type BlobKey struct {
// contains filtered or unexported fields
}
Key with cipher type
func BlobKeyFromBytes ¶ added in v0.0.7
type BlobName ¶
type BlobName struct {
// contains filtered or unexported fields
}
BlobName is used to identify blobs. Internally it is a single array of bytes that represents both the type of the blob and internal hash used to create that blob. The type of the blob is not stored directly. Instead it is mixed with the hash of the blob to make sure that all bytes in the blob name are randomly distributed.
func BlobNameFromBytes ¶ added in v0.0.7
func BlobNameFromHashAndType ¶
BlobNameFromHashAndType generates the name of a blob from some hash (e.g. sha256 of blob's content) and given blob type
func BlobNameFromString ¶
BlobNameFromString decodes base58-encoded string into blob name