Documentation ¶
Index ¶
- func ReadVersion(tr *tar.Reader) (*artifact.Info, []byte, error)
- type DevicesCompatibleFn
- type Reader
- func (ar *Reader) GetArtifactDepends() *artifact.ArtifactDepends
- func (ar *Reader) GetArtifactName() string
- func (ar *Reader) GetArtifactProvides() *artifact.ArtifactProvides
- func (ar *Reader) GetCompatibleDevices() []string
- func (ar *Reader) GetHandlers() map[int]handlers.Installer
- func (ar *Reader) GetInfo() artifact.Info
- func (ar *Reader) GetUpdateStorers() ([]handlers.UpdateStorer, error)
- func (ar *Reader) GetUpdates() []artifact.UpdateType
- func (ar *Reader) MergeArtifactDepends() (map[string]interface{}, error)
- func (ar *Reader) MergeArtifactProvides() (map[string]interface{}, error)
- func (ar *Reader) ReadArtifact() error
- func (ar *Reader) ReadArtifactData() error
- func (ar *Reader) ReadArtifactHeaders() error
- func (ar *Reader) RegisterHandler(handler handlers.Installer) error
- type ScriptsReadFn
- type SignatureVerifyFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DevicesCompatibleFn ¶
type Reader ¶
type Reader struct { CompatibleDevicesCallback DevicesCompatibleFn ScriptsReadCallback ScriptsReadFn VerifySignatureCallback SignatureVerifyFn IsSigned bool ForbidUnknownHandlers bool // contains filtered or unexported fields }
func NewReaderSigned ¶
func (*Reader) GetArtifactDepends ¶
func (ar *Reader) GetArtifactDepends() *artifact.ArtifactDepends
GetArtifactDepends is version 3 specific.
func (*Reader) GetArtifactName ¶
func (*Reader) GetArtifactProvides ¶
func (ar *Reader) GetArtifactProvides() *artifact.ArtifactProvides
GetArtifactProvides is version 3 specific.
func (*Reader) GetCompatibleDevices ¶
func (*Reader) GetUpdateStorers ¶
func (ar *Reader) GetUpdateStorers() ([]handlers.UpdateStorer, error)
func (*Reader) GetUpdates ¶
func (ar *Reader) GetUpdates() []artifact.UpdateType
func (*Reader) MergeArtifactDepends ¶
func (*Reader) MergeArtifactProvides ¶
func (*Reader) ReadArtifact ¶
func (*Reader) ReadArtifactData ¶
func (*Reader) ReadArtifactHeaders ¶
type SignatureVerifyFn ¶
Click to show internal directories.
Click to hide internal directories.