Skip to content

Export ListObjectV2 to core client#638

Merged
harshavardhana merged 1 commit into
minio:masterfrom
dutchcoders:implement-core-listobjectv2
Apr 5, 2017
Merged

Export ListObjectV2 to core client#638
harshavardhana merged 1 commit into
minio:masterfrom
dutchcoders:implement-core-listobjectv2

Conversation

@nl5887
Copy link
Copy Markdown
Contributor

@nl5887 nl5887 commented Apr 4, 2017

  • needed for gateway

Comment thread api-s3-datatypes.go
type ListBucketV2Result struct {
// A response can contain CommonPrefixes only if you have
// specified a delimiter.
CommonPrefixes []commonPrefix
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CommonPrefixes's type commonPrefix is not exported. Will Go complain when:

prefixes := result.CommonPrefixes

because the type commonPrefix is not exported

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nl5887 do you think this is a problem ?

Copy link
Copy Markdown
Contributor Author

@nl5887 nl5887 Apr 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is a problem. Users won't declare commonPrefix themselves (as they could do with ListBucketV2Result) and Go won't complain about:

prefixes := result.CommonPrefixes

@harshavardhana
Copy link
Copy Markdown
Member

ping @nl5887

@harshavardhana harshavardhana merged commit bd69921 into minio:master Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants