Documentation ¶
Index ¶
- type S3ModuleService
- func (s *S3ModuleService) GetModuleDownloadUrl(modul service.ModuleDescriptor, version string) (string, error)
- func (s *S3ModuleService) List(req *service.ListParams) (*service.ModuleResult, error)
- func (s *S3ModuleService) Seach(req *service.SearchParams) (*service.ModuleResult, error)
- func (s *S3ModuleService) UploadModule(modul service.ModuleDescriptor, version string, content io.Reader) error
- func (s *S3ModuleService) Versions(modul service.ModuleDescriptor) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3ModuleService ¶
type S3ModuleService struct {
// contains filtered or unexported fields
}
func NewS3ModuleService ¶
func NewS3ModuleService(s3Client *s3.Client, bucketName string, presignClient *s3.PresignClient) *S3ModuleService
func (*S3ModuleService) GetModuleDownloadUrl ¶
func (s *S3ModuleService) GetModuleDownloadUrl(modul service.ModuleDescriptor, version string) (string, error)
func (*S3ModuleService) List ¶
func (s *S3ModuleService) List(req *service.ListParams) (*service.ModuleResult, error)
implement the interface
func (*S3ModuleService) Seach ¶
func (s *S3ModuleService) Seach(req *service.SearchParams) (*service.ModuleResult, error)
func (*S3ModuleService) UploadModule ¶
func (s *S3ModuleService) UploadModule(modul service.ModuleDescriptor, version string, content io.Reader) error
implment upload
func (*S3ModuleService) Versions ¶
func (s *S3ModuleService) Versions(modul service.ModuleDescriptor) ([]string, error)
Click to show internal directories.
Click to hide internal directories.