config

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package config defines the basic config format.

Index

Constants

This section is empty.

Variables

View Source
var (
	// TasksMap is a lookup table for tasks
	TasksMap = map[string]tasks.Task{}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Tasks         map[string]tasks.Task
	Plans         map[string]plans.Plan
	MetaPlans     map[string]plans.MetaPlan
	SSHIdentities []string
	Environment   []string
}

Config represents a full convey configuration.

func LoadFile

func LoadFile(file string, loader Loader, disableDeprecated bool) (*Config, error)

LoadFile will determine the file name and override file name and then call the loaders methods to load them.

type Loader added in v0.4.0

type Loader interface {
	Load(path, base string, data []byte, disableDeprecated bool) (*Config, error)
	LoadOverride(path, base string, data []byte, config *Config, disableDeprecated bool)
	Filenames() []string
	OverrideSuffix() string
	DefaultPlan() string
	ResolvePlanName(plan string, cfg *Config, st *state.State) string
}

Loader defines all the functions that a config loader needs to implement.

type TaskMap

type TaskMap map[string]tasks.Task

TaskMap is a type alias for a map of task names to tasks.

Jump to

Keyboard shortcuts

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