container

package
v2.4.4+incompatible Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 8 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

New create a new watcher which used to watch container info

Types

type ContainerWatcher

type ContainerWatcher struct {
	watcher.BaseWatcher
	// contains filtered or unexported fields
}

type Info

type Info struct {
	AppName    string `json:"app"`
	AppVersion string `json:"app_version"`
	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 spec.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