graph

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func AddAllDeploymentEdges added in v1.0.2

func AddAllDeploymentEdges(g osgraph.MutableUniqueGraph)

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 BelongsToDeploymentConfig added in v1.0.2

func BelongsToDeploymentConfig(config *deployapi.DeploymentConfig, b *kapi.ReplicationController) bool

func EachTemplateImage

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

func RelevantDeployments added in v1.0.2

RelevantDeployments returns the active deployment and a list of inactive deployments (in order from newest to oldest)

Types

type RecentDeploymentReferences

type RecentDeploymentReferences []*kubegraph.ReplicationControllerNode

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