cmd

package
v0.0.0-...-10d6098 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RPCHostCode = 10
)
View Source
const Version = "0.1.1"

Variables

Functions

func Cancel

func Cancel()

func Run

func Run()

Types

type Config

type Config struct {
	Name   string   `yaml:"name"`
	Host   string   `yaml:"host"`
	Secret string   `yaml:"secret"`
	Limit  int      `yaml:"limit"`
	Plugin []string `yaml:"plugin"`
	Env    []string `yaml:"env"`

	WorkPath string `yaml:"workPath"`
}

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

func (c *HbtpRunner) GetEnv(buildId, jobId, key string) (string, bool)

func (*HbtpRunner) NewArtVersionId

func (c *HbtpRunner) NewArtVersionId(buildId, idnt string, name string) (string, error)

func (*HbtpRunner) PullJob

func (c *HbtpRunner) PullJob(name string, plugs []string) (*runners.RunJob, error)

func (*HbtpRunner) PushOutLine

func (c *HbtpRunner) PushOutLine(buildId, jobId, cmdId, bs string, iserr bool) error

func (*HbtpRunner) ReadDir

func (c *HbtpRunner) ReadDir(fs int, buildId string, pth string) ([]*runners.DirEntry, 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) StatFile

func (c *HbtpRunner) StatFile(fs int, buildId, jobId string, dir, pth string) (*runners.FileStat, 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)

Jump to

Keyboard shortcuts

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