Documentation
¶
Index ¶
- type CloudinaryKit
- func (c *CloudinaryKit) Delete(ctx context.Context, publicID string) error
- func (c *CloudinaryKit) UploadBytes(ctx context.Context, data []byte, folder string, fileName string) (string, error)
- func (c *CloudinaryKit) UploadFile(ctx context.Context, filePath string, folder string, publicID string, ...) (string, error)
- func (c *CloudinaryKit) UploadVideoFile(ctx context.Context, filePath, folder, publicID string, overwrite bool) (string, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudinaryKit ¶
type CloudinaryKit struct {
CLD *cloudinary.Cloudinary
}
func New ¶
func New(cfg Config) (*CloudinaryKit, error)
func (*CloudinaryKit) Delete ¶
func (c *CloudinaryKit) Delete(ctx context.Context, publicID string) error
Delete removes an image from Cloudinary using its public ID
func (*CloudinaryKit) UploadBytes ¶
func (*CloudinaryKit) UploadFile ¶
func (*CloudinaryKit) UploadVideoFile ¶
Click to show internal directories.
Click to hide internal directories.