service_yml

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

Types

type Constraints

type Constraints struct {
	Resources Resources `yaml:"resources,omitempty"`
}

type Port

type Port struct {
	Container int `yaml:"container,omitempty"`
	Http      int `yaml:"http,omitempty"`
	Https     int `yaml:"https,omitempty"`
	Tcp       int `yaml:"tcp,omitempty"`
	Udp       int `yaml:"udp,omitempty"`
}

type Ports

type Ports []Port

func (*Ports) UnmarshalYAML

func (p *Ports) UnmarshalYAML(unmarshal func(interface{}) error) error

type Resources

type Resources struct {
	Memory string `yaml:"memory,omitempty"`
	Cpu    int    `yaml:"cpu,omitempty"`
}

type Service

type Service struct {
	GitUrl           string            `yaml:"git_url,omitempty"`
	GitBranch        string            `yaml:"git_branch,omitempty"`
	BuildRoot        string            `yaml:"build_root,omitempty"`
	BuildCommand     string            `yaml:"build_command,omitempty"`
	DockerfilePath   string            `yaml:"dockerfile_path,omitempty"`
	Image            string            `yaml:"image,omitempty"`
	Command          string            `yaml:"command,omitempty"`
	Requires         []string          `yaml:"requires,omitempty"`
	Tags             map[string]string `yaml:"tags,omitempty"`
	Ports            Ports             `yaml:"ports,omitempty"`
	EnvVars          map[string]string `yaml:"env_vars,omitempty"`
	Volumes          []string          `yaml:"volumes,omitempty"`
	StopGrace        int               `yaml:"stop_grace,omitempty"`
	Constraints      Constraints       `yaml:"constraints,omitempty"`
	WorkDir          string            `yaml:"work_dir,omitempty"`
	Privileged       bool              `yaml:"privileged,omitempty"`
	PreStopCommand   string            `yaml:"pre_stop_command,omitempty"`
	PostStartCommand string            `yaml:"post_start_command,omitempty"`
	DeployCommand    string            `yaml:"deploy_command,omitempty"`
	LogFolder        string            `yaml:"log_folder,omitempty"`
	DnsBehaviour     string            `yaml:"dns_behaviour,omitempty"`
	UseHabitus       bool              `yaml:"use_habitus,omitempty"`
	UseHabitusStep   string            `yaml:"use_habitus_step,omitempty"`
	Health           string            `yaml:"health,omitempty"`
	PreStartSignal   string            `yaml:"pre_start_signal,omitempty"`
	PreStopSequence  string            `yaml:"pre_stop_sequence,omitempty"`
	RestartOnDeploy  bool              `yaml:"restart_on_deploy,omitempty"`
	TrafficMatches   TrafficMatches    `yaml:"traffic_matches,omitempty"`
}

type ServiceYml

type ServiceYml struct {
	Services  map[string]Service `yaml:"services,omitempty"`
	Databases []string           `yaml:"databases,omitempty"`
}

func (ServiceYml) MarshalToFile

func (s ServiceYml) MarshalToFile(path string) error

func (*ServiceYml) UnmarshalFromFile

func (s *ServiceYml) UnmarshalFromFile(path string) error

type TrafficMatches

type TrafficMatches []string

func (*TrafficMatches) UnmarshalYAML

func (t *TrafficMatches) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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