machine

package
v0.0.0-...-6684192 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMachineManager

func InitMachineManager()

func ReleaseMachine

func ReleaseMachine(requestId uuid.UUID)

func RequestMachine

func RequestMachine(requestId uuid.UUID) (machineChan chan *Machine)

Types

type Machine

type Machine struct {
	Name string
}

func (*Machine) CloneRepo

func (machine *Machine) CloneRepo(url string, branch string, commit string) (errChan chan error)

func (*Machine) CopyBuildScript

func (machine *Machine) CopyBuildScript() (errChan chan error)

func (*Machine) RunBuild

func (machine *Machine) RunBuild(commit string) (errChan chan error)

type MachineRequest

type MachineRequest struct {
	Op int

	RequestId uuid.UUID

	RequestMachineChan chan *Machine
}

Jump to

Keyboard shortcuts

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