taskservice

package
v0.0.0-...-3700795 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	GetUploadDir() string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(db *gorm.DB, config Config) *Service

func (*Service) Create

func (s *Service) Create(repo string) (*models.Task, error)

func (*Service) Upload

func (s *Service) Upload(input *TaskUploadInput) error

type TaskUploadInput

type TaskUploadInput struct {
	TaskID string

	Files []*multipart.FileHeader
}

type TooOldError

type TooOldError struct {
	Name string
}

func (TooOldError) Error

func (e TooOldError) Error() string

type WrapperRpmVersion

type WrapperRpmVersion struct {
	// contains filtered or unexported fields
}

func (*WrapperRpmVersion) Epoch

func (c *WrapperRpmVersion) Epoch() int

func (*WrapperRpmVersion) Release

func (c *WrapperRpmVersion) Release() string

func (*WrapperRpmVersion) Version

func (c *WrapperRpmVersion) Version() string

Jump to

Keyboard shortcuts

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