provider

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinIOProvider

type MinIOProvider struct {
	// contains filtered or unexported fields
}

MinIOProvider implements the Provider interface for MinIO object storage.

func NewMinIOProvider

func NewMinIOProvider(endpoint, accessKey, secretKey string, bucket string, useSSL bool) (*MinIOProvider, error)

NewMinIOProvider creates a new MinIO provider instance.

func (*MinIOProvider) PresignGet

func (p *MinIOProvider) PresignGet(ctx context.Context, objectKey string, ttlSeconds int) (string, error)

PresignGet generates a presigned URL for downloading an object.

func (*MinIOProvider) PresignPut

func (p *MinIOProvider) PresignPut(ctx context.Context, objectKey string, ttlSeconds int) (string, error)

PresignPut generates a presigned URL for uploading an object.

type S3Provider

type S3Provider struct {
}

S3Provider implements the Provider interface for AWS S3 object storage. This is a placeholder for future implementation.

func NewS3Provider

func NewS3Provider(endpoint, accessKey, secretKey string, bucket string, region string, useSSL bool) (*S3Provider, error)

NewS3Provider creates a new S3 provider instance.

func (*S3Provider) PresignGet

func (p *S3Provider) PresignGet(ctx context.Context, objectKey string, ttlSeconds int) (string, error)

PresignGet generates a presigned URL for downloading an object.

func (*S3Provider) PresignPut

func (p *S3Provider) PresignPut(ctx context.Context, objectKey string, ttlSeconds int) (string, error)

PresignPut generates a presigned URL for uploading an object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL