Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CACertsConfig ¶
type CACertsConfig struct { // If nil, system certs will be used. CACerts CACertsSource }
type CACertsSource ¶
type CACertsSource source[*x509.Certificate]
func NewCACertsSource ¶
func NewCACertsSource(certs []*x509.Certificate) CACertsSource
func NewKeyringCACertsSource ¶
func NewKeyringCACertsSource(kr keyring.Keyring) CACertsSource
type InsecureConfig ¶
type InsecureConfig struct { }
type PinSource ¶
type PinSource source[*pkp.PublicKeyPin]
func NewKeyringPinSource ¶
func NewPinSource ¶
func NewPinSource(pins []*pkp.PublicKeyPin) PinSource
type StrategyConfig ¶
type StrategyConfig struct { PKP *PKPConfig CACerts *CACertsConfig Insecure *InsecureConfig }
Configuration for various trust strategies. At least one field must be non-nil. The first non-nil field encountered (in order) will be used to configure the trust strategy.
func BuildConfigFromFlags ¶
func BuildConfigFromFlags(flags *pflag.FlagSet) (*StrategyConfig, error)
func (*StrategyConfig) Build ¶
func (c *StrategyConfig) Build() (Strategy, error)
Click to show internal directories.
Click to hide internal directories.