stack

package
v0.0.0-...-6eda7e3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//HTTP protocol
	HTTP = "http"
	//TCP protocol
	TCP = "tcp"
	//UDP protocol
	UDP = "udp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name  string
	Image string
}

Container represents a container in a i2kit.yml file

type Link struct {
	Service string
	Alias   string
}

Link represents a container link

type Port

type Port struct {
	Container string
	Number    int
	Protocol  string
}

Port represents a container port

type Service

type Service struct {
	Name       string
	Size       string
	Min        int
	Max        int
	Ports      []*Port
	Links      []*Link
	Containers map[string]*Container
}

Service represents a service in a i2kit.yml file

type Stack

type Stack struct {
	Name     string
	Services map[string]*Service
}

Stack represents a i2kit.yml file

func Read

func Read(name, path string) (*Stack, error)

Read returns a stack structure given a path to i2kit.yml file

Jump to

Keyboard shortcuts

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