Documentation ¶
Index ¶
- Constants
- Variables
- func Cancel()
- func Run()
- type Config
- type HbtpRunner
- func (c *HbtpRunner) CheckCancel(buildId string) bool
- func (c *HbtpRunner) FindArtVersionId(buildId, idnt string, name string) (string, error)
- func (c *HbtpRunner) FindJobId(buildId, stgNm, stpNm string) (string, bool)
- func (c *HbtpRunner) GenEnv(buildId, jobId string, env utils.EnvVal) error
- func (c *HbtpRunner) GetEnv(buildId, jobId, key string) (string, bool)
- func (c *HbtpRunner) NewArtVersionId(buildId, idnt string, name string) (string, error)
- func (c *HbtpRunner) PullJob(name string, plugs []string) (*runners.RunJob, error)
- func (c *HbtpRunner) PushOutLine(buildId, jobId, cmdId, bs string, iserr bool) error
- func (c *HbtpRunner) ReadDir(fs int, buildId string, pth string) ([]*runners.DirEntry, error)
- func (c *HbtpRunner) ReadFile(fs int, buildId string, pth string, start int64) (int64, io.ReadCloser, error)
- func (c *HbtpRunner) ServerInfo() (*runners.ServerInfo, error)
- func (c *HbtpRunner) StatFile(fs int, buildId, jobId string, dir, pth string) (*runners.FileStat, error)
- func (c *HbtpRunner) Update(m *runners.UpdateJobInfo) error
- func (c *HbtpRunner) UpdateCmd(buildId, jobId, cmdId string, fs, codes int) error
- func (c *HbtpRunner) UploadFile(fs int, buildId, jobId string, dir, pth string, start int64) (io.WriteCloser, error)
Constants ¶
View Source
const (
RPCHostCode = 10
)
View Source
const Version = "0.1.1"
Variables ¶
View Source
var (
Ctx context.Context
)
Functions ¶
Types ¶
type HbtpRunner ¶
type HbtpRunner struct {
// contains filtered or unexported fields
}
func (*HbtpRunner) CheckCancel ¶
func (c *HbtpRunner) CheckCancel(buildId string) bool
func (*HbtpRunner) FindArtVersionId ¶
func (c *HbtpRunner) FindArtVersionId(buildId, idnt string, name string) (string, error)
func (*HbtpRunner) FindJobId ¶
func (c *HbtpRunner) FindJobId(buildId, stgNm, stpNm string) (string, bool)
func (*HbtpRunner) GenEnv ¶
func (c *HbtpRunner) GenEnv(buildId, jobId string, env utils.EnvVal) error
func (*HbtpRunner) NewArtVersionId ¶
func (c *HbtpRunner) NewArtVersionId(buildId, idnt string, name string) (string, error)
func (*HbtpRunner) PushOutLine ¶
func (c *HbtpRunner) PushOutLine(buildId, jobId, cmdId, bs string, iserr bool) error
func (*HbtpRunner) ReadFile ¶
func (c *HbtpRunner) ReadFile(fs int, buildId string, pth string, start int64) (int64, io.ReadCloser, error)
func (*HbtpRunner) ServerInfo ¶
func (c *HbtpRunner) ServerInfo() (*runners.ServerInfo, error)
func (*HbtpRunner) Update ¶
func (c *HbtpRunner) Update(m *runners.UpdateJobInfo) error
func (*HbtpRunner) UpdateCmd ¶
func (c *HbtpRunner) UpdateCmd(buildId, jobId, cmdId string, fs, codes int) error
func (*HbtpRunner) UploadFile ¶
func (c *HbtpRunner) UploadFile(fs int, buildId, jobId string, dir, pth string, start int64) (io.WriteCloser, error)
Click to show internal directories.
Click to hide internal directories.