Documentation ¶
Index ¶
- func ClientFromRemote(ctx context.Context, mirror string, rootJSON []byte, targets string) (*client.Client, error)
- func ClientFromSerializedMirror(ctx context.Context, repo, rootJSON []byte, targets, stripPrefix string) (*client.Client, error)
- func CompressFS(fsys fs.FS, buf io.Writer, skipDirs map[string]bool) error
- func Uncompress(src io.Reader, dst string) error
- func UncompressMemFS(src io.Reader, stripPrefix string) (fs.FS, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientFromRemote ¶
func ClientFromRemote(ctx 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(ctx 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.