client

package
v0.0.0-...-5d4f8f2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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)
}

func New

func New(repoPath string) (Client, error)

Jump to

Keyboard shortcuts

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