forked from mtusi2026/mtusi2026lab4
Prepare verified laboratory 4 implementation and evidence
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package port
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Object struct {
|
||||
Key, ETag string
|
||||
Size int64
|
||||
Modified time.Time
|
||||
}
|
||||
type Objects interface {
|
||||
Put(context.Context, string, io.Reader, int64, string) error
|
||||
Get(context.Context, string) (io.ReadCloser, error)
|
||||
Stat(context.Context, string) (Object, error)
|
||||
Remove(context.Context, string) error
|
||||
List(context.Context, string) ([]Object, bool, error)
|
||||
}
|
||||
Reference in New Issue
Block a user