Documentation
¶
Index ¶
- Variables
- type HarnessCodeInfo
- type Input
- type Repository
- func (r *Repository) GetProgressForSpace(ctx context.Context, spaceID int64) ([]job.Progress, error)
- func (r *Repository) Handle(ctx context.Context, data string, _ job.ProgressReporter) (string, error)
- func (r *Repository) Register(executor *job.Executor) error
- func (r *Repository) RunManyForSpace(ctx context.Context, spaceID int64, repos []*types.Repository, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrJobRunning = errors.New("an export job is already running")
View Source
var ( // ErrNotFound is returned if no export data was found. ErrNotFound = errors.New("export not found") )
View Source
var WireSet = wire.NewSet( ProvideSpaceExporter, )
Functions ¶
This section is empty.
Types ¶
type HarnessCodeInfo ¶
type Input ¶
type Input struct { Identifier string `json:"identifier"` ID int64 `json:"id"` Description string `json:"description"` IsPublic bool `json:"is_public"` HarnessCodeInfo HarnessCodeInfo `json:"harness_code_info"` }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func ProvideSpaceExporter ¶
func (*Repository) GetProgressForSpace ¶
func (*Repository) Handle ¶
func (r *Repository) Handle(ctx context.Context, data string, _ job.ProgressReporter) (string, error)
Handle is repository export background job handler.
func (*Repository) RunManyForSpace ¶
func (r *Repository) RunManyForSpace( ctx context.Context, spaceID int64, repos []*types.Repository, harnessCodeInfo *HarnessCodeInfo, ) error
Click to show internal directories.
Click to hide internal directories.