Documentation ¶
Overview ¶
Package changeset handles operations on the text of a changeset.
Index ¶
- Variables
- type Record
- func (cs *Record) AddChange(line string)
- func (cs *Record) AddDescription(line string)
- func (cs *Record) AddRollback(line string)
- func (cs *Record) Changes() string
- func (cs *Record) GenerateChecksum() string
- func (cs *Record) ParseHeader(line string) error
- func (cs *Record) Rollbacks() string
- func (cs *Record) SetFileInfo(filename string, version string)
- func (cs *Record) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidHeader is when the changeset header is invalid. ErrInvalidHeader = errors.New("invalid changeset header") )
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { ID string Author string Filename string DateExecuted time.Time OrderExecuted int Checksum string Description string Tag string Version string // contains filtered or unexported fields }
Record is a changeset.
func (*Record) AddDescription ¶
AddDescription will add a description.
func (*Record) AddRollback ¶
AddRollback will add a rollback command.
func (*Record) GenerateChecksum ¶
GenerateChecksum returns an MD5 checksum for the changeset.
func (*Record) ParseHeader ¶
ParseHeader will parse the header information.
func (*Record) SetFileInfo ¶
SetFileInfo will set the file information.
Click to show internal directories.
Click to hide internal directories.