trust

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultNotaryServer = "https://notary.docker.io"
)

Variables

View Source
var (
	// ReleasesRole is the role named "releases"
	ReleasesRole = data.RoleName(path.Join(data.CanonicalTargetsRole.String(), "releases"))
)

Functions

This section is empty.

Types

type ReadOnly

type ReadOnly interface {
	GetSignedMetadata(string) (*trustRepo, error)
	ClearDir() error
}

func NewReadOnly

func NewReadOnly(image *image.Image, notaryURL, path string) (ReadOnly, error)

type Writable

type Writable interface {
	InitNotaryRepoWithSigners() error
	SignImage() error

	GetPassphrase(id string) (string, error)
	CreateRootKey() error
	WriteKey(keyId string, key []byte) error
	ReadRootKey() (string, []byte, error)
	ReadTargetKey() (string, []byte, error)
	ClearDir() error
}

func New

func New(img *image.Image, notaryURL string, passPhrase tmaxiov1.TrustPass, path string, ca []byte, rootKey apiv1.TrustKey, targetKey *apiv1.TrustKey) (Writable, error)

func NewDummy

func NewDummy(path string) (Writable, error)

Jump to

Keyboard shortcuts

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