diff

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDiff

func DefaultDiff(a app.App, config *client.Config, l1 *Location, l2 *Location) (io.Reader, error)

DefaultDiff runs diff with default options.

Types

type Differ

type Differ struct {
	App    app.App
	Config *client.Config
	// contains filtered or unexported fields
}

Differ generates the differences between two Locations.

func New

func New(a app.App, config *client.Config) *Differ

New creates an instance of Differ.

func (*Differ) Diff

func (d *Differ) Diff(location1, location2 *Location) (io.Reader, error)

Diff generates the differences between two locations.

type Location

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

Location is a diff location.

func NewLocation

func NewLocation(src string) *Location

NewLocation creates a Location.

func (*Location) Destination

func (l *Location) Destination() string

Destination is the location destination.

func (*Location) EnvName

func (l *Location) EnvName() string

EnvName is the environment name for the destination.

func (*Location) Err

func (l *Location) Err() error

Err returns an error if this location is invalid.

func (*Location) String

func (l *Location) String() string

Jump to

Keyboard shortcuts

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