Help us shape the future of Go! Take the 2026 Go Developer Survey

ssh

package
v0.7.31 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2018 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSHBuilder

func NewSSHBuilder(b *basher.Basher, facts *models.WerkerFacts) (build.Builder, error)

NewSSHBuilder will establish the BARE connection then return the BARE builder. It will fail if it cannot establish a connection, as it should. It requires more than the docker builder say, because this ssh conneciton isn't a "clean" builder, unfortunately. It is not destroyed afterword, so we need things like hash to know what to clean up once the build process has completed.

func SetupSSHBuilder

func SetupSSHBuilder(t *testing.T, sshPort int, servicePort string) (bldr build.Builder, ctx context.Context, cancel func(), tarRm func(*testing.T), dockerClean func())

Types

type SSH

type SSH struct {
	*basher.Basher

	*models.WerkerFacts
	// contains filtered or unexported fields
}

func SetupSSHBuilderNoTempl

func SetupSSHBuilderNoTempl(t *testing.T, sshPort int, testHash string, prefixdir string) (ctx context.Context, sh *SSH, dockerClean func())

func (*SSH) AddGlobalEnvs

func (h *SSH) AddGlobalEnvs(envs []string)

func (*SSH) Close

func (h *SSH) Close() error

func (*SSH) Execute

func (h *SSH) Execute(ctx context.Context, actions *pb.Stage, logout chan []byte, commitHash string) *pb.Result

func (*SSH) ExecuteIntegration

func (h *SSH) ExecuteIntegration(ctx context.Context, stage *pb.Stage, stgUtil *build.StageUtil, logout chan []byte) *pb.Result

func (*SSH) GetContainerId

func (h *SSH) GetContainerId() string

func (*SSH) Init

func (h *SSH) Init(ctx context.Context, hash string, logout chan []byte) *pb.Result

func (*SSH) SetGlobalEnv

func (h *SSH) SetGlobalEnv(envs []string)

func (*SSH) Setup

func (h *SSH) Setup(ctx context.Context, logout chan []byte, dockerIdChan chan string, werk *pb.WerkerTask, rc cred.CVRemoteConfig, werkerPort string) (*pb.Result, string)

Setup for the BARE werker type will send off the checkout hash as the "docker id" on the docker id channel

Jump to

Keyboard shortcuts

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