Versions in this module Expand all Collapse all v1 v1.18.0 Aug 2, 2026 Changes in this version + type Backend interface + Resolve func(ctx context.Context, ref Ref) (string, error) + type BlobBackend interface + LoadBlob func(ctx context.Context, ref Ref) ([]byte, error) + Scheme func() string + type Error struct + Detail string + Err error + Kind ErrorKind + Ref string + func NewError(kind ErrorKind, ref, detail string, err error) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type ErrorKind string + const KindBackendUnavailable + const KindInvalidRef + const KindNotFound + type Ref struct + Path string + Raw string + Scheme string + func Parse(raw string) (Ref, error) + type Resolver struct + func NewResolver(backends map[string]Backend) *Resolver + func (r *Resolver) DeleteBlob(ctx context.Context, raw string) error + func (r *Resolver) Exists(ctx context.Context, raw string) (bool, error) + func (r *Resolver) LoadBlob(ctx context.Context, raw string) ([]byte, error) + func (r *Resolver) Resolve(ctx context.Context, raw string) (string, error) + func (r *Resolver) SaveBlob(ctx context.Context, raw string, data []byte) error + func (r *Resolver) Store(ctx context.Context, raw, value string) error + func (r *Resolver) WritableBackends() []WritableBackend + type WritableBackend interface + DefaultRef func(storeName, account string) string + DisplayName func() string + Exists func(ctx context.Context, ref Ref) (bool, error) + Scheme func() string + Store func(ctx context.Context, ref Ref, value string) error + WriteSupported func() bool + type WritableBlobBackend interface + DeleteBlob func(ctx context.Context, ref Ref) error + SaveBlob func(ctx context.Context, ref Ref, data []byte) error