Documentation ¶
Index ¶
- type ContentService
- func (svc *ContentService) CreatePackage(name string, version string, file io.ReaderAt, fileSize int64) *errors.GimmeError
- func (svc *ContentService) DeletePackage(pkg string, version string) *errors.GimmeError
- func (svc *ContentService) GetFile(pkg string, version string, fileName string) (*minio.Object, *errors.GimmeError)
- func (svc *ContentService) GetFiles(pkg string, version string) ([]File, *errors.GimmeError)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentService ¶
type ContentService struct {
// contains filtered or unexported fields
}
func NewContentService ¶
func NewContentService(objectStorageManager storage.ObjectStorageManager) ContentService
NewContentService create a new content service instance
func (*ContentService) CreatePackage ¶
func (svc *ContentService) CreatePackage(name string, version string, file io.ReaderAt, fileSize int64) *errors.GimmeError
CreatePackage create package
func (*ContentService) DeletePackage ¶
func (svc *ContentService) DeletePackage(pkg string, version string) *errors.GimmeError
DeletePackage delete package
func (*ContentService) GetFile ¶
func (svc *ContentService) GetFile(pkg string, version string, fileName string) (*minio.Object, *errors.GimmeError)
GetFile get package file
func (*ContentService) GetFiles ¶
func (svc *ContentService) GetFiles(pkg string, version string) ([]File, *errors.GimmeError)
GetFiles get package files
Click to show internal directories.
Click to hide internal directories.