nodes

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 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()
)

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 EnsureImageComponentConfigNode added in v1.4.0

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

EnsureImageComponentConfigNode adds a graph node for the image config if it does not already exist.

func EnsureImageComponentLayerNode added in v1.4.0

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

EnsureImageComponentLayerNode adds a graph node for the image 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 ImageComponentNodeName added in v1.4.0

func ImageComponentNodeName(name 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

func (DockerImageRepositoryNode) UniqueName added in v1.3.0

type ImageComponentNode added in v1.4.0

type ImageComponentNode struct {
	osgraph.Node
	Component string
	// An additional information describing the type of the component.
	Type ImageComponentType
}

ImageComponentNode represents either an image layer or image config. All the components are treated the same. A particular component (identified by a hash) can be of just one type.

func (*ImageComponentNode) Describe added in v1.4.0

func (n *ImageComponentNode) Describe() string

func (*ImageComponentNode) Kind added in v1.4.0

func (*ImageComponentNode) Kind() string

func (ImageComponentNode) Object added in v1.4.0

func (n ImageComponentNode) Object() interface{}

func (ImageComponentNode) String added in v1.4.0

func (n ImageComponentNode) String() string

type ImageComponentType added in v1.4.0

type ImageComponentType string
const (
	ImageComponentNodeKind = "ImageComponent"

	ImageComponentTypeConfig ImageComponentType = `Config`
	ImageComponentTypeLayer  ImageComponentType = `Layer`
)

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

func (ImageNode) UniqueName added in v1.3.0

func (n ImageNode) UniqueName() osgraph.UniqueName

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) ImageSpec added in v1.3.0

func (n ImageStreamImageNode) ImageSpec() string

func (ImageStreamImageNode) ImageTag added in v1.3.0

func (n ImageStreamImageNode) ImageTag() string

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

func (ImageStreamImageNode) UniqueName added in v1.3.0

func (n ImageStreamImageNode) UniqueName() osgraph.UniqueName

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

func (ImageStreamNode) UniqueName added in v1.3.0

func (n ImageStreamNode) UniqueName() osgraph.UniqueName

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

func (ImageStreamTagNode) UniqueName added in v1.3.0

func (n ImageStreamTagNode) UniqueName() osgraph.UniqueName

Jump to

Keyboard shortcuts

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