buildchain

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdBuildChain

func NewCmdBuildChain(f *clientcmd.Factory, parentName, name string) *cobra.Command

NewCmdBuildChain implements all the necessary functionality for the build-chain module

Types

type Edge

type Edge struct {
	FullName string `json:"fullname"`
	To       string `json:"to"`
}

Edge represents a build configuration relationship between two nodes

Note that this type has no relation with the dot.Edge type

func NewEdge

func NewEdge(fullname, to string) *Edge

NewEdge adds a new edge on a parent node

Note that this function has no relation with the dot.Edge type

type ImageRepo

type ImageRepo struct {
	FullName string       `json:"fullname"`
	Tags     []string     `json:"tags,omitempty"`
	Edges    []*Edge      `json:"edges,omitempty"`
	Children []*ImageRepo `json:"children,omitempty"`
}

ImageRepo is a representation of a node inside a tree

func (*ImageRepo) String

func (root *ImageRepo) String() string

String helps in dumping a tree in AST format

Jump to

Keyboard shortcuts

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