nodes

package
v0.0.0-...-ea77a8b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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

Functions

func BuildConfigNodeName

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

func BuildNodeName

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

func SourceRepositoryNodeName

func SourceRepositoryNodeName(source buildapi.BuildSource) osgraph.UniqueName

Types

type BuildConfigNode

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

func EnsureBuildConfigNode

func EnsureBuildConfigNode(g osgraph.MutableUniqueGraph, config *buildapi.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) ResourceString

func (n BuildConfigNode) ResourceString() string

func (BuildConfigNode) String

func (n BuildConfigNode) String() string

type BuildNode

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

func EnsureBuildNode

func EnsureBuildNode(g osgraph.MutableUniqueGraph, build *buildapi.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) ResourceString

func (n BuildNode) ResourceString() string

func (BuildNode) String

func (n BuildNode) String() string

type SourceRepositoryNode

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

func EnsureSourceRepositoryNode

func EnsureSourceRepositoryNode(g osgraph.MutableUniqueGraph, source buildapi.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