launcher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetLogsParams

type GetLogsParams struct {
	CloudwatchGroupName  string
	CloudwatchStreamName string
	NextToken            *string
}

type GetLogsResult

type GetLogsResult struct {
	LogLines  []*cwlogs.LogLine
	NextToken *string
}

GetLogsResult get logs task result for Codebuild

type Launcher

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

Launcher launch and monitor codebuild jobs

func New

func New(sess *session.Session) *Launcher

New create a new launcher

func (*Launcher) GetTaskLogs

func (lc *Launcher) GetTaskLogs(gtlp *GetLogsParams) (*GetLogsResult, error)

GetTaskLogs get task logs

func (*Launcher) ReadUntilClose

func (lc *Launcher) ReadUntilClose(gtlp *GetLogsParams, quit chan bool) error

ReadUntilClose read logs until the supplied channel returns a value

func (*Launcher) RunBuild

func (lc *Launcher) RunBuild(rb *RunBuildParams) (*RunBuildResult, error)

RunBuild run a codebuild job

func (*Launcher) WaitForTask

func (lc *Launcher) WaitForTask(wft *WaitParams) (*WaitResult, error)

WaitForTask wait for task to complete

type RunBuildParams

type RunBuildParams struct {
	ProjectName   string
	SourceArchive string
	SourceBucket  string
	Buildspec     *string // optional buildspec
}

RunBuildParams used to launch Codebuild container based tasks

type RunBuildResult

type RunBuildResult struct {
	BuildID              string
	CloudwatchGroupName  string
	CloudwatchStreamName string
}

type WaitParams

type WaitParams struct {
	BuildID string
}

type WaitResult

type WaitResult struct {
	BuildID string
}

Jump to

Keyboard shortcuts

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