sshagent

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package sshagent is a generated GoMock package.

Index

Constants

View Source
const (
	// Dependency carries the name of the dependency this Buildpack offers
	Dependency = "sshagent"

	// SockAddress is the default address of the socket of the SSH agent started during build
	SockAddress = "/tmp/git-ssh-buildpack.sock"
)

Variables

This section is empty.

Functions

func Contribute

func Contribute(context packit.BuildContext, logger scribe.Emitter, runner Runner) (packit.BuildResult, error)

Contribute adds the logic this Buildpack contributes to a build

Types

type CmdRunner

type CmdRunner struct{}

CmdRunner is used to run commands

func (CmdRunner) Run

func (nr CmdRunner) Run(stdout, stderr io.Writer, stdin io.Reader, command string, args ...string) error

Run a particular command and intercept stdin, stdout and stderr

type MockRunner

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

MockRunner is a mock of Runner interface.

func NewMockRunner

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance.

func (*MockRunner) EXPECT

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRunner) Run

func (m *MockRunner) Run(stdout, stderr io.Writer, stdin io.Reader, command string, args ...string) error

Run mocks base method.

type MockRunnerMockRecorder

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

MockRunnerMockRecorder is the mock recorder for MockRunner.

func (*MockRunnerMockRecorder) Run

func (mr *MockRunnerMockRecorder) Run(stdout, stderr, stdin, command interface{}, args ...interface{}) *gomock.Call

Run indicates an expected call of Run.

type Runner

type Runner interface {
	Run(stdout, stderr io.Writer, stdin io.Reader, command string, args ...string) error
}

Runner is an interface used during build and unit testing

Jump to

Keyboard shortcuts

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