tuf

package
v0.0.0-...-1663e82 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*tufClient.Client
	RemoteStore        tufClient.RemoteStore
	ReadOnlyLocalStore tufClient.LocalStore
	// contains filtered or unexported fields
}

func NewClient

func NewClient(repoUrl, metaLocalStoreDir, locksPath string) (*Client, error)

func (Client) Download

func (c Client) Download(targetName string, destination tufClient.Destination) error

func (Client) DownloadFile

func (c Client) DownloadFile(targetName, dest string, destMode os.FileMode) error

func (Client) DownloadMeta

func (c Client) DownloadMeta(name string) ([]byte, error)

func (Client) GetTargets

func (c Client) GetTargets() (data.TargetFiles, error)

func (*Client) Setup

func (c *Client) Setup(rootVersion int64, rootSha512 string) error

func (*Client) Update

func (c *Client) Update() error

type TracingTransport

type TracingTransport struct {
	Transport http.RoundTripper
	Logger    logger.Logger
}

func (*TracingTransport) RoundTrip

func (t *TracingTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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