tuf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 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 Client

type Client struct {
	*tufClient.Client
	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 string, dest string, destMode os.FileMode) error

func (Client) DownloadMetaUnsafe

func (c Client) DownloadMetaUnsafe(targetName string, maxMetaSize int64) ([]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

Jump to

Keyboard shortcuts

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