Documentation ¶
Index ¶
- Constants
- func GetTargetAndSHA(ref, trustServer, tlscacert, trustDir, timeout string) (*client.TargetWithRole, string, error)
- func GetTargetWithRole(gun, name, trustServer, tlscacert, trustDir, timeout string) (*client.TargetWithRole, error)
- func GetTargets(gun, trustServer, tlscacert, trustDir, timeout string) ([]*client.TargetWithRole, error)
- func PrintTargets(gun, trustServer, tlscacert, trustDir, timeout string) error
- func SignAndPublish(trustDir, trustServer, ref, file, tlscacert, rootKey, timeout string, ...) (*client.Target, error)
- func SplitTargetRef(ref string) (string, string)
- func VerifyFileTrust(ref, localFile, trustServer, tlscacert, trustDir, timeout string) error
Constants ¶
View Source
const (
// DockerNotaryServer is the default Notary server associated with Docker Hub
DockerNotaryServer = "https://notary.docker.io"
)
Variables ¶
This section is empty.
Functions ¶
func GetTargetAndSHA ¶
func GetTargetAndSHA(ref, trustServer, tlscacert, trustDir, timeout string) (*client.TargetWithRole, string, error)
GetTargetAndSHA returns the target with roles and the SHA256 of the target file
func GetTargetWithRole ¶
func GetTargetWithRole(gun, name, trustServer, tlscacert, trustDir, timeout string) (*client.TargetWithRole, error)
GetTargetWithRole returns a single target by name from the trusted collection
func GetTargets ¶
func GetTargets(gun, trustServer, tlscacert, trustDir, timeout string) ([]*client.TargetWithRole, error)
GetTargets returns all targets for a given gun from the trusted collection
func PrintTargets ¶
PrintTargets prints all the targets for a specific GUN from a trust server
func SignAndPublish ¶
func SignAndPublish(trustDir, trustServer, ref, file, tlscacert, rootKey, timeout string, custom *canonicaljson.RawMessage) (*client.Target, error)
SignAndPublish signs an artifact, then publishes the metadata to a trust server
func SplitTargetRef ¶
SplitTargetRef takes a target reference and returns a GUN and tag TODO - Radu M
Should we error if the tag is not present, instead of returning latest?
func VerifyFileTrust ¶
VerifyFileTrust ensures the trust metadata for a given GUN matches the computed metadata of the local file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.