Documentation
¶
Index ¶
Constants ¶
View Source
const ( OutDirName = "/out" SavedModelsDirName = "/saved_models" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Authenticate(name, pwd string) (string, error)
InitRepo(repoName string) error
InitBranch(repoName string, branchName string, headCommit string) error
InitDataRepo(dir string, repoName string) error
InitModelRepo(dir string, repoName string) error
InitOutRepo(dir string, repoName string) error
RunTask(repoName string, branchName string, commitId string, cmdStr string, envVars map[string]string) (flow *flow_pkg.Flow, newCommit *ws.Commit, fnError error)
GetFlowStatus(flowId string) (string, error)
RequestLog(flowId string) ([]byte, error)
PullResults(flowId string) (string, *ws.Repo, *ws.Branch, *ws.Commit, error)
PullSavedModels(flowId string) (string, *ws.Repo, *ws.Branch, *ws.Commit, error)
CloneRepo(rname string) (commitId string, fnError error)
CloneBranch(rname, bname string) (commitId string, fnError error)
CloneCommit(rname, bname, cid string) (commitId string, fnError error)
PushRepo(rname, bname, cid string, ignoreList []string) (*ws.Commit, error)
}
Click to show internal directories.
Click to hide internal directories.