application

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2018 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Stellar Application Service

The Stellar application service provides a simple way of launching container workloads.

Format

Stellar applications are represented in JSON format for portability and interoperatbility.

{
    "name": "example-application",
    "labels": [
        "env=prod",
        "region=us-east"
    ],
    "services": [
        {
            "name": "redis",
            "image": "docker.io/library/redis:alpine",
            "process": {
                "uid": 0,
                "gid": 0,
                "args": ["redis-server"]
            },
            "labels": [
                "env=prod"
            ],
            "network": true,
            "mounts": [
                {
                    "type": "bind",
                    "source": "/mnt/data",
                    "destination": "/data",
                    "options": ["rbind"]
                }
            ]
        },
        {
            "name": "processor",
            "image": "docker.io/ehazlett/processor:alpine",
            "process": {
                "args": ["--debug"],
                "env": ["PROCS=4"]
            },
            "resources": {
                "cpu": 0.1,
                "memory": 128
            },
            "network": true
        },
        {
            "name": "ui",
            "image": "docker.io/ehazlett/ui:alpine",
            "network": true,
            "instances": 4,
	    "endpoints": [
                {
                    "service": "ui",
                    "protocol": "http",
                    "host": "example.com",
                    "port": 8080,
                    "tls": false
                }
            ]

        }
    ]
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrApplicationNotFound = errors.New("application not found")
)

Functions

func New

func New(cfg *stellar.Config, agent *element.Agent) (*service, error)

Types

type AppSorter

type AppSorter []*api.App

func (AppSorter) Len

func (a AppSorter) Len() int

func (AppSorter) Less

func (a AppSorter) Less(i, j int) bool

func (AppSorter) Swap

func (a AppSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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