Documentation
¶
Index ¶
- func LegitimizeFiles(files []dto.LegitimizeItem) []dto.LegitimizeItem
- func PresignedURL(objectKey string) (string, string, error)
- type PreSigner
- func (preSigner PreSigner) DeleteObject(bucketName, objectKey string) (*PresignedHTTPRequest, error)
- func (preSigner PreSigner) GetObject(bucketName, objectKey string, lifetimeSecs int64) (*PresignedHTTPRequest, error)
- func (preSigner PreSigner) PutObject(bucketName, objectKey string, lifetimeSecs int64) (*PresignedHTTPRequest, error)
- type PresignedHTTPRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LegitimizeFiles ¶
func LegitimizeFiles(files []dto.LegitimizeItem) []dto.LegitimizeItem
LegitimizeFiles make file list available
Types ¶
type PreSigner ¶
PreSigner encapsulates the MinIO/S3 preSigned actions used in the examples. It contains MinioClient, a client that is used to preSigned requests to S3-compatible storage. PreSigned requests contain temporary credentials and can be made from any HTTP client.
func (PreSigner) DeleteObject ¶
func (preSigner PreSigner) DeleteObject(bucketName, objectKey string) (*PresignedHTTPRequest, error)
DeleteObject makes a preSigned request that can be used to delete an object from a bucket. Note: MinIO doesn't support presigned DELETE operations, so this method performs direct deletion
func (PreSigner) GetObject ¶
func (preSigner PreSigner) GetObject( bucketName, objectKey string, lifetimeSecs int64) (*PresignedHTTPRequest, error)
GetObject makes a preSigned request that can be used to get an object from a bucket. The preSigned request is valid for the specified number of seconds.
type PresignedHTTPRequest ¶ added in v1.1.0
type PresignedHTTPRequest struct {
URL string
}
PresignedHTTPRequest represents a presigned HTTP request