rara/packages/go/artifact/store.go
toki fdc86c7ff4
Some checks are pending
ci / validate (push) Waiting to run
initial commit
2026-07-18 18:41:17 +09:00

19 lines
341 B
Go

package artifact
import (
"context"
"io"
)
type Descriptor struct {
URI string
ContentHash string
SizeBytes int64
MediaType string
}
type Store interface {
Put(context.Context, string, io.Reader, string) (Descriptor, error)
Open(context.Context, string) (io.ReadCloser, error)
Delete(context.Context, string) error
}