state

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

* Convey * Copyright 2016-2017 Gary Kramlich <[email protected]> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Network       network.Network
	Workspace     workspace.Workspace
	KeepWorkspace bool

	ForceSequential bool
	EnableSSHAgent  bool
	TaskTimeout     time.Duration
	Environment     []string
	ExtendFrames    []extendFrame

	DockerConfig string
	CPUShares    string
	Memory       string

	DetachedContainers []string
}

func (*State) MapSlice added in v0.10.0

func (st *State) MapSlice(env, fullEnv []string) ([]string, error)

MapSlice calls SliceMapper on the given environment, but also checks to see if the variable could be expanded into a list.

func (*State) PopExtendFrame added in v0.10.0

func (st *State) PopExtendFrame() error

PopExtendFrame will remove one frame from the top of the stack.

func (*State) PushExtendFrame added in v0.10.0

func (st *State) PushExtendFrame(env, expandable []string, delimiter string)

PushExtendFrame will store the set of expandable environment variables and the current set of environments which are restored on pop. These frames are used to map a slice within an extended task.

func (*State) Valid

func (st *State) Valid() error

Jump to

Keyboard shortcuts

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