Documentation ¶
Index ¶
- func Apply(printer common.Printer, state *common.WalkingState, ...) (*metav1.DigestSpec, error)
- func ToDigestSpec(v interface{}) *metav1.DigestSpec
- type Option
- func Issuer(name string) Option
- func PrivateKey(name string, key interface{}) Option
- func PublicKey(name string, key interface{}) Option
- func Recursive(flags ...bool) Option
- func Registry(h signing.Registry) Option
- func Resolver(h ...ocm.ComponentVersionResolver) Option
- func RootCertificates(pool *x509.CertPool) Option
- func Sign(h signing.Signer, name string) Option
- func SkipAccessTypes(names ...string) Option
- func Update(flags ...bool) Option
- func VerifyDigests(flags ...bool) Option
- func VerifySignature(names ...string) Option
- type Options
- func (o *Options) ApplySigningOption(opts *Options)
- func (o *Options) Complete(registry signing.Registry) error
- func (o *Options) DoSign() bool
- func (o *Options) DoUpdate() bool
- func (o *Options) DoVerify() bool
- func (opts *Options) Eval(list ...Option) *Options
- func (o *Options) For(digest *metav1.DigestSpec) (*Options, error)
- func (o *Options) PrivateKey() interface{}
- func (o *Options) PublicKey(sig string) interface{}
- func (o *Options) SignatureConfigured(name string) bool
- func (o *Options) SignatureName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply(printer common.Printer, state *common.WalkingState, cv ocm.ComponentVersionAccess, opts *Options, closecv ...bool) (*metav1.DigestSpec, error)
func ToDigestSpec ¶
func ToDigestSpec(v interface{}) *metav1.DigestSpec
Types ¶
type Option ¶
type Option interface {
ApplySigningOption(o *Options)
}
func PrivateKey ¶
func Resolver ¶
func Resolver(h ...ocm.ComponentVersionResolver) Option
func RootCertificates ¶
func SkipAccessTypes ¶
func VerifyDigests ¶
func VerifySignature ¶
type Options ¶
type Options struct { Update bool Recursively bool Verify bool Signer signing.Signer Issuer string VerifySignature bool RootCerts *x509.CertPool Hasher signing.Hasher Keys signing.KeyRegistry Registry signing.Registry Resolver ocm.ComponentVersionResolver SkipAccessTypes map[string]bool SignatureNames []string NormalizationAlgo string }
func NewOptions ¶
func (*Options) ApplySigningOption ¶
func (*Options) PrivateKey ¶
func (o *Options) PrivateKey() interface{}
func (*Options) SignatureConfigured ¶
func (*Options) SignatureName ¶
Click to show internal directories.
Click to hide internal directories.