integration

package
v0.0.0-...-120fae7 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) Close

func (t *TestController) Close() error

Close does nothing.

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.

func (*TestController) Update

func (t *TestController) Update(ctx context.Context, task *api.Task) error

Update does nothing.

func (*TestController) Wait

func (t *TestController) Wait(ctx context.Context) error

Wait waits on internal channel.

type TestExecutor

type TestExecutor struct {
}

TestExecutor is executor for integration tests

func (*TestExecutor) Configure

func (e *TestExecutor) Configure(ctx context.Context, node *api.Node) error

Configure does nothing.

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.

Jump to

Keyboard shortcuts

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