task

package
v0.0.0-...-4592af0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2016 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Overview

Package task describes a task resource in the cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterState

type ClusterState []Task

ClusterState describes the current state of the cluster.

type Port

type Port struct {
	HostIP   net.IP
	HostPort int
	Proto    string
}

Port describes network port of a service on the host machine.

func (Port) String

func (p Port) String() string

type Task

type Task struct {
	Id      string // Identifies container in the cluster
	Ports   []Port // List of container ports mapped to host <IP:port>
	Service string // Name of the service that groups tasks under the same DNS record
	Domain  string // Optional, a domain name describing the project name the task belongs to, or the launcher framework/orchestrator.
}

Task describes a running (active) container in the cluster.

Jump to

Keyboard shortcuts

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