areader

package
v0.0.0-...-d5f3632 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadVersion

func ReadVersion(tr *tar.Reader) (*artifact.Info, []byte, error)

Types

type DevicesCompatibleFn

type DevicesCompatibleFn func([]string) error

type Reader

type Reader struct {
	CompatibleDevicesCallback DevicesCompatibleFn
	ScriptsReadCallback       ScriptsReadFn
	VerifySignatureCallback   SignatureVerifyFn
	IsSigned                  bool
	ForbidUnknownHandlers     bool
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) *Reader

func NewReaderSigned

func NewReaderSigned(r io.Reader) *Reader

func (*Reader) GetArtifactDepends

func (ar *Reader) GetArtifactDepends() *artifact.ArtifactDepends

GetArtifactDepends is version 3 specific.

func (*Reader) GetArtifactName

func (ar *Reader) GetArtifactName() string

func (*Reader) GetArtifactProvides

func (ar *Reader) GetArtifactProvides() *artifact.ArtifactProvides

GetArtifactProvides is version 3 specific.

func (*Reader) GetCompatibleDevices

func (ar *Reader) GetCompatibleDevices() []string

func (*Reader) GetHandlers

func (ar *Reader) GetHandlers() map[int]handlers.Installer

func (*Reader) GetInfo

func (ar *Reader) GetInfo() artifact.Info

func (*Reader) GetUpdateStorers

func (ar *Reader) GetUpdateStorers() ([]handlers.UpdateStorer, error)

func (*Reader) GetUpdates

func (ar *Reader) GetUpdates() []artifact.UpdateType

func (*Reader) MergeArtifactDepends

func (ar *Reader) MergeArtifactDepends() (map[string]interface{}, error)

func (*Reader) MergeArtifactProvides

func (ar *Reader) MergeArtifactProvides() (map[string]interface{}, error)

func (*Reader) ReadArtifact

func (ar *Reader) ReadArtifact() error

func (*Reader) ReadArtifactData

func (ar *Reader) ReadArtifactData() error

func (*Reader) ReadArtifactHeaders

func (ar *Reader) ReadArtifactHeaders() error

func (*Reader) RegisterHandler

func (ar *Reader) RegisterHandler(handler handlers.Installer) error

type ScriptsReadFn

type ScriptsReadFn func(io.Reader, os.FileInfo) error

type SignatureVerifyFn

type SignatureVerifyFn func(message, sig []byte) error

Jump to

Keyboard shortcuts

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