{"modulePath":"github.phpd.cn/openshift/origin","version":"v3.8.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package graphview\n\n## Functions\n\n```go\nfunc AllDeploymentConfigPipelines(g osgraph.Graph, excludeNodeIDs IntSet) ([]DeploymentConfigPipeline, IntSet)\n```\nAllDeploymentConfigPipelines returns all the DCPipelines that aren't in the excludes set and the set of covered NodeIDs\n\n```go\nfunc AllImagePipelinesFromBuildConfig(g osgraph.Graph, excludeNodeIDs IntSet) ([]ImagePipeline, IntSet)\n```\n\n```go\nfunc AllPods(g osgraph.Graph, excludeNodeIDs IntSet) ([]Pod, IntSet)\n```\nAllPods returns all Pods and the set of covered NodeIDs\n\n```go\nfunc AllReplicationControllers(g osgraph.Graph, excludeNodeIDs IntSet) ([]ReplicationController, IntSet)\n```\nAllReplicationControllers returns all the ReplicationControllers that aren't in the excludes set and the set of covered NodeIDs\n\n```go\nfunc AllServiceGroups(g osgraph.Graph, excludeNodeIDs IntSet) ([]ServiceGroup, IntSet)\n```\nAllServiceGroups returns all the ServiceGroups that aren't in the excludes set and the set of covered NodeIDs\n\n```go\nfunc AllStatefulSets(g osgraph.Graph, excludeNodeIDs IntSet) ([]StatefulSet, IntSet)\n```\nAllStatefulSets returns all the StatefulSets that aren't in the excludes set and the set of covered NodeIDs\n\n```go\nfunc CompareImagePipeline(a, b *ImagePipeline) bool\n```\n\n```go\nfunc CompareObjectMeta(a, b *metav1.ObjectMeta) bool\n```\n\n```go\nfunc MaxRecentContainerRestartsForRC(g osgraph.Graph, rcNode *kubegraph.ReplicationControllerNode) int32\n```\nMaxRecentContainerRestartsForRC returns the maximum container restarts in pods in the replication controller node for the last 10 minutes.\n\n```go\nfunc NewDeploymentConfigPipeline(g osgraph.Graph, dcNode *deploygraph.DeploymentConfigNode) (DeploymentConfigPipeline, IntSet)\n```\nNewDeploymentConfigPipeline returns the DeploymentConfigPipeline and a set of all the NodeIDs covered by the DeploymentConfigPipeline\n\n```go\nfunc NewImagePipelineFromBuildConfigNode(g osgraph.Graph, bcNode *buildgraph.BuildConfigNode) (ImagePipeline, IntSet)\n```\nNewImagePipeline attempts to locate a build flow from the provided node. If no such build flow can be located, false is returned.\n\n```go\nfunc NewImagePipelineFromImageTagLocation(g osgraph.Graph, node graph.Node, imageTagLocation ImageTagLocation) (ImagePipeline, IntSet)\n```\nNewImagePipelineFromImageTagLocation returns the ImagePipeline and all the nodes contributing to it\n\n```go\nfunc NewPod(g osgraph.Graph, podNode *kubegraph.PodNode) (Pod, IntSet)\n```\nNewPod returns the Pod and a set of all the NodeIDs covered by the Pod\n\n```go\nfunc NewReplicationController(g osgraph.Graph, rcNode *kubegraph.ReplicationControllerNode) (ReplicationController, IntSet)\n```\nNewReplicationController returns the ReplicationController and a set of all the NodeIDs covered by the ReplicationController\n\n```go\nfunc NewServiceGroup(g osgraph.Graph, serviceNode *kubegraph.ServiceNode) (ServiceGroup, IntSet)\n```\nNewServiceGroup returns the ServiceGroup and a set of all the NodeIDs covered by the service\n\n```go\nfunc NewStatefulSet(g osgraph.Graph, node *kubegraph.StatefulSetNode) (StatefulSet, IntSet)\n```\nNewStatefulSet returns the StatefulSet and a set of all the NodeIDs covered by the StatefulSet\n\n## Types\n\n```go\ntype DeploymentConfigPipeline struct {\n\tDeployment *deploygraph.DeploymentConfigNode\n\n\tActiveDeployment    *kubegraph.ReplicationControllerNode\n\tInactiveDeployments []*kubegraph.ReplicationControllerNode\n\n\tImages []ImagePipeline\n}\n```\n\n```go\ntype ImagePipeline struct {\n\tImage               ImageTagLocation\n\tDestinationResolved bool\n\tScheduledImport     bool\n\n\tBuild *buildgraph.BuildConfigNode\n\n\tLastSuccessfulBuild   *buildgraph.BuildNode\n\tLastUnsuccessfulBuild *buildgraph.BuildNode\n\tActiveBuilds          []*buildgraph.BuildNode\n\n\t// If set, the base image used by the build\n\tBaseImage ImageTagLocation\n\t// if set, the build config names that produces the base image\n\tBaseBuilds []string\n\t// If set, the source repository that inputs to the build\n\tSource SourceLocation\n}\n```\nImagePipeline represents a build, its output, and any inputs. The input to a build may be another ImagePipeline.\n\n```go\ntype ImageTagLocation interface {\n\tID() int\n\tImageSpec() string\n\tImageTag() string\n}\n```\nImageTagLocation 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.\n\n```go\ntype IntSet map[int]sets.Empty\n```\n\n```go\nfunc NewIntSet(items ...int) IntSet\n```\nNewIntSet creates a IntSet from a list of values.\n\n```go\nfunc (s IntSet) Delete(items ...int)\n```\nDelete removes all items from the set.\n\n```go\nfunc (s IntSet) Has(item int) bool\n```\nHas returns true iff item is contained in the set.\n\n```go\nfunc (s IntSet) Insert(items ...int)\n```\nInsert adds items to the set.\n\n```go\nfunc (s IntSet) List() []int\n```\nList returns the contents as a sorted string slice.\n\n```go\ntype Pod struct {\n\tPod *kubegraph.PodNode\n}\n```\n\n```go\ntype ReplicationController struct {\n\tRC *kubegraph.ReplicationControllerNode\n\n\tOwnedPods   []*kubegraph.PodNode\n\tCreatedPods []*kubegraph.PodNode\n\n\tConflictingRCs        []*kubegraph.ReplicationControllerNode\n\tConflictingRCIDToPods map[int][]*kubegraph.PodNode\n}\n```\n\n```go\nfunc (rc *ReplicationController) MaxRecentContainerRestarts() int32\n```\nMaxRecentContainerRestarts returns the maximum container restarts for all pods in replication controller.\n\n```go\ntype ServiceGroup struct {\n\tService *kubegraph.ServiceNode\n\n\tDeploymentConfigPipelines []DeploymentConfigPipeline\n\tReplicationControllers    []ReplicationController\n\tStatefulSets              []StatefulSet\n\n\t// TODO: this has to stop\n\tFulfillingStatefulSets []*kubegraph.StatefulSetNode\n\tFulfillingDCs          []*deploygraph.DeploymentConfigNode\n\tFulfillingRCs          []*kubegraph.ReplicationControllerNode\n\tFulfillingPods         []*kubegraph.PodNode\n\n\tExposingRoutes []*routegraph.RouteNode\n}\n```\nServiceGroup is a service, the DeploymentConfigPipelines it covers, and lists of the other nodes that fulfill it\n\n```go\ntype ServiceGroupByObjectMeta []ServiceGroup\n```\n\n```go\nfunc (m ServiceGroupByObjectMeta) Len() int\n```\n\n```go\nfunc (m ServiceGroupByObjectMeta) Less(i, j int) bool\n```\n\n```go\nfunc (m ServiceGroupByObjectMeta) Swap(i, j int)\n```\n\n```go\ntype SortedDeploymentConfigPipeline []DeploymentConfigPipeline\n```\n\n```go\nfunc (m SortedDeploymentConfigPipeline) Len() int\n```\n\n```go\nfunc (m SortedDeploymentConfigPipeline) Less(i, j int) bool\n```\n\n```go\nfunc (m SortedDeploymentConfigPipeline) Swap(i, j int)\n```\n\n```go\ntype SortedImagePipelines []ImagePipeline\n```\n\n```go\nfunc (m SortedImagePipelines) Len() int\n```\n\n```go\nfunc (m SortedImagePipelines) Less(i, j int) bool\n```\n\n```go\nfunc (m SortedImagePipelines) Swap(i, j int)\n```\n\n```go\ntype SourceLocation interface {\n\tID() int\n}\n```\nSourceLocation identifies a repository that is an input to a build.\n\n```go\ntype StatefulSet struct {\n\tStatefulSet *kubegraph.StatefulSetNode\n\n\tOwnedPods   []*kubegraph.PodNode\n\tCreatedPods []*kubegraph.PodNode\n}\n```\n\n","path":"github.phpd.cn/openshift/origin/pkg/api/graph/graphview","name":"graphview","synopsis":"","isRedistributable":true}
