cli

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 57 Imported by: 16

Documentation

Index

Constants

View Source
const (
	KeyTypeFulcio   = "sigstore-oidc"
	KeySchemeFulcio = "https://fulcio.sigstore.dev"
)

Variables

View Source
var KeyAlgorithms = []string{"sha256", "sha512"}

Functions

func Attach added in v1.3.0

func Attach() *cobra.Command

func Attest added in v1.0.0

func Attest() *cobra.Command

func AttestBlob added in v1.13.1

func AttestBlob() *cobra.Command

func Clean added in v0.5.0

func Clean() *cobra.Command

func CleanCmd added in v0.5.0

func CleanCmd(ctx context.Context, regOpts options.RegistryOptions, cleanType, imageRef string, force bool) error

func Completion added in v1.3.0

func Completion() *cobra.Command

func Copy added in v0.5.0

func Copy() *cobra.Command

func Dockerfile added in v1.3.0

func Dockerfile() *cobra.Command

func Download

func Download() *cobra.Command

func Env added in v1.10.0

func Env() *cobra.Command

func Generate

func Generate() *cobra.Command

func GenerateKeyPair

func GenerateKeyPair() *cobra.Command

func ImportKeyPair added in v1.5.0

func ImportKeyPair() *cobra.Command

func Initialize added in v1.3.0

func Initialize() *cobra.Command

func Load added in v1.4.0

func Load() *cobra.Command

func LoadCmd added in v1.4.0

func LoadCmd(ctx context.Context, opts options.LoadOptions, imageRef string) error

func Manifest added in v1.3.0

func Manifest() *cobra.Command

func New added in v1.3.0

func New() *cobra.Command

func PIVTool added in v1.3.0

func PIVTool() *cobra.Command

func PKCS11Tool added in v1.3.1

func PKCS11Tool() *cobra.Command

func Policy added in v1.3.0

func Policy() *cobra.Command

func PublicKey added in v0.2.0

func PublicKey() *cobra.Command

func Save added in v1.4.0

func Save() *cobra.Command

func SaveCmd added in v1.4.0

func SaveCmd(ctx context.Context, opts options.SaveOptions, imageRef string) error

func Sign

func Sign() *cobra.Command

func SignBlob

func SignBlob() *cobra.Command

func Tree added in v1.7.0

func Tree() *cobra.Command

func TreeCmd added in v1.7.0

func TreeCmd(ctx context.Context, regOpts options.RegistryOptions, imageRef string) error

func Triangulate

func Triangulate() *cobra.Command

func Upload

func Upload() *cobra.Command

func Verify

func Verify() *cobra.Command

func VerifyAttestation added in v1.0.0

func VerifyAttestation() *cobra.Command

func VerifyBlob

func VerifyBlob() *cobra.Command

func VerifyBlobAttestation added in v1.13.1

func VerifyBlobAttestation() *cobra.Command

Types

type FulcioKeyVal added in v1.13.3

type FulcioKeyVal struct {
	Identity string `json:"identity"`
	Issuer   string `json:"issuer,omitempty"`
}

func GetFulcioKeyVal added in v1.13.3

func GetFulcioKeyVal(key *Key) (*FulcioKeyVal, error)

type Key added in v1.13.3

type Key struct {
	Type       string          `json:"keytype"`
	Scheme     string          `json:"scheme"`
	Algorithms []string        `json:"keyid_hash_algorithms,omitempty"`
	Value      json.RawMessage `json:"keyval"`
	// contains filtered or unexported fields
}

func FulcioVerificationKey added in v1.13.3

func FulcioVerificationKey(email, issuer string) *Key

func (*Key) ContainsID added in v1.13.3

func (k *Key) ContainsID(id string) bool

func (*Key) ID added in v1.13.3

func (k *Key) ID() string

type Role added in v1.13.3

type Role struct {
	KeyIDs    []string `json:"keyids"`
	Threshold int      `json:"threshold"`
}

func (*Role) AddKeysWithThreshold added in v1.13.3

func (r *Role) AddKeysWithThreshold(keys []*Key, threshold int) bool

type Root added in v1.13.3

type Root struct {
	Type        string           `json:"_type"`
	SpecVersion string           `json:"spec_version"`
	Version     int              `json:"version"`
	Expires     time.Time        `json:"expires"`
	Keys        map[string]*Key  `json:"keys"`
	Roles       map[string]*Role `json:"roles"`
	Namespace   string           `json:"namespace"`

	ConsistentSnapshot bool `json:"consistent_snapshot"`
}

func NewRoot added in v1.13.3

func NewRoot() *Root

func (*Root) AddKey added in v1.13.3

func (r *Root) AddKey(key *Key) bool

func (*Root) Marshal added in v1.13.3

func (r *Root) Marshal() (*Signed, error)

func (*Root) ValidKey added in v1.13.3

func (r *Root) ValidKey(key *Key, role string) (string, error)

type Signature added in v1.13.3

type Signature struct {
	KeyID     string `json:"keyid"`
	Signature string `json:"sig"`
	Cert      string `json:"cert,omitempty"`
}

type Signed added in v1.13.3

type Signed struct {
	Signed     json.RawMessage `json:"signed"`
	Signatures []Signature     `json:"signatures"`
}

func (*Signed) AddOrUpdateSignature added in v1.13.3

func (s *Signed) AddOrUpdateSignature(key *Key, signature Signature) error

func (*Signed) JSONMarshal added in v1.13.3

func (s *Signed) JSONMarshal(prefix, indent string) ([]byte, error)

Directories

Path Synopsis
fulcioverifier/ctutil
Package ctutil contains utilities for Certificate Transparency.
Package ctutil contains utilities for Certificate Transparency.

Jump to

Keyboard shortcuts

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