datatypes

package
v0.0.0-...-6fc7b46 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEPLOYMENT_CUTOFF = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	ID          string
	Name        string
	StartTime   time.Time
	EndTime     time.Time
	Version     string
	Image       string
	ClusterName string
	Hostnames   []string
}

func DeploymentFromNotification

func DeploymentFromNotification(notice *Notification) *Deployment

Construct a deployment object from a datatypes object

func (*Deployment) Aggregate

func (d *Deployment) Aggregate(other *Deployment)

func (*Deployment) Matches

func (d *Deployment) Matches(other *Deployment) bool

type Notification

type Notification struct {
	Event       *catalog.ChangeEvent
	ClusterName string
}

func NotificationFromEvent

func NotificationFromEvent(evt *catalog.StateChangedEvent) *Notification

Jump to

Keyboard shortcuts

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