config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCommand

func DefaultCommand(runtime string) string

DefaultCommand returns the default command for the specified runtime

Types

type Config

type Config struct {
	Environments []Environment `json:"environments"`
}

func ParseConfig

func ParseConfig(b []byte) (*Config, error)

parses json bytes into a Config struct

func ReadConfig

func ReadConfig(path string) (*Config, error)

reads the file at `path`

func (*Config) Validate

func (c *Config) Validate() error

validates all configuration provided

type Environment

type Environment struct {
	Machine string   // hyper.sh machine size, ie: s1
	Version string   // runtime version, ie 1.9
	Runtime string   // runtime name, ie: golang, ruby, jruby
	Command string   // benchmark command
	Before  []string // commands to run on container before benchmark
}

representation of json config file

Jump to

Keyboard shortcuts

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