container

package
v2.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// KEY represents the key path in store
	KEY = "/lain/deployd/pod_groups"
)

Variables

This section is empty.

Functions

func New

func New(s store.Store, ctx context.Context) (*watcher.Watcher, error)

New create a new watcher which used to watch container info

Types

type Info

type Info struct {
	AppName    string `json:"app"`
	ProcName   string `json:"proc"`
	NodeName   string `json:"nodename"`
	NodeIP     string `json:"nodeip"`
	IP         string `json:"ip"`
	Port       int    `json:"port"`
	InstanceNo int    `json:"instanceNo"`
}

Info represents the container info, the data type returned by this container watcher

type PodGroup

type PodGroup engine.PodGroupWithSpec

PodGroup is actually from the deployd engine, it actually engine.PodGroupWithSpec

Jump to

Keyboard shortcuts

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