Documentation ¶
Index ¶
- Constants
- type ApiClient
- func (c *ApiClient) BasicAuth(name, password string) (jwt string, userAttrs *auth_server.UserAttrs, fnError error)
- func (c *ApiClient) GetCommit(repoName, branchName, commitId string) (*ws.Commit, error)
- func (c *ApiClient) GetCommitMap(repoName, commitId string) (*ws.FileMap, error)
- func (c *ApiClient) GetFileObject(repoName, branchName, commitId, filePath string) (string, io.ReadCloser, error)
- func (c *ApiClient) GetFlowAttrs(flowId string) (*flow_pkg.FlowAttrs, error)
- func (c *ApiClient) GetFlowStatus(flowId string) (string, error)
- func (c *ApiClient) GetModelByFlowId(flowId string) (*ws.Repo, *ws.Branch, *ws.Commit, error)
- func (c *ApiClient) GetOrCreateCommit(repoName, branchName, commitId string) (*ws.Commit, error)
- func (c *ApiClient) GetOutputRepo(flowId string) (*ws.Repo, *ws.Branch, *ws.Commit, error)
- func (c *ApiClient) InitBranch(repoName string, branchName string, headId string) error
- func (c *ApiClient) InitDataRepo(dir string, repoName string) error
- func (c *ApiClient) InitModelRepo(dir, repoName string) error
- func (c *ApiClient) InitOutRepo(dir, repoName string) error
- func (c *ApiClient) InitRepo(repoName string) error
- func (c *ApiClient) PutObjectWriter(repoName string, branchName string, commitId string, fpath string) (io.WriteCloser, error)
- func (c *ApiClient) RequestLog(flowId string) ([]byte, error)
- func (c *ApiClient) RunTask(rname, bname, headCommitId, cmdStr string, envVars map[string]string) (newFlow *flow_pkg.Flow, newCommit *ws.Commit, fnError error)
Constants ¶
View Source
const ( RestCallLimit int = 4 AuthUriPath = "auth" RepoUriPath = "repo" ModelUriPath = "model" OutUriPath = "out" RepoAttrsUriPath = "repo_attrs" DatasetUriPath = "dataset" BranchAttrsUriPath = "branch_attr" CommitUriPath = "commit" CommitAttrsUriPath = "commit_attrs" CommitMapUriPath = "commit_map" FileUriPath = "file" FileAttrsUriPath = "file_attrs" ObjectUriPath = "object" VfsUriPath = "vfs" WorkerUriPath = "worker" FlowUriPath = "flow" FlowAttrsUriPath = "flow_attrs" TaskAttrsUriPath = "tasks" TaskStatusUriPath = "task_status" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
func (*ApiClient) GetCommitMap ¶
func (*ApiClient) GetFileObject ¶
func (*ApiClient) GetFlowAttrs ¶
func (*ApiClient) GetModelByFlowId ¶
func (*ApiClient) GetOrCreateCommit ¶
func (*ApiClient) GetOutputRepo ¶
func (*ApiClient) InitBranch ¶
func (*ApiClient) InitDataRepo ¶
func (*ApiClient) InitModelRepo ¶
func (*ApiClient) InitOutRepo ¶
func (*ApiClient) PutObjectWriter ¶
Click to show internal directories.
Click to hide internal directories.