You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3 KiB

3 years ago
  1. package s3api
  2. import (
  3. "net/http"
  4. )
  5. // GetObjectAclHandler Put object ACL
  6. // https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html
  7. func (s3a *S3ApiServer) GetObjectAclHandler(w http.ResponseWriter, r *http.Request) {
  8. w.WriteHeader(http.StatusNoContent)
  9. }
  10. // PutObjectAclHandler Put object ACL
  11. // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectAcl.html
  12. func (s3a *S3ApiServer) PutObjectAclHandler(w http.ResponseWriter, r *http.Request) {
  13. w.WriteHeader(http.StatusNoContent)
  14. }
  15. // PutObjectRetentionHandler Put object Retention
  16. // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectRetention.html
  17. func (s3a *S3ApiServer) PutObjectRetentionHandler(w http.ResponseWriter, r *http.Request) {
  18. w.WriteHeader(http.StatusNoContent)
  19. }
  20. // PutObjectLegalHoldHandler Put object Legal Hold
  21. // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectLegalHold.html
  22. func (s3a *S3ApiServer) PutObjectLegalHoldHandler(w http.ResponseWriter, r *http.Request) {
  23. w.WriteHeader(http.StatusNoContent)
  24. }
  25. // PutObjectLockConfigurationHandler Put object Lock configuration
  26. // https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectLockConfiguration.html
  27. func (s3a *S3ApiServer) PutObjectLockConfigurationHandler(w http.ResponseWriter, r *http.Request) {
  28. w.WriteHeader(http.StatusNoContent)
  29. }