nodes

package
v1.2.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImageStreamNodeKind      = reflect.TypeOf(imageapi.ImageStream{}).Name()
	ImageNodeKind            = reflect.TypeOf(imageapi.Image{}).Name()
	ImageStreamTagNodeKind   = reflect.TypeOf(imageapi.ImageStreamTag{}).Name()
	ImageStreamImageNodeKind = reflect.TypeOf(imageapi.ImageStreamImage{}).Name()

	// non-api types
	DockerRepositoryNodeKind = reflect.TypeOf(imageapi.DockerImageReference{}).Name()
	ImageLayerNodeKind       = "ImageLayer"
)

Functions

func EnsureDockerRepositoryNode

func EnsureDockerRepositoryNode(g osgraph.MutableUniqueGraph, name, tag string) graph.Node

EnsureDockerRepositoryNode adds the named Docker repository tag reference to the graph if it does not already exist. If the reference is invalid, the Name field of the graph will be used directly.

func EnsureImageLayerNode

func EnsureImageLayerNode(g osgraph.MutableUniqueGraph, layer string) graph.Node

EnsureImageLayerNode adds a graph node for the layer if it does not already exist.

func EnsureImageNode

func EnsureImageNode(g osgraph.MutableUniqueGraph, img *imageapi.Image) graph.Node

func EnsureImageStreamImageNode added in v1.0.2

func EnsureImageStreamImageNode(g osgraph.MutableUniqueGraph, namespace, name string) graph.Node

EnsureImageStreamImageNode adds a graph node for the specific ImageStreamImage if it does not already exist.

func EnsureImageStreamNode

func EnsureImageStreamNode(g osgraph.MutableUniqueGraph, is *imageapi.ImageStream) graph.Node

EnsureImageStreamNode adds a graph node for the Image Stream if it does not already exist.

func FindImage

func FindImage(g osgraph.MutableUniqueGraph, imageName string) graph.Node

func ImageLayerNodeName

func ImageLayerNodeName(layer string) osgraph.UniqueName

func ImageNodeName

func ImageNodeName(o *imageapi.Image) osgraph.UniqueName

func ImageStreamImageNodeName added in v1.0.2

func ImageStreamImageNodeName(o *imageapi.ImageStreamImage) osgraph.UniqueName

func ImageStreamNodeName

func ImageStreamNodeName(o *imageapi.ImageStream) osgraph.UniqueName

func ImageStreamTagNodeName

func ImageStreamTagNodeName(o *imageapi.ImageStreamTag) osgraph.UniqueName

func MakeImageStreamImageObjectMeta added in v1.0.2

func MakeImageStreamImageObjectMeta(namespace, name string) *imageapi.ImageStreamImage

MakeImageStreamImageObjectMeta returns an ImageStreamImage that has enough information to join the graph, but it is not based on a full ISI object. This can be used to properly initialize the graph without having to retrieve all ISIs

func MakeImageStreamTagObjectMeta added in v1.0.2

func MakeImageStreamTagObjectMeta(namespace, name, tag string) *imageapi.ImageStreamTag

MakeImageStreamTagObjectMeta returns an ImageStreamTag that has enough information to join the graph, but it is not based on a full IST object. This can be used to properly initialize the graph without having to retrieve all ISTs

func MakeImageStreamTagObjectMeta2 added in v1.0.2

func MakeImageStreamTagObjectMeta2(namespace, name string) *imageapi.ImageStreamTag

MakeImageStreamTagObjectMeta2 returns an ImageStreamTag that has enough information to join the graph, but it is not based on a full IST object. This can be used to properly initialize the graph without having to retrieve all ISTs

Types

type DockerImageRepositoryNode

type DockerImageRepositoryNode struct {
	osgraph.Node
	Ref imageapi.DockerImageReference
}

func (DockerImageRepositoryNode) ImageSpec

func (n DockerImageRepositoryNode) ImageSpec() string

func (DockerImageRepositoryNode) ImageTag

func (n DockerImageRepositoryNode) ImageTag() string

func (*DockerImageRepositoryNode) Kind

func (DockerImageRepositoryNode) String

func (n DockerImageRepositoryNode) String() string

type ImageLayerNode

type ImageLayerNode struct {
	osgraph.Node
	Layer string
}

