deployer

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: GPL-3.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployerHandler

type DeployerHandler interface {
	// IngestReaders is responsible for keeping the readers drained.
	// After the readers have been closed, it MUST signal completion by
	// closing the provided done channel.
	IngestReaders(done chan<- struct{}, stdout io.Reader, stderr io.Reader) error
	AugmentError(error) error
}

type FileSystemStats added in v0.53.0

type FileSystemStats struct {
	Path       string `json:"path"`
	BlockSize  uint64 `json:"blockSize"`
	FreeBlocks uint64 `json:"freeBlocks"`
}

func GetFileSystemStats added in v0.53.0

func GetFileSystemStats(client *ssh.Client, path string) (stats FileSystemStats, err error)

func (*FileSystemStats) FreeBytes added in v0.53.0

func (fss *FileSystemStats) FreeBytes() uint64

type Local

type Local struct {
	Payload     *payload.Payload
	KeepPayload bool
}

func (*Local) Deploy

func (p *Local) Deploy() (err error)

func (*Local) Run added in v0.39.0

func (p *Local) Run(cmdSegs []string, handler DeployerHandler) error

type LoggerHandler added in v0.39.0

type LoggerHandler struct {
	LogCallback func(string)
	// contains filtered or unexported fields
}

func (*LoggerHandler) AugmentError added in v0.39.0

func (h *LoggerHandler) AugmentError(err error) error

func (*LoggerHandler) IngestReaders added in v0.39.0

func (h *LoggerHandler) IngestReaders(done chan<- struct{}, stdout io.Reader, stderr io.Reader) error

type ProgressStatus added in v0.47.0

type ProgressStatus struct {
	Path     string
	Reader   io.Reader
	Writer   io.Writer
	Size     int
	Callback ProgressStatusCallback

	StartTime time.Time
	// contains filtered or unexported fields
}

func NewProgressStatus added in v0.47.0

func NewProgressStatus(path string, reader io.Reader, callback ProgressStatusCallback) (*ProgressStatus, error)

func (*ProgressStatus) Read added in v0.47.0

func (s *ProgressStatus) Read(p []byte) (int, error)

type ProgressStatusCallback added in v0.47.0

type ProgressStatusCallback func(path string, copied int, size int, startTime time.Time)

type SSH

type SSH struct {
	Payload     *payload.Payload
	Client      *ssh.Client
	KeepPayload bool
}

func (*SSH) Deploy

func (p *SSH) Deploy(statusCallback ProgressStatusCallback) (err error)

func (*SSH) Run

func (p *SSH) Run(cmdSegs []string, handler DeployerHandler) (err error)

Jump to

Keyboard shortcuts

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