Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func VerifyInfo ¶
func VerifyInfo(file *os.File, info *metadata.InstallInfo) error
Types ¶
type Operation ¶
type Operation struct { hash.Hash io.LimitedReader Payload *Payload Procedure *metadata.InstallProcedure Operation *metadata.InstallOperation }
func NewOperation ¶
func NewOperation(payload *Payload, proc *metadata.InstallProcedure, op *metadata.InstallOperation) *Operation
type Payload ¶
type Payload struct { // Offset is the number of bytes read from the payload, // excluding the header and manifest. Offset int64 // Parsed metadata contained in the payload. Header metadata.DeltaArchiveHeader Manifest metadata.DeltaArchiveManifest Signatures metadata.Signatures // contains filtered or unexported fields }
func (*Payload) Operations ¶
func (p *Payload) Operations(proc *metadata.InstallProcedure) []*Operation
func (*Payload) Procedures ¶
func (p *Payload) Procedures() []*metadata.InstallProcedure
func (*Payload) Read ¶
Read reads from the raw payload stream, updating Hash and Offset for later verification. Behaves similarly to io.TeeReader.
func (*Payload) VerifySignature ¶
VerifySignature reads and checks for a valid signature.
type Updater ¶
type Updater struct { SrcPartition string DstPartition string // contains filtered or unexported fields }
func (*Updater) OpenPayload ¶
func (*Updater) UpdateKernel ¶
func (u *Updater) UpdateKernel(proc *metadata.InstallProcedure) error
func (*Updater) UpdatePartition ¶
func (u *Updater) UpdatePartition(proc *metadata.InstallProcedure) error
Click to show internal directories.
Click to hide internal directories.