jobs

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Node      peer.Node
	Tns       tns.Client
	RepoType  compilerCommon.RepositoryType
	ProjectID string
	DeployKey string
	Job       *patrick.Job
	LogFile   *os.File

	WorkDir          string
	Patrick          patrick.Client
	ContainerClient  *ci.Client
	ConfigRepoId     int
	ConfigPrivateKey string
	ConfigRepoRoot   string
	Monkey           monkey.Service

	OdoClientNode peer.Node

	DVPublicKey []byte
	// contains filtered or unexported fields
}

func (*Context) ForceContext

func (c *Context) ForceContext(ctx context.Context)

Used in tests for setting the unexported contexts

func (*Context) ForceGitDir

func (c *Context) ForceGitDir(dir string)

func (Context) HandleLibrary

func (c Context) HandleLibrary() (io.ReadSeekCloser, error)

func (Context) HandleOp

func (c Context) HandleOp(op Op, logFile *os.File) (io.ReadSeekCloser, error)

func (Context) Handler

func (c Context) Handler() (repo, error)

func (*Context) Run

func (c *Context) Run(ctx context.Context, ctxC context.CancelFunc) (err error)

func (Context) StashBuildFile

func (c Context) StashBuildFile(zip io.ReadSeekCloser) (cid string, err error)

type Op

type Op struct {
	// contains filtered or unexported fields
}

func ToOp

func ToOp(value interface{}) (op Op)

Used in a fixture

Jump to

Keyboard shortcuts

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