function

package module
v0.0.0-...-feff1e8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(w http.ResponseWriter, r *http.Request)

func JobStatus

func JobStatus(ctx context.Context, containerID string, cli *client.Client) ([]byte, error)

JobStatus returns the stdout & stderr in a byte slice for the given container ID

func ScheduleMaasJob

func ScheduleMaasJob(ctx context.Context, cli *client.Client, gitURL string, makeCmds []string) (string, error)

ScheduleMaasJob starts a maas container on the docker host the given git URL and make targets and returns the corresponding container ID

Types

type JobStatusRecord

type JobStatusRecord struct {
	ID         string
	StartedAt  string
	FinishedAt string
	GitURL     string
	Targets    []string
	RC         int
}

JobStatusRecord wraps high-level container status info

func JobList

func JobList(ctx context.Context, cli *client.Client) ([]JobStatusRecord, error)

JobList returns a list of ContainerStatusRecord

Jump to

Keyboard shortcuts

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