Module hawkbit_mock::ddi[][src]

Expand description

Direct Device Integration mock server.

This module provides a hawkBit mock server implementing the DDI API. It can be instrumented to test any hawkbit client.

Examples

use hawkbit_mock::ddi::ServerBuilder;

let server = ServerBuilder::default().build();
let target = server.add_target("Target1");

You can tell call Target::request_config or Target::push_deployment to to interact with the server.

Check the the hawbit crate for actual tests using this mock server.

Structs

Chunk

Software chunk of an update.

Deployment

A pending deployment update pushed to the target.

DeploymentBuilder

Builder of Deployment.

Server

Mock DDI server instance.

ServerBuilder

Builder of Server.

Target

A configured device the server can request configuration for and push updates to.

Enums

ChunkProtocol

Protocol(s) over which chunks are served