package trust

import "github.com/docker/cli/cli/command/trust"

Index

Functions

func NewSignerInfoFormat

func NewSignerInfoFormat() formatter.Format

NewSignerInfoFormat returns a Format for rendering a signer role info Context

func NewTrustCommand

func NewTrustCommand(dockerCli command.Cli) *cobra.Command

NewTrustCommand returns a cobra command for `trust` subcommands

func NewTrustTagFormat

func NewTrustTagFormat() formatter.Format

NewTrustTagFormat returns a Format for rendering using a trusted tag Context

func SignerInfoWrite

func SignerInfoWrite(ctx formatter.Context, signerInfoList []SignerInfo) error

SignerInfoWrite writes the context

func TagWrite

func TagWrite(ctx formatter.Context, signedTagInfoList []SignedTagInfo) error

TagWrite writes the context

Types

type SignedTagInfo

type SignedTagInfo struct {
	Name    string
	Digest  string
	Signers []string
}

SignedTagInfo represents all formatted information needed to describe a signed tag: Name: name of the signed tag Digest: hex encoded digest of the contents Signers: list of entities who signed the tag

type SignerInfo

type SignerInfo struct {
	Name string
	Keys []string
}

SignerInfo represents all formatted information needed to describe a signer: Name: name of the signer role Keys: the keys associated with the signer

Source Files

cmd.go common.go formatter.go helpers.go inspect.go inspect_pretty.go key.go key_generate.go key_load.go revoke.go sign.go signer.go signer_add.go signer_remove.go

Version
v23.0.0-beta.1+incompatible
Published
Dec 6, 2022
Platform
linux/amd64
Imports
33 packages
Last checked
46 seconds ago

Tools for package owners.