report

package
v0.0.0-...-437b0eb Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorReport

func ErrorReport(name string, err error) interfaces.DependencyReport

ErrorReport creates a report for error cases

func Indent

func Indent(indent int, data []string) []string

Indent indents every line

Types

type DeploymentReport

type DeploymentReport []NodeReport

DeploymentReport is a full report of the status of deployment

func (DeploymentReport) AsText

func (d DeploymentReport) AsText(indent int) []string

AsText returns a human-readable representation of the report as a slice

type NodeReport

type NodeReport struct {
	Dependent    string
	Blocked      bool
	Ready        bool
	Dependencies []interfaces.DependencyReport
}

NodeReport is a report of a node in graph

func (NodeReport) AsText

func (n NodeReport) AsText(indent int) []string

AsText returns a human-readable representation of the report as a slice

type SimpleReporter

type SimpleReporter struct {
	interfaces.BaseResource
}

SimpleReporter creates report for simple binary cases

func (SimpleReporter) GetDependencyReport

func (r SimpleReporter) GetDependencyReport(meta map[string]string) interfaces.DependencyReport

GetDependencyReport returns a dependency report for this reporter

func (SimpleReporter) GetResource

func (r SimpleReporter) GetResource() interfaces.BaseResource

GetResource returns the underlying resource

Jump to

Keyboard shortcuts

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