Documentation ¶
Index ¶
- func CheckForRuntimes(ctx context.Context, requirements []*agentv0.Runtime) error
- func DockerEngineRunning(ctx context.Context) bool
- func IsFreePort(port int) bool
- func WaitForPortUnbound(ctx context.Context, port int) error
- type CPU
- type Docker
- func (docker *Docker) ForwardLogs(reader io.Reader)
- func (docker *Docker) GetImage(ctx context.Context, image *configurations.DockerImage) error
- func (docker *Docker) ImageExists(ctx context.Context, image *configurations.DockerImage) (bool, error)
- func (docker *Docker) Init(ctx context.Context, image *configurations.DockerImage) error
- func (docker *Docker) Running() bool
- func (docker *Docker) SetCommand(bin string, args ...string)
- func (docker *Docker) Silence()
- func (docker *Docker) Start(ctx context.Context) error
- func (docker *Docker) Stop() error
- func (docker *Docker) WithCommand(cmd ...string)
- func (docker *Docker) WithEnvironmentVariables(envs ...string)
- 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) WithPort(port DockerPortMapping)
- func (docker *Docker) WithWorkDir(dir string)
- type DockerContainerInstance
- type DockerPortMapping
- type Event
- type Memory
- type MultiReader
- type ProcessState
- type Runner
- func (runner *Runner) Finish()
- func (runner *Runner) Finished() bool
- func (runner *Runner) ForwardLogs(reader io.Reader)
- func (runner *Runner) Run() error
- func (runner *Runner) Start(args ...string) error
- func (runner *Runner) Stop() error
- func (runner *Runner) Wait() error
- func (runner *Runner) WithDebug(debug bool) *Runner
- func (runner *Runner) WithDir(dir string) *Runner
- func (runner *Runner) WithEnvs(envs ...string) *Runner
- func (runner *Runner) WithOut(out io.Writer)
- type Tracked
- type TrackedProcess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForRuntimes ¶ added in v0.1.6
func DockerEngineRunning ¶ added in v0.1.35
func IsFreePort ¶ added in v0.1.24
Types ¶
type Docker ¶ added in v0.0.87
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) ForwardLogs ¶ added in v0.1.24
func (*Docker) GetImage ¶ added in v0.0.87
func (docker *Docker) GetImage(ctx context.Context, image *configurations.DockerImage) error
func (*Docker) ImageExists ¶ added in v0.0.87
func (docker *Docker) ImageExists(ctx context.Context, image *configurations.DockerImage) (bool, error)
func (*Docker) Init ¶ added in v0.0.87
func (docker *Docker) Init(ctx context.Context, image *configurations.DockerImage) error
func (*Docker) SetCommand ¶ added in v0.1.24
SetCommand to run
func (*Docker) WithCommand ¶ added in v0.1.6
func (*Docker) WithEnvironmentVariables ¶ added in v0.1.6
func (*Docker) WithPort ¶ added in v0.1.6
func (docker *Docker) WithPort(port DockerPortMapping)
func (*Docker) WithWorkDir ¶ added in v0.1.25
type DockerContainerInstance ¶ added in v0.0.87
type DockerContainerInstance struct {
// contains filtered or unexported fields
}
type DockerPortMapping ¶ added in v0.1.24
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 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 Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) ForwardLogs ¶ added in v0.1.22
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.