hcl

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpReplace = 'r'
	OpDelete  = 'd'
	OpInsert  = 'i'
	OpEqual   = 'e'
)

Variables

This section is empty.

Functions

func Diff

func Diff(f filesystem.File, after []byte) filesystem.FileChanges

Diff calculates difference between File's content and after byte sequence and returns it as filesystem.FileChanges

Types

type File

type File interface {
	BlockAtPosition(filesystem.FilePosition) (*hcllib.Block, hcllib.Pos, error)
}

func NewFile

func NewFile(f filesystem.File) File

type InvalidHclPosErr

type InvalidHclPosErr struct {
	Pos     hcllib.Pos
	InRange hcllib.Range
}

func (*InvalidHclPosErr) Error

func (e *InvalidHclPosErr) Error() string

type NoBlockFoundErr

type NoBlockFoundErr struct {
	AtPos hcllib.Pos
}

func (*NoBlockFoundErr) Error

func (e *NoBlockFoundErr) Error() string

Jump to

Keyboard shortcuts

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