upload

package
v0.0.0-...-9e45a68 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFlyNotInstalled = func(os string) error {
	return fmt.Errorf(`could not find the 'fly' binary. Please download it from here 'https://concourse.halfpipe.io/api/v1/cli?arch=amd64&platform=%s', make sure its called 'fly', is executable and put it on your path`, os)
}
View Source
var ErrWrongAnswer = errors.New("incorrect or empty response")

Functions

This section is empty.

Types

type Command

type Command struct {
	Cmd       exec.Cmd
	Printable string

	Executor func(stdout io.Writer, stdin io.Reader) error

	ExecuteOnFailureFilter func(outputFromPreviousCommand []byte) bool
	ExecuteOnFailure       Plan
}

func SecurityQuestion

func SecurityQuestion(pipeline, currentBranch string) Command

func (Command) Run

func (c Command) Run(stdout io.Writer, stderr io.Writer, stdin io.Reader) error

func (Command) String

func (c Command) String() string

type EnvResolver

type EnvResolver func(envVar string) string

type OSResolver

type OSResolver func() string

type PathResolver

type PathResolver func(string) (string, error)

type PipelineFile

type PipelineFile func(fs afero.Afero) (afero.File, error)

type Plan

type Plan []Command

func (Plan) Execute

func (p Plan) Execute(stdout io.Writer, stderr io.Writer, stdin io.Reader, nonInteractive bool) (err error)

type Planner

type Planner interface {
	Plan() (plan Plan, err error)
	Unpause() (plan Plan, err error)
}

func NewPlanner

func NewPlanner(fs afero.Afero, pathResolver PathResolver, homedir string, pipelineFile PipelineFile, nonInteractive bool, currentBranch string, osResolver OSResolver, envResolver EnvResolver, workingDir string, input string) Planner

type Target

type Target struct {
	API string
}

type Targets

type Targets struct {
	Targets map[string]Target
}

Jump to

Keyboard shortcuts

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