func (*ImageLayerNode) Kind

func (*ImageLayerNode) Kind() string

func (ImageLayerNode) Object

func (n ImageLayerNode) Object() interface{}

func (ImageLayerNode) String

func (n ImageLayerNode) String() string

type ImageNode

type ImageNode struct {
	osgraph.Node
	Image *imageapi.Image
}

func (*ImageNode) Kind

func (*ImageNode) Kind() string

func (ImageNode) Object

func (n ImageNode) Object() interface{}

func (ImageNode) String

func (n ImageNode) String() string

type ImageStreamImageNode added in v1.0.2

type ImageStreamImageNode struct {
	osgraph.Node
	*imageapi.ImageStreamImage

	IsFound bool
}

func FindOrCreateSyntheticImageStreamImageNode added in v1.0.2

func FindOrCreateSyntheticImageStreamImageNode(g osgraph.MutableUniqueGraph, isi *imageapi.ImageStreamImage) *ImageStreamImageNode

FindOrCreateSyntheticImageStreamImageNode returns the existing ISINode or creates a synthetic node in its place

func (*ImageStreamImageNode) Kind added in v1.0.2

func (*ImageStreamImageNode) Kind() string

func (ImageStreamImageNode) Object added in v1.0.2

func (n ImageStreamImageNode) Object() interface{}

func (ImageStreamImageNode) ResourceString added in v1.1.4

func (n ImageStreamImageNode) ResourceString() string

func (ImageStreamImageNode) String added in v1.0.2

func (n ImageStreamImageNode) String() string

type ImageStreamNode

type ImageStreamNode struct {
	osgraph.Node
	*imageapi.ImageStream

	IsFound bool
}

func FindOrCreateSyntheticImageStreamNode added in v1.0.2

func FindOrCreateSyntheticImageStreamNode(g osgraph.MutableUniqueGraph, is *imageapi.ImageStream) *ImageStreamNode

FindOrCreateSyntheticImageStreamNode returns the existing ISNode or creates a synthetic node in its place

func (ImageStreamNode) Found added in v1.0.2

func (n ImageStreamNode) Found() bool

func (*ImageStreamNode) Kind

func (*ImageStreamNode) Kind() string

func (ImageStreamNode) Object

func (n ImageStreamNode) Object() interface{}

func (ImageStreamNode) String

func (n ImageStreamNode) String() string

type ImageStreamTagNode

type ImageStreamTagNode struct {
	osgraph.Node
	*imageapi.ImageStreamTag

	IsFound bool
}

func EnsureAllImageStreamTagNodes added in v1.0.2

func EnsureAllImageStreamTagNodes(g osgraph.MutableUniqueGraph, is *imageapi.ImageStream) []*ImageStreamTagNode

EnsureAllImageStreamTagNodes creates all the ImageStreamTagNodes that are guaranteed to be present based on the ImageStream. This is different than inferring the presence of an object, since the IST is an object derived from a join between the ImageStream and the Image it references.

func EnsureImageStreamTagNode

func EnsureImageStreamTagNode(g osgraph.MutableUniqueGraph, ist *imageapi.ImageStreamTag) *ImageStreamTagNode

EnsureImageStreamTagNode adds a graph node for the specific tag in an Image Stream if it does not already exist.

func FindOrCreateSyntheticImageStreamTagNode added in v1.0.2

func FindOrCreateSyntheticImageStreamTagNode(g osgraph.MutableUniqueGraph, ist *imageapi.ImageStreamTag) *ImageStreamTagNode

FindOrCreateSyntheticImageStreamTagNode returns the existing ISTNode or creates a synthetic node in its place

func (ImageStreamTagNode) Found added in v1.0.2

func (n ImageStreamTagNode) Found() bool

func (ImageStreamTagNode) ImageSpec

func (n ImageStreamTagNode) ImageSpec() string

func (ImageStreamTagNode) ImageTag

func (n ImageStreamTagNode) ImageTag() string

func (*ImageStreamTagNode) Kind

func (*ImageStreamTagNode) Kind() string

func (ImageStreamTagNode) Object

func (n ImageStreamTagNode) Object() interface{}

func (ImageStreamTagNode) String

func (n ImageStreamTagNode) String() string

Jump to

Keyboard shortcuts

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