Documentation ¶
Index ¶
- func Connect(endpoint, accessKeyId, secretAccessKey string, useSSL bool) *minio.Client
- type Service
- func (svc *Service) CreateBucketIfNotExist() error
- func (svc *Service) GetObjectByObjectName(filename string) (*bytes.Buffer, error)
- func (svc *Service) StoreFileToMinio(objectName, fullFilePath, contentType string) error
- func (svc *Service) StoreToMinioFromBuffer(fullPath string, byteBuffer []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service prepares the interfaces related with this minio service
func NewService ¶
NewService creates a new user service
func (*Service) CreateBucketIfNotExist ¶
CreateBucketIfNotExist creates bucket if not exist
func (*Service) GetObjectByObjectName ¶
GetObjectByObjectName gets object data by filename as a byte buffer
func (*Service) StoreFileToMinio ¶
StoreFileToMinio stores file tp minio
Click to show internal directories.
Click to hide internal directories.