tuf

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DockerNotaryServer is the default Notary server associated with Docker Hub
	DockerNotaryServer = "https://notary.docker.io"
)

Variables

This section is empty.

Functions

func GetTargetAndSHA

func GetTargetAndSHA(ref, trustServer, tlscacert, trustDir, timeout string) (*client.TargetWithRole, string, error)

GetTargetAndSHA returns the target with roles and the SHA256 of the target file

func GetTargetWithRole

func GetTargetWithRole(gun, name, trustServer, tlscacert, trustDir, timeout string) (*client.TargetWithRole, error)

GetTargetWithRole returns a single target by name from the trusted collection

func GetTargets

func GetTargets(gun, trustServer, tlscacert, trustDir, timeout string) ([]*client.TargetWithRole, error)

GetTargets returns all targets for a given gun from the trusted collection

func PrintTargets

func PrintTargets(gun, trustServer, tlscacert, trustDir, timeout string) error

PrintTargets prints all the targets for a specific GUN from a trust server

func SignAndPublish

func SignAndPublish(trustDir, trustServer, ref, file, tlscacert, rootKey, timeout string, custom *canonicaljson.RawMessage) (*client.Target, error)

SignAndPublish signs an artifact, then publishes the metadata to a trust server

func SplitTargetRef

func SplitTargetRef(ref string) (string, string)

SplitTargetRef takes a target reference and returns a GUN and tag TODO - Radu M

Should we error if the tag is not present, instead of returning latest?

func VerifyFileTrust

func VerifyFileTrust(ref, localFile, trustServer, tlscacert, trustDir, timeout string) error

VerifyFileTrust ensures the trust metadata for a given GUN matches the computed metadata of the local file

Types

This section is empty.

Jump to

Keyboard shortcuts

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