nodes

package
v4.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildConfigNodeKind = reflect.TypeOf(buildv1.BuildConfig{}).Name()
	BuildNodeKind       = reflect.TypeOf(buildv1.Build{}).Name()

	// non-api types
	SourceRepositoryNodeKind = reflect.TypeOf(buildv1.BuildSource{}).Name()
)

Functions

func BuildConfigNodeName

func BuildConfigNodeName(o *buildv1.BuildConfig) osgraph.UniqueName

func BuildNodeName

func BuildNodeName(o *buildv1.Build) osgraph.UniqueName

func SourceRepositoryNodeName

func SourceRepositoryNodeName(source buildv1.BuildSource) osgraph.UniqueName

Types

type BuildConfigNode

type BuildConfigNode struct {
	osgraph.Node
	BuildConfig *buildv1.BuildConfig
}

func EnsureBuildConfigNode

func EnsureBuildConfigNode(g osgraph.MutableUniqueGraph, config *buildv1.BuildConfig) *BuildConfigNode

EnsureBuildConfigNode adds a graph node for the specific build config if it does not exist

func (*BuildConfigNode) Kind

func (*BuildConfigNode) Kind() string

func (BuildConfigNode) Object

func (n BuildConfigNode) Object() interface{}

func (BuildConfigNode) String

func (n BuildConfigNode) String() string

func (BuildConfigNode) UniqueName

func (n BuildConfigNode) UniqueName() osgraph.UniqueName

type BuildNode

type BuildNode struct {
	osgraph.Node
	Build *buildv1.Build
}

func EnsureBuildNode

func EnsureBuildNode(g osgraph.MutableUniqueGraph, build *buildv1.Build) *BuildNode

EnsureBuildNode adds a graph node for the build if it does not already exist.

func (*BuildNode) Kind

func (*BuildNode) Kind() string

func (BuildNode) Object

func (n BuildNode) Object() interface{}

func (BuildNode) String

func (n BuildNode) String() string

func (BuildNode) UniqueName

func (n BuildNode) UniqueName() osgraph.UniqueName

type SourceRepositoryNode

type SourceRepositoryNode struct {
	osgraph.Node
	Source buildv1.BuildSource
}

func EnsureSourceRepositoryNode

func EnsureSourceRepositoryNode(g osgraph.MutableUniqueGraph, source buildv1.BuildSource) *SourceRepositoryNode

EnsureSourceRepositoryNode adds the specific BuildSource to the graph if it does not already exist.

func (SourceRepositoryNode) Kind

func (SourceRepositoryNode) String

func (n SourceRepositoryNode) String() string

Jump to

Keyboard shortcuts

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