config

package
v0.0.0-...-4fe36f1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config provies utilities to read in a test configuration file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentTest

type ConcurrentTest struct {
	User []User
}

ConcurrentTest contains a slice of users to test concurrent access for.

type Config

type Config struct {
	Pluto   Pluto
	Dovecot Dovecot
	Gmail   Gmail
}

Config holds all information parsed from supplied config file.

func LoadConfig

func LoadConfig(configFile string) (*Config, error)

LoadConfig takes in the path to the test config file of pluto and Dovecot system in TOML syntax and fills above structs.

type Distributor

type Distributor struct {
	CertLoc string
	KeyLoc  string
}

Distributor holds paths to self-signed certificates to connect securely to pluto's distributor.

type Dovecot

type Dovecot struct {
	IP             string
	Port           string
	TLS            bool
	CertLoc        string
	AppendTest     User
	CreateTest     User
	DeleteTest     User
	StoreTest      User
	ConcurrentTest ConcurrentTest
}

Dovecot contains IP and port of the comparison Dovecot system to test.

type Gmail

type Gmail struct {
	Server     string
	Port       string
	TLS        bool
	AppendTest User
	CreateTest User
	DeleteTest User
	StoreTest  User
}

Gmail bundles information needed to perform evaluation tests against a Gmail server.

type Pluto

type Pluto struct {
	IP             string
	Port           string
	TLS            bool
	RootCertLoc    string
	Distributor    Distributor
	AppendTest     User
	CreateTest     User
	DeleteTest     User
	StoreTest      User
	ConcurrentTest ConcurrentTest
}

Pluto defines the relevant information in order to connect to a pluto system to test.

type User

type User struct {
	Name     string
	Password string
}

User carries authentication information for a test user in system to be tested.

Jump to

Keyboard shortcuts

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