uptane

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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)

func (*ErrInvalid) Error

func (err *ErrInvalid) Error() string

Error is an error

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

Jump to

Keyboard shortcuts

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