Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrInvalidBlobName = errors.New("invalid blob name")
)
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶
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 ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key with cipher type
func KeyFromBytes ¶
type Name ¶
type Name struct {
// contains filtered or unexported fields
}
Name 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 NameFromBytes ¶
func NameFromHashAndType ¶
NameFromHashAndType generates the name of a blob from some hash (e.g. sha256 of blob's content) and given blob type
func NameFromString ¶
NameFromString decodes base58-encoded string into blob name