graphview

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: 15 Imported by: 0

Documentation

Index

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 CompareImagePipeline

func CompareImagePipeline(a, b *ImagePipeline) bool

func CompareObjectMeta

func CompareObjectMeta(a, b *kapi.ObjectMeta) bool

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 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 service

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

	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 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

type ImageTagLocation interface {
	ID() int
	ImageSpec() string
	ImageTag() string
}

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 IntSet map[int]sets.Empty

func NewIntSet

func NewIntSet(items ...int) IntSet

NewIntSet creates a IntSet from a list of values.

func (IntSet) Delete

func (s IntSet) Delete(items ...int)

Delete removes all items from the set.

func (IntSet) Has

func (s IntSet) Has(item int) bool

Has returns true iff item is contained in the set.

func (IntSet) Insert

func (s IntSet) Insert(items ...int)

Insert adds items to the set.

func (IntSet) List

func (s IntSet) List() []int

List returns the contents as a sorted string slice.

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
}

type ServiceGroup

type ServiceGroup struct {
	Service *kubegraph.ServiceNode

	DeploymentConfigPipelines []DeploymentConfigPipeline
	ReplicationControllers    []ReplicationController

	FulfillingDCs  []*deploygraph.DeploymentConfigNode
	FulfillingRCs  []*kubegraph.ReplicationControllerNode
	FulfillingPods []*kubegraph.PodNode
}

ServiceGroup is a service, the DeploymentConfigPipelines it covers, and lists of the other nodes that fulfill it

type SortedDeploymentConfigPipeline

type SortedDeploymentConfigPipeline []DeploymentConfigPipeline

func (SortedDeploymentConfigPipeline) Len

func (SortedDeploymentConfigPipeline) Less

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 SortedServiceGroups

type SortedServiceGroups []ServiceGroup

func (SortedServiceGroups) Len

func (m SortedServiceGroups) Len() int

func (SortedServiceGroups) Less

func (m SortedServiceGroups) Less(i, j int) bool

func (SortedServiceGroups) Swap

func (m SortedServiceGroups) Swap(i, j int)

type SourceLocation

type SourceLocation interface {
	ID() int
}

SourceLocation identifies a repository that is an input to a build.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL