control

package
v0.0.0-...-01a130c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: GPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIndex

func GetIndex(slice []string, value string) int

GetIndex will find the index of a value in a slice. if no matching value is found it returns a -1

Types

type Project

type Project struct {
	StateConditions map[string]types.StateConditions
	ComposeProject  project.APIProject
	Services        map[string]project.Service
	// contains filtered or unexported fields
}

func GenProject

func GenProject(name string, files []string, appVersions []string) (Project, error)

GenProject will generate a Project object using the config files passed in

func (*Project) Containers

func (p *Project) Containers(name string) ([]project.Container, error)

Container will return the containers associated with a particular service

func (*Project) SortedServices

func (p *Project) SortedServices() []string

SortedServices build a sorted list of services based on each services dependencies. We use a topological sort for this

Jump to

Keyboard shortcuts

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