content

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

type File

type File struct {
	Name   string
	Size   int64
	Folder bool
}

Jump to

Keyboard shortcuts

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