storage

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteFileRequest

type DeleteFileRequest struct {
	Bucket   string
	Key      string
	Endpoint string
	Region   string
}

type DeleteFileResponse

type DeleteFileResponse struct{}

func DeleteFile

func DeleteFile(req DeleteFileRequest) (DeleteFileResponse, error)

type PresignURLRequest

type PresignURLRequest struct {
	Bucket    string
	Key       string
	ExpiresIn int // 초 단위 (기본 3600)
	Endpoint  string
	Region    string
}

type PresignURLResponse

type PresignURLResponse struct {
	URL string
}

func PresignURL

func PresignURL(req PresignURLRequest) (PresignURLResponse, error)

type UploadFileRequest

type UploadFileRequest struct {
	Bucket      string
	Key         string
	Data        []byte
	ContentType string
	Endpoint    string // MinIO 등 커스텀 엔드포인트 (빈 문자열이면 AWS 기본)
	Region      string
}

type UploadFileResponse

type UploadFileResponse struct {
	URL string
}

func UploadFile

func UploadFile(req UploadFileRequest) (UploadFileResponse, error)

Jump to

Keyboard shortcuts

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