Documentation ¶
Index ¶
- func NewTaskFsService(taskId, spiderId primitive.ObjectID, opts ...Option) (svc2 interfaces.TaskFsService, err error)
- type Option
- type Service
- func (svc *Service) GetConfigPath() (path string)
- func (svc *Service) GetFsPath() (res string)
- func (svc *Service) GetFsService() (fsSvc interfaces.FsService)
- func (svc *Service) GetRepoPath() (res string)
- func (svc *Service) GetWorkspacePath() (res string)
- func (svc *Service) Init() (err error)
- func (svc *Service) SetConfigPath(path string)
- func (svc *Service) SetFsPathBase(path string)
- func (svc *Service) SetRepoPathBase(path string)
- func (svc *Service) SetWorkspacePathBase(path string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskFsService ¶
func NewTaskFsService(taskId, spiderId primitive.ObjectID, opts ...Option) (svc2 interfaces.TaskFsService, err error)
Types ¶
type Option ¶
type Option func(svc interfaces.TaskFsService)
func WithFsPathBase ¶
func WithRepoPathBase ¶
func WithWorkspacePathBase ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetConfigPath ¶
func (*Service) GetFsService ¶
func (svc *Service) GetFsService() (fsSvc interfaces.FsService)
func (*Service) GetRepoPath ¶
func (*Service) GetWorkspacePath ¶
func (*Service) SetConfigPath ¶
func (*Service) SetFsPathBase ¶
func (*Service) SetRepoPathBase ¶
func (*Service) SetWorkspacePathBase ¶
Click to show internal directories.
Click to hide internal directories.