tufutil

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHTTPRetries = &tuf.HTTPRemoteRetries{
	Delay: time.Second,
	Total: 30 * time.Second,
}

Functions

func Download

func Download(client *tuf.Client, path string) (io.ReadCloser, error)

func DownloadString

func DownloadString(client *tuf.Client, path string) (string, error)

func GetVersion

func GetVersion(client *tuf.Client, name string) (string, error)

GetVersion returns the given target's version from custom metadata

Types

type TempFile

type TempFile struct {
	*os.File
}

func NewTempFile

func NewTempFile() (*TempFile, error)

func (*TempFile) Close

func (t *TempFile) Close() error

func (*TempFile) Delete

func (t *TempFile) Delete() error

Jump to

Keyboard shortcuts

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