-
Notifications
You must be signed in to change notification settings - Fork 647
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
Conversation
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 |
There was a problem hiding this comment.
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
There was a problem hiding this 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minio.RemoveObjectError?
Fixes #844, #845 and other documentation inconsistencies.