notary

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatingRoundTripper

type AuthenticatingRoundTripper struct {
	Token               string
	Keychain            authn.Keychain
	WrappedRoundTripper http.RoundTripper
}

func (*AuthenticatingRoundTripper) RoundTrip

func (a *AuthenticatingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type ImageFetcher

type ImageFetcher interface {
	Fetch(keychain authn.Keychain, repoName string) (v1.Image, string, error)
}

type ImageSigner

type ImageSigner struct {
	Logger  *log.Logger
	Client  ImageFetcher
	Factory RepositoryFactory
}

func (*ImageSigner) Sign

func (s *ImageSigner) Sign(url, notarySecretDir string, report platform.ExportReport, keychain authn.Keychain) error

type RemoteRepository

type RemoteRepository struct {
	// contains filtered or unexported fields
}

func (*RemoteRepository) PublishTarget

func (r *RemoteRepository) PublishTarget(target *client.Target) error

type RemoteRepositoryFactory

type RemoteRepositoryFactory struct {
}

func (*RemoteRepositoryFactory) GetRepository

func (r *RemoteRepositoryFactory) GetRepository(url string, gun data.GUN, remoteStore storage.RemoteStore, cryptoService signed.CryptoService) (Repository, error)

type Repository

type Repository interface {
	PublishTarget(target *client.Target) error
}

type RepositoryFactory

type RepositoryFactory interface {
	GetRepository(url string, gun data.GUN, remoteStore storage.RemoteStore, cryptoService signed.CryptoService) (Repository, error)
}

Jump to

Keyboard shortcuts

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