graph

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TriggersDeploymentEdgeKind = "TriggersDeployment"
	UsedInDeploymentEdgeKind   = "UsedInDeployment"
)

Variables

This section is empty.

Functions

func AddAllTriggerEdges

func AddAllTriggerEdges(g osgraph.MutableUniqueGraph)

func AddTriggerEdges

AddTriggerEdges creates edges that point to named Docker image repositories for each image used in the deployment.

func EachTemplateImage

func EachTemplateImage(pod *kapi.PodSpec, triggerFn TriggeredByFunc, fn func(TemplateImage, error))

func JoinDeployments

func JoinDeployments(node *deploygraph.DeploymentConfigNode, deploys []kapi.ReplicationController)

TODO kill this. It should be based on an edge traversal to loaded replication controllers

Types

type RecentDeploymentReferences

type RecentDeploymentReferences []*kapi.ReplicationController

func (RecentDeploymentReferences) Len

func (RecentDeploymentReferences) Less

func (m RecentDeploymentReferences) Less(i, j int) bool

func (RecentDeploymentReferences) Swap

func (m RecentDeploymentReferences) Swap(i, j int)

type TemplateImage

type TemplateImage struct {
	Image string

	Ref *imageapi.DockerImageReference

	From    *kapi.ObjectReference
	FromTag string
}

TODO: move to deploy/api/helpers.go

type TriggeredByFunc

type TriggeredByFunc func(container *kapi.Container) (TemplateImage, bool)

func DeploymentConfigHasTrigger

func DeploymentConfigHasTrigger(config *deployapi.DeploymentConfig) TriggeredByFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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