notary

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthEndpoint added in v0.13.0

type AuthEndpoint struct {
	URL     string
	Service string
	Scope   string
}

AuthEndpoint .

type Client

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

Client .

func (Client) CheckAuthRequired added in v0.13.0

func (c Client) CheckAuthRequired(notaryURL string, img *image.Reference) (*AuthEndpoint, error)

CheckAuthRequired checks if the notary requires authentication and returns information where to authenticate

func (Client) GetNotaryRepo

func (c Client) GetNotaryRepo(server, image, notaryToken string) (notaryclient.Repository, error)

GetNotaryRepo .

type Interface

type Interface interface {
	GetNotaryRepo(server, image, notaryToken string) (notaryclient.Repository, error)
	CheckAuthRequired(notaryURL string, img *image.Reference) (*AuthEndpoint, error)
}

Interface .

func NewClient

func NewClient(trustDir string, customCA []byte) (Interface, error)

NewClient creates and initializes the client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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