Documentation ¶
Index ¶
- Constants
- func AddAllBuildEdges(g osgraph.MutableUniqueGraph)
- func AddAllInputOutputEdges(g osgraph.MutableUniqueGraph)
- func AddBuildEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
- func AddInputEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
- func AddInputOutputEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode) *buildgraph.BuildConfigNode
- func AddOutputEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
- func AddTriggerEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
- func RelevantBuilds(g osgraph.Graph, bcNode *buildgraph.BuildConfigNode) (*buildgraph.BuildNode, *buildgraph.BuildNode, []*buildgraph.BuildNode)
- type RecentBuildReferences
Constants ¶
const ( // BuildTriggerImageEdgeKind is an edge from an ImageStream to a BuildConfig that // represents a trigger connection. Changes to the ImageStream will trigger a new build // from the BuildConfig. BuildTriggerImageEdgeKind = "BuildTriggerImage" // BuildInputImageEdgeKind is an edge from an ImageStream to a BuildConfig, where the // ImageStream is the source image for the build (builder in S2I builds, FROM in Docker builds, // custom builder in Custom builds). The same ImageStream can also have a trigger // relationship with the BuildConfig, but not necessarily. BuildInputImageEdgeKind = "BuildInputImage" // BuildOutputEdgeKind is an edge from a BuildConfig to an ImageStream. The ImageStream will hold // the ouptut of the Builds created with that BuildConfig. BuildOutputEdgeKind = "BuildOutput" // BuildInputEdgeKind is an edge from a source repository to a BuildConfig. The source repository is the // input source for the build. BuildInputEdgeKind = "BuildInput" // BuildEdgeKind goes from a BuildConfigNode to a BuildNode and indicates that the buildConfig owns the build BuildEdgeKind = "Build" )
Variables ¶
This section is empty.
Functions ¶
func AddAllBuildEdges ¶
func AddAllBuildEdges(g osgraph.MutableUniqueGraph)
AddAllBuildEdges adds build edges to all BuildConfig nodes in the given graph
func AddAllInputOutputEdges ¶
func AddAllInputOutputEdges(g osgraph.MutableUniqueGraph)
AddAllInputOutputEdges adds input and output edges for all BuildConfigs in the given graph
func AddBuildEdges ¶
func AddBuildEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
AddBuildEdges adds edges that connect a BuildConfig to Builds to the given graph
func AddInputEdges ¶
func AddInputEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
AddInputEdges links the build config to its input image and source nodes.
func AddInputOutputEdges ¶
func AddInputOutputEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode) *buildgraph.BuildConfigNode
AddInputOutputEdges links the build config to other nodes for the images and source repositories it depends on.
func AddOutputEdges ¶
func AddOutputEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
AddOutputEdges links the build config to its output image node.
func AddTriggerEdges ¶
func AddTriggerEdges(g osgraph.MutableUniqueGraph, node *buildgraph.BuildConfigNode)
AddTriggerEdges links the build config to its trigger input image nodes.
func RelevantBuilds ¶
func RelevantBuilds(g osgraph.Graph, bcNode *buildgraph.BuildConfigNode) (*buildgraph.BuildNode, *buildgraph.BuildNode, []*buildgraph.BuildNode)
RelevantBuilds returns the lastSuccessful build, lastUnsuccesful build, and a list of active builds
Types ¶
type RecentBuildReferences ¶
type RecentBuildReferences []*buildgraph.BuildNode
func (RecentBuildReferences) Len ¶
func (m RecentBuildReferences) Len() int
func (RecentBuildReferences) Less ¶
func (m RecentBuildReferences) Less(i, j int) bool
func (RecentBuildReferences) Swap ¶
func (m RecentBuildReferences) Swap(i, j int)