command

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JenkinsJobResource

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

JenkinsJobResource struct which has the Check, In, and Out methods on it which comprise the three scripts needed to implement a Concourse Resource Type.

func NewJenkinsJobResource

func NewJenkinsJobResource(
	stdin io.Reader,
	stderr io.Writer,
	stdout io.Writer,
	args []string,
) *JenkinsJobResource

NewJenkinsJobResource creates a new JenkinsJobResource struct.

func (*JenkinsJobResource) Check

func (r *JenkinsJobResource) Check() error

Check runs the in script which checks stdin for a JSON object of the form of a CheckRequest fetches and writes the all Versions that are newer than the provided Version to stdout.

func (*JenkinsJobResource) In

func (r *JenkinsJobResource) In() error

In runs the in script which checks stdin for a JSON object of the form of an InRequest fetches and writes the requested Version as well as Metadata about it to stdout and writes each of its output Artifacts to src/Artifact.FileName.

func (*JenkinsJobResource) Out

func (r *JenkinsJobResource) Out() error

Out runs the in script which checks stdin for a JSON object of the form of an OutRequest triggers a new build and then fetches and writes it as well as Metadata about it to stdout.

Jump to

Keyboard shortcuts

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