schema

package
v0.0.0-...-3116fbc Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServiceMap

func CreateServiceMap(data []byte) (map[string]Service, error)

Types

type Cluster

type Cluster struct {
	Name     string
	Services map[string]Service
}

type ClusterManager

type ClusterManager struct {
}

type ContainerDefinition

type ContainerDefinition struct {
	Name        string
	Image       string            `yaml:"image"`
	Ports       []string          `yaml:"ports"`
	Environment map[string]string `yaml:"environment"`
	Links       []string          `yaml:"links"`
	Volumes     []string          `yaml:"volumes"`
	//	volumes:
	//- /var/lib/mysql
	//- cache/:/tmp/cache
	//- ~/configs:/etc/configs/:ro
	Memory     int64  `yaml:"memory"`
	CpuUnits   int64  `yaml:"cpu_units"`
	Essential  bool   `yaml:"essential"`
	EntryPoint string `yaml:"entry_point"`
	Command    string `yaml:"command"`
}

type Service

type Service struct {
	Name           string
	TaskDefinition string `yaml:"task_definition"`
	DesiredCount   int64  `yaml:"desired_count"`
}

type TaskDefinition

type TaskDefinition struct {
	Name                 string
	ContainerDefinitions map[string]*ContainerDefinition
}

func CreateTaskDefinition

func CreateTaskDefinition(taskDefName string, data []byte) (*TaskDefinition, error)

Jump to

Keyboard shortcuts

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