Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultServerURL = "http://192.168.64.3:30001" RepoNamePrefix = "test_" DefaultBranchName = "master" TestRepoPath = "/var/tmp/work1" TestCodeScript = []byte("print(11)" + ";") DefaultFilepath = "/var/tmp/work1/train.py" )
Functions ¶
This section is empty.
Types ¶
type TestConfig ¶
type TestConfig struct { ServerURL *url.URL Repo *ws.Repo Branch *ws.Branch Commit *ws.Commit WC *api.WorkerClient RepoFs *fs.RepoFs }
func NewTestConfig ¶
func NewTestConfig() (*TestConfig, error)
func (*TestConfig) Destroy ¶
func (tc *TestConfig) Destroy() error
func (*TestConfig) SetRepoFs ¶
func (tc *TestConfig) SetRepoFs() error
create tmp repo on local system
Click to show internal directories.
Click to hide internal directories.