Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep API docs up to date with recent changes #847

Merged
merged 1 commit into from Oct 17, 2017
Merged

Conversation

krisis
Copy link
Member

@krisis krisis commented Oct 12, 2017

Fixes #844, #845 and other documentation inconsistencies.

@deekoder deekoder requested review from balamurugana, deekoder and harshavardhana and removed request for deekoder October 12, 2017 21:57
docs/API.md Outdated
@@ -935,7 +936,7 @@ if err != nil {
}
```
<a name="RemoveObjects"></a>
### RemoveObjects(bucketName string, objectsCh chan string) errorCh chan minio.RemoveObjectError
### RemoveObjects(bucketName string, objectsCh chan string) errorCh chan RemoveObjectError
Copy link
Member

Choose a reason for hiding this comment

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

minio. is missed in RemoveObjectError and supposes to be <-chan minio.RemoveObjectError only

Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

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

Some more areas that need fixing

topicArn := minio.NewArn("aws", "sns", "us-east-1", "804605494417", "PhotoUpdate")

topicConfig := minio.NewNotificationConfig(topicArn)
topicConfig.AddEvents(minio.ObjectCreatedAll, minio.ObjectRemovedAll)
lambdaConfig.AddFilterPrefix("photos/") ---> Here should be topicConfig
lambdaConfig.AddFilterSuffix(".jpg")   ---> Here should be topicConfig 

bucketNotification := minio.BucketNotification{}
bucketNotification.AddTopic(topicConfig)
err := c.SetBucketNotification(bucketName, bucketNotification)
if err != nil {
    fmt.Println("Unable to set the bucket notification: " + err) ---> Here! 
}

@@ -935,7 +936,7 @@ if err != nil {
}
```
<a name="RemoveObjects"></a>
### RemoveObjects(bucketName string, objectsCh chan string) errorCh chan minio.RemoveObjectError
### RemoveObjects(bucketName string, objectsCh chan string) (errorCh <-chan RemoveObjectError)
Copy link
Member

Choose a reason for hiding this comment

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

minio.RemoveObjectError?

@nitisht nitisht merged commit 944f238 into minio:master Oct 17, 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.

None yet

4 participants