tuf

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TufRootEnv = "TUF_ROOT"
)

Variables

This section is empty.

Functions

func CosignRoot

func CosignRoot() string

func CosignTargets

func CosignTargets() string

func GcsRemoteStore

func GcsRemoteStore(ctx context.Context, bucket string, opts *GcsRemoteOptions, client *storage.Client) (client.RemoteStore, error)

A remote store for TUF metadata on GCS.

func GetTarget

func GetTarget(ctx context.Context, name string, out client.Destination) error

func Init

func Init(ctx context.Context, rootBytes []byte, remote client.RemoteStore, threshold int) error

Instantiates the global TUF client. Downloads all initial targets and stores in $HOME/.sigstore/root/targets/.

func RootClient

func RootClient(ctx context.Context, local string, remote client.RemoteStore) (*client.Client, error)

Gets the global TUF client if the directory exists. This will not make a remote call.

Types

type ByteDestination

type ByteDestination struct {
	*bytes.Buffer
}

func (*ByteDestination) Delete

func (b *ByteDestination) Delete() error

type GcsRemoteOptions

type GcsRemoteOptions struct {
	MetadataPath string
	TargetsPath  string
}

Jump to

Keyboard shortcuts

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