 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func CheckForRuntimes(ctx context.Context, requirements []*agentv0.Runtime) error
- func CheckPythonPath() (string, error)
- func DockerEngineRunning(ctx context.Context) bool
- func IsFreePort(port int) bool
- func PrintDownloadPercentage(reader io.ReadCloser, out io.Writer)
- func WaitForPortUnbound(ctx context.Context, port int) error
- type CPU
- type Docker
- func (docker *Docker) Done() <-chan struct{}
- func (docker *Docker) ForwardLogs(reader io.Reader)
- func (docker *Docker) GetImage(ctx context.Context, imag *configurations.DockerImage) error
- func (docker *Docker) ImageExists(ctx context.Context, imag *configurations.DockerImage) (bool, error)
- func (docker *Docker) Init(ctx context.Context) error
- func (docker *Docker) IsRunningContainer(ctx context.Context) (bool, error)
- func (docker *Docker) KillAll(ctx context.Context) error
- func (docker *Docker) Run(ctx context.Context) error
- func (docker *Docker) Running() bool
- func (docker *Docker) SetCommand(bin string, args ...string)
- func (docker *Docker) Start(ctx context.Context) error
- func (docker *Docker) Stop() error
- func (docker *Docker) WaitForStop() error
- func (docker *Docker) WithCommand(cmd ...string)
- func (docker *Docker) WithEnvironmentVariables(envs ...configurations.EnvironmentVariable)
- func (docker *Docker) WithMount(sourceDir string, targetDir string) *Docker
- func (docker *Docker) WithName(name string)
- func (docker *Docker) WithOut(writer io.Writer)
- func (docker *Docker) WithPersistence()
- func (docker *Docker) WithPort(port DockerPortMapping)
- func (docker *Docker) WithSilence()
- func (docker *Docker) WithWorkDir(dir string)
 
- type DockerContainerInstance
- type DockerPortMapping
- type DockerPullResponse
- type Event
- type Memory
- type MultiReader
- type Process
- func (runner *Process) Finish()
- func (runner *Process) Finished() bool
- func (runner *Process) ForwardLogs(reader io.Reader)
- func (runner *Process) Init(_ context.Context) error
- func (runner *Process) Run(ctx context.Context) error
- func (runner *Process) Start(ctx context.Context) error
- func (runner *Process) Stop() error
- func (runner *Process) Wait() error
- func (runner *Process) WithDebug(debug bool) *Process
- func (runner *Process) WithDir(dir string) *Process
- func (runner *Process) WithEnvironmentVariables(envs ...configurations.EnvironmentVariable) *Process
- func (runner *Process) WithOut(out io.Writer) error
 
- type ProcessState
- type ProgressDetail
- type Runner
- type Tracked
- type TrackedProcess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForRuntimes ¶ added in v0.1.6
func CheckPythonPath ¶ added in v0.1.58
func DockerEngineRunning ¶ added in v0.1.35
func IsFreePort ¶ added in v0.1.24
func PrintDownloadPercentage ¶ added in v0.1.63
func PrintDownloadPercentage(reader io.ReadCloser, out io.Writer)
Types ¶
type Docker ¶ added in v0.0.87
type Docker struct {
	// contains filtered or unexported fields
}
    func NewDocker ¶ added in v0.0.87
func NewDocker(ctx context.Context, image *configurations.DockerImage) (*Docker, error)
NewDocker creates a new docker runner
func (*Docker) ForwardLogs ¶ added in v0.1.24
func (*Docker) GetImage ¶ added in v0.0.87
func (docker *Docker) GetImage(ctx context.Context, imag *configurations.DockerImage) error
func (*Docker) ImageExists ¶ added in v0.0.87
func (docker *Docker) ImageExists(ctx context.Context, imag *configurations.DockerImage) (bool, error)
func (*Docker) IsRunningContainer ¶ added in v0.1.55
func (*Docker) KillAll ¶ added in v0.1.55
KillAll kills all Docker containers started by codefly: container name = /codefly-...
func (*Docker) SetCommand ¶ added in v0.1.24
SetCommand to run
func (*Docker) WaitForStop ¶ added in v0.1.62
func (*Docker) WithCommand ¶ added in v0.1.6
func (*Docker) WithEnvironmentVariables ¶ added in v0.1.6
func (docker *Docker) WithEnvironmentVariables(envs ...configurations.EnvironmentVariable)
func (*Docker) WithPersistence ¶ added in v0.1.55
func (docker *Docker) WithPersistence()
func (*Docker) WithPort ¶ added in v0.1.6
func (docker *Docker) WithPort(port DockerPortMapping)
func (*Docker) WithSilence ¶ added in v0.1.55
func (docker *Docker) WithSilence()
func (*Docker) WithWorkDir ¶ added in v0.1.25
type DockerContainerInstance ¶ added in v0.0.87
type DockerContainerInstance struct {
	ID string
}
    type DockerPortMapping ¶ added in v0.1.24
type DockerPullResponse ¶ added in v0.1.63
type DockerPullResponse struct {
	ID             string         `json:"id"`
	Status         string         `json:"status"`
	ProgressDetail ProgressDetail `json:"progressDetail"`
}
    type Event ¶ added in v0.0.71
type Event struct {
	// Err is the state of error of the service
	Err error
	// Status is the state of the service
	ProcessState
	// CPU
	*observabilityv0.CPU
	// Memory
	*observabilityv0.Memory
}
    Event represents data of a **running** service Generic so most fields will be nil
type MultiReader ¶ added in v0.1.22
type MultiReader struct {
	// contains filtered or unexported fields
}
    func NewMultiReader ¶ added in v0.1.22
func NewMultiReader(readers ...io.Reader) *MultiReader
type Process ¶ added in v0.1.62
type Process struct {
	// contains filtered or unexported fields
}
    func NewProcess ¶ added in v0.1.62
func (*Process) ForwardLogs ¶ added in v0.1.62
func (*Process) Run ¶ added in v0.1.62
Run execute and wait: great for tasks that we expect to finish
func (*Process) WithEnvironmentVariables ¶ added in v0.1.62
func (runner *Process) WithEnvironmentVariables(envs ...configurations.EnvironmentVariable) *Process
type ProcessState ¶ added in v0.0.71
type ProcessState int
const ( Unknown ProcessState = iota NotFound ProcessState = iota Running InterruptibleSleep UninterruptibleSleep Stopped Zombie Dead TracingStop Idle Parked Waking )
func (ProcessState) String ¶ added in v0.0.71
func (ps ProcessState) String() string
type ProgressDetail ¶ added in v0.1.63
type TrackedProcess ¶ added in v0.0.71
func (*TrackedProcess) GetCPU ¶ added in v0.0.71
func (p *TrackedProcess) GetCPU(ctx context.Context) (*CPU, error)
func (*TrackedProcess) GetMemory ¶ added in v0.0.71
func (p *TrackedProcess) GetMemory(ctx context.Context) (*Memory, error)
func (*TrackedProcess) GetState ¶ added in v0.0.71
func (p *TrackedProcess) GetState(ctx context.Context) (ProcessState, error)
 Click to show internal directories. 
   Click to hide internal directories.