keyoption

package
v0.19.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Usage

func Usage() string

Types

type ConfigFragment

type ConfigFragment struct {
	DefaultName string   `json:"defaultName,omitempty"`
	PublicKeys  []string `json:"publicKeys,omitempty"`
	PrivateKeys []string `json:"privateKeys,omitempty"`
	Issuers     []string `json:"issuers,omitempty"`
	RootCAs     []string `json:"rootCAs,omitempty"`
}

func (*ConfigFragment) AddFlags

func (c *ConfigFragment) AddFlags(fs *pflag.FlagSet)

func (*ConfigFragment) Evaluate

func (c *ConfigFragment) Evaluate(ctx ocm.Context, keys signing.KeyRegistry) (*EvaluatedOptions, error)

func (*ConfigFragment) HandleKeys

func (c *ConfigFragment) HandleKeys(ctx datacontext.Context, desc string, keys []string, add func(string, interface{})) error

type EvaluatedOptions

type EvaluatedOptions struct {
	RootCerts signutils.GenericCertificatePool
	Keys      signing.KeyRegistry
}

type Option

type Option struct {
	ConfigFragment
	*EvaluatedOptions
}

func From

func New

func New() *Option

func (*Option) AddFlags

func (o *Option) AddFlags(fs *pflag.FlagSet)

func (*Option) ApplySigningOption

func (o *Option) ApplySigningOption(opts *ocmsign.Options)

func (*Option) Configure

func (o *Option) Configure(ctx ocm.Context) error

Jump to

Keyboard shortcuts

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