Skip to content

Commit

Permalink
Extend mdox range
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Petkovski <[email protected]>
  • Loading branch information
fpetkovski committed Nov 22, 2023
1 parent 844a043 commit 10c8b52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type Bucket interface {
All [provider implementations](providers) have to implement `Bucket` interface that allows common read and write operations that all supported by all object providers. If you want to limit the code that will do bucket operation to only read access (smart idea, allowing to limit access permissions), you can use the [`BucketReader` interface](objstore.go):
```go mdox-exec="sed -n '68,88p' objstore.go"
```go mdox-exec="sed -n '68,93p' objstore.go"

// BucketReader provides read access to an object storage bucket.
type BucketReader interface {
Expand All @@ -89,6 +89,11 @@ type BucketReader interface {
IsObjNotFoundErr(err error) bool

// IsAccessDeniedErr returns true if access to object is denied.
IsAccessDeniedErr(err error) bool

// Attributes returns information about the specified object.
Attributes(ctx context.Context, name string) (ObjectAttributes, error)
}
```
Those interfaces represent the object storage operations your code can use from `objstore` clients.
Expand Down

0 comments on commit 10c8b52

Please sign in to comment.