stack

package
v0.0.0-...-b01d742 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContainerNamePrefix is the prefix added to all neo-local containers.
	ContainerNamePrefix = "coz_neo-local_"
)

Variables

This section is empty.

Functions

func ServiceContainerNames

func ServiceContainerNames() ([]string, error)

ServiceContainerNames returns all of the service container names in an array.

Types

type Service

type Service struct {
	Author          string
	ContainerConfig *container.Config
	DependsOn       []string
	HostConfig      *container.HostConfig
	Image           string
	Name            string
	Tag             string
}

Service defines a Docker container to run within the stack.

func NewAutoheal

func NewAutoheal() Service

NewAutoheal creates a new service for the autoheal container.

func NewFaucet

func NewFaucet() Service

NewFaucet creates a new service for the cityofzion/neo-local-faucet image.

func NewNeoPython

func NewNeoPython() (Service, error)

NewNeoPython creates a new service for the cityofzion/neo-python image.

func NewNeoScanAPI

func NewNeoScanAPI() Service

NewNeoScanAPI creates a new service for the registry.gitlab.com/cityofzion/neo-scan/sync:latest image.

func NewNeoScanSync

func NewNeoScanSync() Service

NewNeoScanSync creates a new service for the registry.gitlab.com/cityofzion/neo-scan/sync:latest image.

func NewNotificationsServer

func NewNotificationsServer() (Service, error)

NewNotificationsServer creates a new service for the cityofzion/neo-python image.

func NewPostgres

func NewPostgres() Service

NewPostgres creates a new service for the library/postgres container.

func NewPrivateNet

func NewPrivateNet() Service

NewPrivateNet creates a new service for the cityofzion/neo-privatenet image.

func Services

func Services() ([]Service, error)

Services returns all the services within the Docker stack.

func (Service) Config

func (s Service) Config() *container.Config

Config returns the full launch config for creating the container.

func (Service) ContainerName

func (s Service) ContainerName() string

ContainerName is the Docker container name.

func (Service) ImageName

func (s Service) ImageName() string

ImageName is the full Docker image name for the service, including the tag.

Jump to

Keyboard shortcuts

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