shell

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Close

func (r *Registry) Close()

Close all shells in the registry.

func (*Registry) GetShell

func (r *Registry) GetShell(n corral.Node, privateKey string, vs vars.VarSet) (*Shell, error)

GetShell will return the shell associated with the given node's address. If the shell does not exist one will be created.

type Shell

type Shell struct {
	Node       corral.Node
	PrivateKey []byte
	Vars       vars.VarSet
	// contains filtered or unexported fields
}

func (*Shell) Close

func (s *Shell) Close()

func (*Shell) Connect

func (s *Shell) Connect() error

func (*Shell) Run

func (s *Shell) Run(c string) error

func (*Shell) UploadPackageFiles

func (s *Shell) UploadPackageFiles(pkg _package.Package) error

Jump to

Keyboard shortcuts

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