Documentation ¶
Index ¶
- func DeleteTemplate(ctx context.Context, client *minio.Client, objectName, bucketName string) error
- func DownloadTemplate(ctx context.Context, client *minio.Client, ...) error
- func NewMinIOClient(cfg *common.MinIOConfig) (*minio.Client, error)
- func UploadTemplate(ctx context.Context, client *minio.Client, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTemplate ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.