object

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Image       string
	Environment []EnvVariable
	Ports       []Port
}

type EnvVariable

type EnvVariable struct {
	Key   string
	Value string
}

type OpenCompose

type OpenCompose struct {
	Version  string
	Services []Service
	Volumes  []Volume
}

func (*OpenCompose) Validate

func (o *OpenCompose) Validate() error

Does high level (mostly semantic) validation of OpenCompose (e.g. it checks internal object references)

type Port

type Port struct {
	Port PortMapping
	Type PortType
	Host *string
	Path string
}

type PortMapping

type PortMapping struct {
	ContainerPort int
	ServicePort   int
}

type PortType

type PortType int
const (
	PortType_Internal PortType = iota
	PortType_External
)

type Service

type Service struct {
	Name       string
	Containers []Container
	Replicas   *int32
}

func (*Service) Validate

func (s *Service) Validate() error

type Volume

type Volume struct {
	Name string
	Size string
	Mode string
}

Jump to

Keyboard shortcuts

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