tuf

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimHash

func TrimHash(path string) string

TrimHash trim the file hash from the name (eg. changing my-product/1234.my.target into my-product/my.target)

Types

type ConfigClient

type ConfigClient struct {
	*client.Client
	// contains filtered or unexported fields
}

ConfigClient is a TUF client that performs full verification against a config repository. Remote store is bound to the API response while local store is bound to both go-bindata bundles and local boltdb database

func NewConfigClient

func NewConfigClient(store *store.Store) *ConfigClient

NewConfigClient returns a new TUF client for config repository

func (*ConfigClient) Update

func (c *ConfigClient) Update(response *pbgo.LatestConfigsResponse) error

Update the remote with data from the response and verify the TUF metadata

type DirectorClient

type DirectorClient struct {
	*client.Client
	// contains filtered or unexported fields
}

DirectorClient is a TUF client that performs full verification against a director repository. Remote store is bound to the API response while local store is bound to both go-bindata bundles and local boltdb database

func NewDirectorClient

func NewDirectorClient(store *store.Store) *DirectorClient

NewDirectorClient returns a new TUF client for director repository

func (*DirectorClient) Update

func (c *DirectorClient) Update(response *pbgo.LatestConfigsResponse) error

Update the remote with data from the response and verifiers the TUF metadata

type DirectorPartialClient

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

DirectorPartialClient is a TUF client that performs partial verification against a director repository as described in the update specification. Remote store is bound to the API response while local store is bound to both go-bindata bundles and local boltdb database

func NewDirectorPartialClient

func NewDirectorPartialClient() *DirectorPartialClient

NewDirectorPartialClient returns a new TUF client that performs partial validation

func (*DirectorPartialClient) Verify

func (c *DirectorPartialClient) Verify(response *pbgo.ConfigResponse) error

Verify partially the configuration

Jump to

Keyboard shortcuts

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