Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default block size to use for all generated payloads. BlockSize = 4096 // Default data size limit to process in a single operation. ChunkSize = BlockSize * 256 )
Variables ¶
View Source
var ( // ErrProcedureExists indicates that a given procedure type has // already been added to the Generator. ErrProcedureExists = errors.New("generator: procedure already exists") )
Functions ¶
func NewBzip2Writer ¶
func NewBzip2Writer(w io.Writer) (io.WriteCloser, error)
NewBzip2Writer wraps a writer, compressing all data written to it.
func NewInstallInfo ¶
func NewInstallInfo(r io.ReadSeeker) (*metadata.InstallInfo, error)
Types ¶
type Generator ¶
type Generator struct { destructor.MultiDestructor // contains filtered or unexported fields }
Generator assembles an update payload from a number of sources. Each of its methods must only be called once, ending with Write.
type Procedure ¶
type Procedure struct { metadata.InstallProcedure io.ReadCloser }
Procedure represent independent update within a payload.
func FullUpdate ¶
FullUpdate generates an update Procedure for the given file, embedding its entire contents in the payload so it does not depend any previous state.
Click to show internal directories.
Click to hide internal directories.