Documentation ¶
Index ¶
- Variables
- func DockerImageRepositoryNodeName(o imageapi.DockerImageReference) osgraph.UniqueName
- func EnsureDockerRepositoryNode(g osgraph.MutableUniqueGraph, name, tag string) graph.Node
- func EnsureImageLayerNode(g osgraph.MutableUniqueGraph, layer string) graph.Node
- func EnsureImageNode(g osgraph.MutableUniqueGraph, img *imageapi.Image) graph.Node
- func EnsureImageStreamImageNode(g osgraph.MutableUniqueGraph, namespace, name string) graph.Node
- func EnsureImageStreamNode(g osgraph.MutableUniqueGraph, is *imageapi.ImageStream) graph.Node
- func FindImage(g osgraph.MutableUniqueGraph, imageName string) graph.Node
- func ImageLayerNodeName(layer string) osgraph.UniqueName
- func ImageNodeName(o *imageapi.Image) osgraph.UniqueName
- func ImageStreamImageNodeName(o *imageapi.ImageStreamImage) osgraph.UniqueName
- func ImageStreamNodeName(o *imageapi.ImageStream) osgraph.UniqueName
- func ImageStreamTagNodeName(o *imageapi.ImageStreamTag) osgraph.UniqueName
- func MakeImageStreamImageObjectMeta(namespace, name string) *imageapi.ImageStreamImage
- func MakeImageStreamTagObjectMeta(namespace, name, tag string) *imageapi.ImageStreamTag
- func MakeImageStreamTagObjectMeta2(namespace, name string) *imageapi.ImageStreamTag
- type DockerImageRepositoryNode
- type ImageLayerNode
- type ImageNode
- type ImageStreamImageNode
- type ImageStreamNode
- type ImageStreamTagNode
- func EnsureAllImageStreamTagNodes(g osgraph.MutableUniqueGraph, is *imageapi.ImageStream) []*ImageStreamTagNode
- func EnsureImageStreamTagNode(g osgraph.MutableUniqueGraph, ist *imageapi.ImageStreamTag) *ImageStreamTagNode
- func FindOrCreateSyntheticImageStreamTagNode(g osgraph.MutableUniqueGraph, ist *imageapi.ImageStreamTag) *ImageStreamTagNode
- func (n ImageStreamTagNode) Found() bool
- func (n ImageStreamTagNode) ImageSpec() string
- func (n ImageStreamTagNode) ImageTag() string
- func (*ImageStreamTagNode) Kind() string
- func (n ImageStreamTagNode) Object() interface{}
- func (n ImageStreamTagNode) String() string
- func (n ImageStreamTagNode) UniqueName() osgraph.UniqueName
Constants ¶
This section is empty.
Variables ¶
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 DockerImageRepositoryNodeName ¶
func DockerImageRepositoryNodeName(o imageapi.DockerImageReference) osgraph.UniqueName
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 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 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) Kind() string
func (DockerImageRepositoryNode) String ¶
func (n DockerImageRepositoryNode) String() string
func (DockerImageRepositoryNode) UniqueName ¶ added in v1.3.0
func (n DockerImageRepositoryNode) UniqueName() osgraph.UniqueName
type ImageLayerNode ¶
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 ¶
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) 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