api

package
v1.22.38 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Connect(*domain.AgentInit) (*domain.AgentConfig, error)
	ReConn() <-chan struct{}

	UploadLog(filePath string) error
	ReportProfile(profile *domain.AgentProfile) error

	GetCmdIn() <-chan []byte
	SendCmdOut(out domain.CmdOut) error
	SendShellLog(jobId, stepId, b64Log string)
	SendTtyLog(ttyId, b64Log string)

	CachePut(jobId, name, workspace string, paths []string) error
	CacheGet(jobId, name string) *domain.JobCache
	CacheDownload(cacheId, workspace, file string, progress io.Writer)

	GetSecret(name string) (domain.Secret, error)
	GetConfig(name string) (domain.Config, error)

	Close()
}

func NewClient

func NewClient(token, server string) Client

type CounterWrite

type CounterWrite struct {
	Total uint64
}

func (*CounterWrite) PrintProgress

func (cw *CounterWrite) PrintProgress()

func (*CounterWrite) Write

func (cw *CounterWrite) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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