Documentation ¶
Index ¶
- Constants
- func AddAllTriggerEdges(g osgraph.MutableUniqueGraph)
- func AddTriggerEdges(g osgraph.MutableUniqueGraph, node *deploygraph.DeploymentConfigNode) *deploygraph.DeploymentConfigNode
- func EachTemplateImage(pod *kapi.PodSpec, triggerFn TriggeredByFunc, fn func(TemplateImage, error))
- func JoinDeployments(node *deploygraph.DeploymentConfigNode, deploys []kapi.ReplicationController)
- type RecentDeploymentReferences
- type TemplateImage
- type TriggeredByFunc
Constants ¶
View Source
const ( TriggersDeploymentEdgeKind = "TriggersDeployment" UsedInDeploymentEdgeKind = "UsedInDeployment" )
Variables ¶
This section is empty.
Functions ¶
func AddAllTriggerEdges ¶
func AddAllTriggerEdges(g osgraph.MutableUniqueGraph)
func AddTriggerEdges ¶
func AddTriggerEdges(g osgraph.MutableUniqueGraph, node *deploygraph.DeploymentConfigNode) *deploygraph.DeploymentConfigNode
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 (m RecentDeploymentReferences) Len() int
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
Click to show internal directories.
Click to hide internal directories.