Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Anonymous ¶
type Anonymous authn.AuthConfig
Anonymous is an authn.AuthConfig that always returns an anonymous authenticator. It is useful for registries that do not require authentication or when the credentials are not known. It implements authn.Keychain `Resolve` method and can be used as a keychain.
type CosignVerifier ¶ added in v0.31.0
type CosignVerifier struct {
// contains filtered or unexported fields
}
CosignVerifier is a struct which is responsible for executing verification logic.
func NewCosignVerifier ¶ added in v0.31.0
func NewCosignVerifier(ctx context.Context, opts ...Options) (*CosignVerifier, error)
NewCosignVerifier initializes a new CosignVerifier.
type Options ¶
type Options func(opts *options)
Options is a function that configures the options applied to a Verifier.
func WithIdentities ¶ added in v1.2.0
WithIdentities specifies the identity matchers that have to be met for the signature to be deemed valid.
func WithPublicKey ¶
WithPublicKey sets the public key.
func WithRemoteOptions ¶
WithRemoteOptions is a functional option for overriding the default remote options used by the verifier.