receipt

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ReceiptFilename = "INSTALL_RECEIPT.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallReceipt

type InstallReceipt struct {
	// The name of the food installed
	Name string `json:"name"`
	// Which rig did this food come from?
	Rig string `json:"rig"`
	// Time that this food was last modified (upgraded)
	LastModified time.Time `json:"last-modified"`
	// What version of GoFish was this last modified with?
	GoFishVersion string `json:"gofish-version"`
}

func NewFromReader

func NewFromReader(r io.Reader) (*InstallReceipt, error)

NewFromReader reads in an install receipt from an io.Reader. Useful when reading from a file stream.

func (*InstallReceipt) Save

func (i *InstallReceipt) Save(w io.Writer) error

Save writes the install receipt into the given io.Writer.

Jump to

Keyboard shortcuts

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