Documentation ¶
Index ¶
- type TestController
- func (t *TestController) Close() error
- func (t *TestController) Prepare(ctx context.Context) error
- func (t *TestController) Remove(ctx context.Context) error
- func (t *TestController) Shutdown(ctx context.Context) error
- func (t *TestController) Start(ctx context.Context) error
- func (t *TestController) Terminate(ctx context.Context) error
- func (t *TestController) Update(ctx context.Context, task *api.Task) error
- func (t *TestController) Wait(ctx context.Context) error
- type TestExecutor
- func (e *TestExecutor) Configure(ctx context.Context, node *api.Node) error
- func (e *TestExecutor) Controller(t *api.Task) (exec.Controller, error)
- func (e *TestExecutor) Describe(ctx context.Context) (*api.NodeDescription, error)
- func (e *TestExecutor) SetNetworkBootstrapKeys([]*api.EncryptionKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestController ¶
type TestController struct {
// contains filtered or unexported fields
}
TestController is dummy channel based controller for tests.
func (*TestController) Prepare ¶
func (t *TestController) Prepare(ctx context.Context) error
Prepare does nothing.
func (*TestController) Remove ¶
func (t *TestController) Remove(ctx context.Context) error
Remove does nothing.
func (*TestController) Shutdown ¶
func (t *TestController) Shutdown(ctx context.Context) error
Shutdown closes internal channel
func (*TestController) Start ¶
func (t *TestController) Start(ctx context.Context) error
Start does nothing.
func (*TestController) Terminate ¶
func (t *TestController) Terminate(ctx context.Context) error
Terminate closes internal channel if it wasn't closed before.
type TestExecutor ¶
type TestExecutor struct { }
TestExecutor is executor for integration tests
func (*TestExecutor) Controller ¶
func (e *TestExecutor) Controller(t *api.Task) (exec.Controller, error)
Controller returns TestController.
func (*TestExecutor) Describe ¶
func (e *TestExecutor) Describe(ctx context.Context) (*api.NodeDescription, error)
Describe just returns empty NodeDescription.
func (*TestExecutor) SetNetworkBootstrapKeys ¶
func (e *TestExecutor) SetNetworkBootstrapKeys([]*api.EncryptionKey) error
SetNetworkBootstrapKeys does nothing.
Click to show internal directories.
Click to hide internal directories.