typdocker

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() interface{}

Module of docker

Types

type Compose

type Compose struct {
	Version  string
	Services map[string]interface{}
	Networks map[string]interface{}
	Volumes  map[string]interface{}
}

Compose is abstraction for docker-compose.yml

func (*Compose) Add

func (c *Compose) Add(comp Compose)

Add another compose

type DockerComposer

type DockerComposer interface {
	DockerCompose() Compose
}

DockerComposer responsible to compose docker

type Network

type Network struct {
	Driver string `yaml:"driver,omitempty"`
}

Network in docker-compose.yaml

type Service

type Service struct {
	Image       string            `yaml:"image,omitempty"`
	Command     string            `yaml:"command,omitempty"`
	Environment map[string]string `yaml:"environment,omitempty"`
	Volumes     []string          `yaml:"volumes,omitempty"`
	Ports       []string          `yaml:"ports,omitempty"`
	Networks    []string          `yaml:"networks,omitempty"`
	Restart     string            `yaml:"restart,omitempty"`
}

Service in docker-compose.yaml

Jump to

Keyboard shortcuts

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