Documentation ¶
Index ¶
- func AllDeploymentConfigPipelines(g osgraph.Graph, excludeNodeIDs IntSet) ([]DeploymentConfigPipeline, IntSet)
- func AllImagePipelinesFromBuildConfig(g osgraph.Graph, excludeNodeIDs IntSet) ([]ImagePipeline, IntSet)
- func AllPods(g osgraph.Graph, excludeNodeIDs IntSet) ([]Pod, IntSet)
- func AllReplicationControllers(g osgraph.Graph, excludeNodeIDs IntSet) ([]ReplicationController, IntSet)
- func AllServiceGroups(g osgraph.Graph, excludeNodeIDs IntSet) ([]ServiceGroup, IntSet)
- func AllStatefulSets(g osgraph.Graph, excludeNodeIDs IntSet) ([]StatefulSet, IntSet)
- func CompareImagePipeline(a, b *ImagePipeline) bool
- func CompareObjectMeta(a, b *kapi.ObjectMeta) bool
- func MaxRecentContainerRestartsForRC(g osgraph.Graph, rcNode *kubegraph.ReplicationControllerNode) int32
- func NewDeploymentConfigPipeline(g osgraph.Graph, dcNode *deploygraph.DeploymentConfigNode) (DeploymentConfigPipeline, IntSet)
- func NewImagePipelineFromBuildConfigNode(g osgraph.Graph, bcNode *buildgraph.BuildConfigNode) (ImagePipeline, IntSet)
- func NewImagePipelineFromImageTagLocation(g osgraph.Graph, node graph.Node, imageTagLocation ImageTagLocation) (ImagePipeline, IntSet)
- func NewPod(g osgraph.Graph, podNode *kubegraph.PodNode) (Pod, IntSet)
- func NewReplicationController(g osgraph.Graph, rcNode *kubegraph.ReplicationControllerNode) (ReplicationController, IntSet)
- func NewServiceGroup(g osgraph.Graph, serviceNode *kubegraph.ServiceNode) (ServiceGroup, IntSet)
- func NewStatefulSet(g osgraph.Graph, node *kubegraph.StatefulSetNode) (StatefulSet, IntSet)
- type DeploymentConfigPipeline
- type ImagePipeline
- type ImageTagLocation
- type IntSet
- type Pod
- type ReplicationController
- type ServiceGroup
- type ServiceGroupByObjectMeta
- type SortedDeploymentConfigPipeline
- type SortedImagePipelines
- type SourceLocation
- type StatefulSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDeploymentConfigPipelines ¶
func AllDeploymentConfigPipelines(g osgraph.Graph, excludeNodeIDs IntSet) ([]DeploymentConfigPipeline, IntSet)
AllDeploymentConfigPipelines returns all the DCPipelines that aren't in the excludes set and the set of covered NodeIDs
func AllImagePipelinesFromBuildConfig ¶
func AllImagePipelinesFromBuildConfig(g osgraph.Graph, excludeNodeIDs IntSet) ([]ImagePipeline, IntSet)
func AllReplicationControllers ¶ added in v1.0.3
func AllReplicationControllers(g osgraph.Graph, excludeNodeIDs IntSet) ([]ReplicationController, IntSet)
AllReplicationControllers returns all the ReplicationControllers that aren't in the excludes set and the set of covered NodeIDs
func AllServiceGroups ¶
func AllServiceGroups(g osgraph.Graph, excludeNodeIDs IntSet) ([]ServiceGroup, IntSet)
AllServiceGroups returns all the ServiceGroups that aren't in the excludes set and the set of covered NodeIDs
func AllStatefulSets ¶
func AllStatefulSets(g osgraph.Graph, excludeNodeIDs IntSet) ([]StatefulSet, IntSet)
AllStatefulSets returns all the StatefulSets that aren't in the excludes set and the set of covered NodeIDs
func CompareImagePipeline ¶
func CompareImagePipeline(a, b *ImagePipeline) bool
func CompareObjectMeta ¶
func CompareObjectMeta(a, b *kapi.ObjectMeta) bool
func MaxRecentContainerRestartsForRC ¶ added in v1.3.0
func MaxRecentContainerRestartsForRC(g osgraph.Graph, rcNode *kubegraph.ReplicationControllerNode) int32
MaxRecentContainerRestartsForRC returns the maximum container restarts in pods in the replication controller node for the last 10 minutes.
func NewDeploymentConfigPipeline ¶
func NewDeploymentConfigPipeline(g osgraph.Graph, dcNode *deploygraph.DeploymentConfigNode) (DeploymentConfigPipeline, IntSet)
NewDeploymentConfigPipeline returns the DeploymentConfigPipeline and a set of all the NodeIDs covered by the DeploymentConfigPipeline
func NewImagePipelineFromBuildConfigNode ¶
func NewImagePipelineFromBuildConfigNode(g osgraph.Graph, bcNode *buildgraph.BuildConfigNode) (ImagePipeline, IntSet)
NewImagePipeline attempts to locate a build flow from the provided node. If no such build flow can be located, false is returned.
func NewImagePipelineFromImageTagLocation ¶
func NewImagePipelineFromImageTagLocation(g osgraph.Graph, node graph.Node, imageTagLocation ImageTagLocation) (ImagePipeline, IntSet)
NewImagePipelineFromImageTagLocation returns the ImagePipeline and all the nodes contributing to it
func NewPod ¶ added in v1.1.5
NewPod returns the Pod and a set of all the NodeIDs covered by the Pod
func NewReplicationController ¶ added in v1.0.3
func NewReplicationController(g osgraph.Graph, rcNode *kubegraph.ReplicationControllerNode) (ReplicationController, IntSet)
NewReplicationController returns the ReplicationController and a set of all the NodeIDs covered by the ReplicationController
func NewServiceGroup ¶
func NewServiceGroup(g osgraph.Graph, serviceNode *kubegraph.ServiceNode) (ServiceGroup, IntSet)
NewServiceGroup returns the ServiceGroup and a set of all the NodeIDs covered by the service
func NewStatefulSet ¶
func NewStatefulSet(g osgraph.Graph, node *kubegraph.StatefulSetNode) (StatefulSet, IntSet)
NewStatefulSet returns the StatefulSet and a set of all the NodeIDs covered by the StatefulSet
Types ¶
type DeploymentConfigPipeline ¶
type DeploymentConfigPipeline struct { Deployment *deploygraph.DeploymentConfigNode ActiveDeployment *kubegraph.ReplicationControllerNode InactiveDeployments []*kubegraph.ReplicationControllerNode Images []ImagePipeline }
type ImagePipeline ¶
type ImagePipeline struct { Image ImageTagLocation DestinationResolved bool ScheduledImport bool Build *buildgraph.BuildConfigNode LastSuccessfulBuild *buildgraph.BuildNode LastUnsuccessfulBuild *buildgraph.BuildNode ActiveBuilds []*buildgraph.BuildNode // If set, the base image used by the build BaseImage ImageTagLocation // if set, the build config names that produces the base image BaseBuilds []string // If set, the source repository that inputs to the build Source SourceLocation }
ImagePipeline represents a build, its output, and any inputs. The input to a build may be another ImagePipeline.
type ImageTagLocation ¶
ImageTagLocation identifies the source or destination of an image. Represents both a tag in a Docker image repository, as well as a tag in an OpenShift image stream.
type IntSet ¶
type ReplicationController ¶ added in v1.0.3
type ReplicationController struct { RC *kubegraph.ReplicationControllerNode OwnedPods []*kubegraph.PodNode CreatedPods []*kubegraph.PodNode ConflictingRCs []*kubegraph.ReplicationControllerNode ConflictingRCIDToPods map[int][]*kubegraph.PodNode }
func (*ReplicationController) MaxRecentContainerRestarts ¶ added in v1.3.0
func (rc *ReplicationController) MaxRecentContainerRestarts() int32
MaxRecentContainerRestarts returns the maximum container restarts for all pods in replication controller.
type ServiceGroup ¶
type ServiceGroup struct { Service *kubegraph.ServiceNode DeploymentConfigPipelines []DeploymentConfigPipeline ReplicationControllers []ReplicationController StatefulSets []StatefulSet // TODO: this has to stop FulfillingStatefulSets []*kubegraph.StatefulSetNode FulfillingDCs []*deploygraph.DeploymentConfigNode FulfillingRCs []*kubegraph.ReplicationControllerNode FulfillingPods []*kubegraph.PodNode ExposingRoutes []*routegraph.RouteNode }
ServiceGroup is a service, the DeploymentConfigPipelines it covers, and lists of the other nodes that fulfill it
type ServiceGroupByObjectMeta ¶ added in v1.0.8
type ServiceGroupByObjectMeta []ServiceGroup
func (ServiceGroupByObjectMeta) Len ¶ added in v1.0.8
func (m ServiceGroupByObjectMeta) Len() int
func (ServiceGroupByObjectMeta) Less ¶ added in v1.0.8
func (m ServiceGroupByObjectMeta) Less(i, j int) bool
func (ServiceGroupByObjectMeta) Swap ¶ added in v1.0.8
func (m ServiceGroupByObjectMeta) Swap(i, j int)
type SortedDeploymentConfigPipeline ¶
type SortedDeploymentConfigPipeline []DeploymentConfigPipeline
func (SortedDeploymentConfigPipeline) Len ¶
func (m SortedDeploymentConfigPipeline) Len() int
func (SortedDeploymentConfigPipeline) Less ¶
func (m SortedDeploymentConfigPipeline) Less(i, j int) bool
func (SortedDeploymentConfigPipeline) Swap ¶
func (m SortedDeploymentConfigPipeline) Swap(i, j int)
type SortedImagePipelines ¶
type SortedImagePipelines []ImagePipeline
func (SortedImagePipelines) Len ¶
func (m SortedImagePipelines) Len() int
func (SortedImagePipelines) Less ¶
func (m SortedImagePipelines) Less(i, j int) bool
func (SortedImagePipelines) Swap ¶
func (m SortedImagePipelines) Swap(i, j int)
type SourceLocation ¶
type SourceLocation interface {
ID() int
}
SourceLocation identifies a repository that is an input to a build.