Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrInvalid ¶
type ErrInvalid struct {
// contains filtered or unexported fields
}
ErrInvalid represents the Uptane client rejecting invalid data (malformed or not signed properly)
type PartialClient ¶
type PartialClient struct {
// contains filtered or unexported fields
}
PartialClient is a partial uptane client (see https://uptane.github.io/papers/uptane-standard.1.2.0.html#rfc.section.5.4.4.1)
func NewPartialClient ¶
func NewPartialClient(embededRoot []byte) *PartialClient
NewPartialClient creates a new partial uptane client (see https://uptane.github.io/papers/uptane-standard.1.2.0.html#rfc.section.5.4.4.1)
func (*PartialClient) RootVersion ¶
func (c *PartialClient) RootVersion() int64
RootVersion returns the root version of the partial client
func (*PartialClient) Update ¶
func (c *PartialClient) Update(roots [][]byte, previousTargets *PartialClientTargets, rawTargets []byte, targetFiles map[string][]byte) (*PartialClientTargets, error)
Update updates the partial client
type PartialClientTargets ¶
type PartialClientTargets struct {
// contains filtered or unexported fields
}
PartialClientTargets is a partial client targets
func (*PartialClientTargets) TargetFile ¶
func (t *PartialClientTargets) TargetFile(path string) ([]byte, bool)
TargetFile returns the content of a target
func (*PartialClientTargets) Targets ¶
func (t *PartialClientTargets) Targets() data.TargetFiles
Targets returns the current targets of this uptane partial client
func (*PartialClientTargets) Version ¶
func (t *PartialClientTargets) Version() int64
Version returns the version