nodes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 License: Apache-2.0 Imports: 7 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()

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

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

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

func EnsureImageStreamTagNode

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

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

func FindImage

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

func FindImageStream

func FindImageStream(g osgraph.MutableUniqueGraph, stream *imageapi.ImageStream) graph.Node

func ImageLayerNodeName

func ImageLayerNodeName(layer string) osgraph.UniqueName

func ImageNodeName

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

func ImageStreamNodeName

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

func ImageStreamTagNodeName

func ImageStreamTagNodeName(o *imageapi.ImageStream, tag string) osgraph.UniqueName

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 ImageStreamNode

type ImageStreamNode struct {
	osgraph.Node
	*imageapi.ImageStream
}

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.ImageStream
	Tag string
}

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