Documentation ¶
Index ¶
- Constants
- type Manager
- func (codeMgr *Manager) CheckCode(ctx *context.Context, filename, codeSha256 string) bool
- func (codeMgr *Manager) CreateCodeCompeleteTag(path, codeSha256 string) error
- func (codeMgr *Manager) FetchCode(ctx *context.Context, code *api.CodeStorage) (string, error)
- func (codeMgr *Manager) FindCode(path, codeSha256 string) bool
- func (codeMgr *Manager) FindCodeCompeleteTag(path, codeSha256 string) bool
- func (codeMgr *Manager) RemoveCodeCompeleteTag(path, codeSha256 string) error
- func (codeMgr *Manager) UnzipCode(ctx *context.Context, filename, target string) error
- type ManagerInterface
Constants ¶
View Source
const ( DriverBos = "bos" DriverLocal = "filesystem" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
BasePath string
}
Manager
func (*Manager) CreateCodeCompeleteTag ¶
CreateCodeCompeleteTag
func (*Manager) FindCodeCompeleteTag ¶
FindCodeCompeleteTag
func (*Manager) RemoveCodeCompeleteTag ¶
RemoveCodeCompeleteTag
type ManagerInterface ¶
type ManagerInterface interface { FetchCode(ctx *context.Context, code *api.CodeStorage) (string, error) CheckCode(ctx *context.Context, filename, codeSha256 string) bool FindCodeCompeleteTag(path, codeSha256 string) bool CreateCodeCompeleteTag(path, codeSha256 string) error RemoveCodeCompeleteTag(path, codeSha256 string) error FindCode(path, codeSha256 string) bool UnzipCode(ctx *context.Context, filename, target string) error }
ManagerInterface
Click to show internal directories.
Click to hide internal directories.