minio

package module
v0.0.0-...-491eb26 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTemplate

func DeleteTemplate(ctx context.Context, client *minio.Client, objectName, bucketName string) error

DeleteTemplate deletes a template file from MinIO.

func DownloadTemplate

func DownloadTemplate(ctx context.Context, client *minio.Client, objectName, localFilePath, bucketName string) error

DownloadTemplate downloads a template file from MinIO.

func NewMinIOClient

func NewMinIOClient(cfg *common.MinIOConfig) (*minio.Client, error)

NewMinIOClient creates a new MinIO client and ensures the templates bucket exists.

func UploadTemplate

func UploadTemplate(ctx context.Context, client *minio.Client, filePath, templateName, bucketName string) (string, error)

UploadTemplate uploads a template file to MinIO.

Types

This section is empty.

Jump to

Keyboard shortcuts

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