Struct blockade::BlockadeHandler [] [src]

pub struct BlockadeHandler {
    pub client: Client,
    pub host: String,
    pub blockades: Vec<String>,
    pub state: HashMap<String, BlockadeState>,
    pub config: HashMap<String, BlockadeConfig>,
}

Fields

Methods

impl BlockadeHandler
[src]

[src]

Make a new BlockadeHandler that uses a blockade instance started at "host".

[src]

[src]

[src]

Start a blockade from a given name and config struct.

[src]

[src]

Stop a container by blockade name and container name.

[src]

Restart a container by blockade name and container name.

[src]

Restart a random-ish container. Returns the name of the restarted container.

[src]

Kills a container by blockade name and container name.

[src]

Kill a random-ish container. Returns the name of the killed container.

[src]

Makes partitions according to the given nested Vec<Vec> of container names.

[src]

Puts all containers in one partition and restores the network QoS.

[src]

Makes the network condition generally bad. Introduces at least latency and dropped packets potentially also causes reordering of some magnitude.

[src]

Makes the network condition as good as can be given the host conditions. Generally this means near perfect since the containers are usually on the local machine and the OS is reasonably good about pushing packets.

[src]

Shuts down the blockade and all of its containers. Probably don't want to use this blockade afterward, considering it's pretty final.

[src]

Trait Implementations

impl Debug for BlockadeHandler
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations