output

package
v6.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeID

func FakeID(deploymentType, deploymentName string) string

FakeID returns a fake deployment ID for Dry Runs

func IsFake

func IsFake(id string) bool

IsFake returns true if the ID matches the Fake ID format

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is the stateful object used to build pachelbel's output files

func New

func New(endpointMap map[string]string) *Builder

New returns an initialized Builder object

func (*Builder) Add

func (b *Builder) Add(deployment *compose.Deployment) error

Add takes a compose.Deployment object and converts its connection information into Builder's internal representation

func (*Builder) AddFake

func (b *Builder) AddFake(id string) error

AddFake takes a Fake ID generated by this package and builds an entire output object for it

func (*Builder) Write

func (b *Builder) Write(file string) error

Jump to

Keyboard shortcuts

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