19 lines
341 B
Go
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
|
|
}
|