fs

package
v0.0.0-...-33f46c2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 WithFsPathBase(path string) Option

func WithRepoPathBase

func WithRepoPathBase(path string) Option

func WithWorkspacePathBase

func WithWorkspacePathBase(path string) Option

type Service

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

func (*Service) GetConfigPath

func (svc *Service) GetConfigPath() (path string)

func (*Service) GetFsPath

func (svc *Service) GetFsPath() (res string)

func (*Service) GetFsService

func (svc *Service) GetFsService() (fsSvc interfaces.FsService)

func (*Service) GetRepoPath

func (svc *Service) GetRepoPath() (res string)

func (*Service) GetWorkspacePath

func (svc *Service) GetWorkspacePath() (res string)

func (*Service) Init

func (svc *Service) Init() (err error)

func (*Service) SetConfigPath

func (svc *Service) SetConfigPath(path string)

func (*Service) SetFsPathBase

func (svc *Service) SetFsPathBase(path string)

func (*Service) SetRepoPathBase

func (svc *Service) SetRepoPathBase(path string)

func (*Service) SetWorkspacePathBase

func (svc *Service) SetWorkspacePathBase(path string)

Jump to

Keyboard shortcuts

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