trust

package
v1.4.2-0...-8562c42 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotVerifiedError

type NotVerifiedError string

NotVerifiedError reports a error when doing the key check. For example if the graph is not verified or the key has expired.

func (NotVerifiedError) Error

func (e NotVerifiedError) Error() string

type Store

type Store struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Store defines a TrustStore : stores trusted certificates and permissions which are used to verify the signature keys on manifests. Note: This is being deprecated by the notary work.

func NewStore

func NewStore(path string) (*Store, error)

NewStore creates a TrustStore from a given path, if the path is not relative, it will be joined with the working directory.

func (*Store) CheckKey

func (t *Store) CheckKey(ns string, key []byte, perm uint16) (bool, error)

CheckKey verifies that the given public key is allowed to perform the given action on the given node according to the trust graph.

func (*Store) UpdateBase

func (t *Store) UpdateBase()

UpdateBase retrieves updated base graphs. This function cannot error, it should only log errors.

Jump to

Keyboard shortcuts

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