Documentation
¶
Overview ¶
Package publish stages and commits generated artifact generations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction owns same-filesystem staging paths for one or more generated directories or files. Commit replaces all targets and rolls every completed replacement back if a later replacement fails.
func (*Transaction) Abort ¶
func (tx *Transaction) Abort()
Abort removes uncommitted staging paths. It is safe to call with defer.
func (*Transaction) Commit ¶
func (tx *Transaction) Commit() error
Commit replaces every target. Existing targets are retained as backups until every replacement succeeds, then removed. A failed replacement restores the earlier generation before returning.
func (*Transaction) StageDirectory ¶
func (tx *Transaction) StageDirectory(target string) (string, error)
StageDirectory creates an empty sibling staging directory for target.
Click to show internal directories.
Click to hide internal directories.