package
2.0.0+incompatible
Repository: https://github.com/fireworkmarks/yig.git
Documentation: pkg.go.dev

# README

API layer

Part of the code are stolen from https://github.com/minio/minio, and modified accordingly.

Apache license.

# Packages

No description provided by the author

# Functions

CheckValidBucketName - checks if we have a valid input bucket name.
Encodes the response headers into XML format.
GenerateCompleteMultipartUploadResponse.
No description provided by the author
GenerateCopyObjectResponse.
GenerateInitiateMultipartUploadResponse.
Takes an array of Bucket metadata information for serialization input: array of bucket metadata output: populated struct that can be serialized to match xml and json api spec output.
generates an ListObjects response for the said bucket with other enumerated options.
generate multi objects delete response.
No description provided by the author
getLocation get URL location.
getObjectLocation gets the relative URL for an object.
GetSourceIP retrieves the IP from the X-Forwarded-For, X-Real-IP and RFC7239 Forwarded headers (in that order), falls back to r.RemoteAddr when all else fails.
No description provided by the author
No description provided by the author
registerAPIRouter - registers S3 compatible APIs.
No description provided by the author
setAuthHandler to validate authorization header for the incoming request.
No description provided by the author
setCorsHandler handler for CORS (Cross Origin Resource Sharing).
setIgnoreResourcesHandler - Ignore resources handler is wrapper handler used for API request resource validation Since we do not support all the S3 queries, it is necessary for us to throw back a valid error message indicating that requested feature is not implemented.
No description provided by the author
Write object header.
setRateLimitHandler limits the number of concurrent http requests based on CONFIG.ConcurrentRequestLimit.
writeErrorResponse write error headers.
No description provided by the author
No description provided by the author
No description provided by the author
writeSuccessNoContent write success headers with http status 204.
WriteSuccessResponse write success headers and response if any.

# Constants

128KB.
No description provided by the author

# Variables

No description provided by the author

# Structs

APIErrorResponse - error response format.
authHandler - handles all the incoming authorization headers and validates them if possible.
DeleteObjectsResponse container for multiple object deletes.
objectAPIHandler implements and provides http handlers for S3 API.
No description provided by the author

# Interfaces

ObjectLayer implements primitives for object API layer.

# Type aliases

No description provided by the author
HandlerFunc - useful to chain different middleware http.Handler.