Skip to content

Commit

Permalink
Add bucket to S3info
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh1 committed Jan 22, 2024
1 parent ccd0d8d commit 35bd5db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/drivers.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ type OSInfo_StorageType int32
type S3OSInfo struct {
// Host to use to connect to S3
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
// Bucket where the object is stored
Bucket string `json:"bucket,omitempty"`
// Key (prefix) to use when uploading the object.
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// POST policy that S3 owner node creates to give write access to other node.
Expand Down
1 change: 1 addition & 0 deletions drivers/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ func (os *s3Session) GetInfo() *OSInfo {
oi := &OSInfo{
S3Info: &S3OSInfo{
Host: os.host,
Bucket: os.bucket,
Key: os.key,
Policy: os.policy,
Signature: os.signature,
Expand Down

0 comments on commit 35bd5db

Please sign in to comment.