tuf

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromRemote

func ClientFromRemote(_ context.Context, mirror string, rootJSON []byte, targets string) (*client.Client, error)

ClientFromRemote will construct a TUF client from a root, and mirror

func ClientFromSerializedMirror

func ClientFromSerializedMirror(_ context.Context, repo, rootJSON []byte, targets, stripPrefix string) (*client.Client, error)

ClientFromSerializedMirror will construct a TUF client by unzip/untar the repository and constructing an in-memory TUF client for it. Will also Init/Update it.

func CompressFS

func CompressFS(fsys fs.FS, buf io.Writer, skipDirs map[string]bool) error

func Uncompress

func Uncompress(src io.Reader, dst string) error

func UncompressMemFS

func UncompressMemFS(src io.Reader, stripPrefix string) (fs.FS, error)

UncompressMemFS takes a TUF repository that's been compressed with CompressFS and returns FS backed by memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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