Documentation ¶
Index ¶
- type BaseEnv
- type DockerEnv
- type Env
- type ExecEnv
- type MonitoredEnv
- func (e *MonitoredEnv) AllocNode(baseName string, ports yurt.Ports) (yurt.Node, error)
- func (e *MonitoredEnv) Context() context.Context
- func (e *MonitoredEnv) Go(f func() error)
- func (e *MonitoredEnv) PromAddr() *runner.APIConfig
- func (e *MonitoredEnv) Run(ctx context.Context, cmd runner.Command, node yurt.Node) (runner.Harness, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEnv ¶
type DockerEnv ¶
type DockerEnv struct { BaseEnv BinMgr binaries.Manager DockerAPI *dockerapi.Client NetConf yurt.NetworkConfig // contains filtered or unexported fields }
func NewDockerEnv ¶
func NewDockerTestEnv ¶
type MonitoredEnv ¶
type MonitoredEnv struct {
// contains filtered or unexported fields
}
MonitoredEnv runs a Prometheus server whose targets are configured dynamically as we start them. Prometheus is run locally as a sub-process. TODO make it possible to run Prometheus via any env with network access to the monitored targets.
func NewMonitoredEnv ¶
func NewMonitoredEnv(parent, ex Env) (*MonitoredEnv, error)
func NewMonitoredExecTestEnv ¶
func NewMonitoredExecTestEnv(t *testing.T, timeout time.Duration) (*MonitoredEnv, func())
func (*MonitoredEnv) Context ¶
func (e *MonitoredEnv) Context() context.Context
func (*MonitoredEnv) Go ¶
func (e *MonitoredEnv) Go(f func() error)
func (*MonitoredEnv) PromAddr ¶
func (e *MonitoredEnv) PromAddr() *runner.APIConfig
Click to show internal directories.
Click to hide internal directories.